diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-07-07 15:32:31 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-07-07 15:32:31 +0000 |
commit | 1c5ace41aa144afd32221db565c6f627765afdd0 (patch) | |
tree | 7c0fe425bd18b00d1f6c9b81cf97730e68c6778c /src/include | |
parent | e6b9f7bb2febff33140dd3cb0ea96bed09a05346 (diff) | |
download | gnunet-1c5ace41aa144afd32221db565c6f627765afdd0.tar.gz gnunet-1c5ace41aa144afd32221db565c6f627765afdd0.zip |
adding code to get external IP from miniupnp tool
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_nat_lib.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/include/gnunet_nat_lib.h b/src/include/gnunet_nat_lib.h index 1eb8b5703..357758677 100644 --- a/src/include/gnunet_nat_lib.h +++ b/src/include/gnunet_nat_lib.h | |||
@@ -186,6 +186,21 @@ void | |||
186 | GNUNET_NAT_test_stop (struct GNUNET_NAT_Test *tst); | 186 | GNUNET_NAT_test_stop (struct GNUNET_NAT_Test *tst); |
187 | 187 | ||
188 | 188 | ||
189 | |||
190 | /** | ||
191 | * Try to get the external IPv4 address of this peer. | ||
192 | * Note: calling this function may block this process | ||
193 | * for a few seconds (!). | ||
194 | * | ||
195 | * @param addr address to set | ||
196 | * @return GNUNET_OK on success, | ||
197 | * GNUNET_NO if the result is questionable, | ||
198 | * GNUNET_SYSERR on error | ||
199 | */ | ||
200 | int | ||
201 | GNUNET_NAT_mini_get_external_ipv4 (struct in_addr *addr); | ||
202 | |||
203 | |||
189 | #endif | 204 | #endif |
190 | 205 | ||
191 | /* end of gnunet_nat_lib.h */ | 206 | /* end of gnunet_nat_lib.h */ |