diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-01-07 05:14:12 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-01-07 05:14:12 +0000 |
commit | 9e0744da3a82cc7b68a9043272044584be98db44 (patch) | |
tree | 0d66dcff21faddda56c57f6768f7fee49649366a /src/nat/nat.c | |
parent | 1ab001d527da02fbf9a7212497c162a979aa8f6b (diff) | |
download | gnunet-9e0744da3a82cc7b68a9043272044584be98db44.tar.gz gnunet-9e0744da3a82cc7b68a9043272044584be98db44.zip |
-modify NAT API to return error messages about problems detected
Diffstat (limited to 'src/nat/nat.c')
-rw-r--r-- | src/nat/nat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nat/nat.c b/src/nat/nat.c index 69c60291c..ae40a2cd1 100644 --- a/src/nat/nat.c +++ b/src/nat/nat.c | |||
@@ -1011,12 +1011,14 @@ resolve_dns (void *cls, | |||
1011 | * the previous (now invalid) one | 1011 | * the previous (now invalid) one |
1012 | * @param addr either the previous or the new public IP address | 1012 | * @param addr either the previous or the new public IP address |
1013 | * @param addrlen actual lenght of @a addr | 1013 | * @param addrlen actual lenght of @a addr |
1014 | * @param emsg NULL on success, otherwise an error message | ||
1014 | */ | 1015 | */ |
1015 | static void | 1016 | static void |
1016 | upnp_add (void *cls, | 1017 | upnp_add (void *cls, |
1017 | int add_remove, | 1018 | int add_remove, |
1018 | const struct sockaddr *addr, | 1019 | const struct sockaddr *addr, |
1019 | socklen_t addrlen) | 1020 | socklen_t addrlen, |
1021 | const char *emsg) | ||
1020 | { | 1022 | { |
1021 | struct GNUNET_NAT_Handle *h = cls; | 1023 | struct GNUNET_NAT_Handle *h = cls; |
1022 | struct LocalAddressList *pos; | 1024 | struct LocalAddressList *pos; |