diff options
| author | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2011-07-07 15:32:31 +0000 |
|---|---|---|
| committer | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2011-07-07 15:32:31 +0000 |
| commit | 0c190810e40c29592772cfea54aa9804cec8c63a (patch) | |
| tree | 7c0fe425bd18b00d1f6c9b81cf97730e68c6778c /src/include | |
| parent | c567410674f7f1cb9f77bfdba4181ff57222f65e (diff) | |
adding code to get external IP from miniupnp tool
git-svn-id: https://gnunet.org/svn/gnunet@15877 140774ce-b5e7-0310-ab8b-a85725594a96
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 1eb8b57034..3577586772 100644 --- a/src/include/gnunet_nat_lib.h +++ b/src/include/gnunet_nat_lib.h @@ -186,6 +186,21 @@ void GNUNET_NAT_test_stop (struct GNUNET_NAT_Test *tst); + +/** + * Try to get the external IPv4 address of this peer. + * Note: calling this function may block this process + * for a few seconds (!). + * + * @param addr address to set + * @return GNUNET_OK on success, + * GNUNET_NO if the result is questionable, + * GNUNET_SYSERR on error + */ +int +GNUNET_NAT_mini_get_external_ipv4 (struct in_addr *addr); + + #endif /* end of gnunet_nat_lib.h */ |
