aboutsummaryrefslogtreecommitdiff
path: root/src/nat
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-11-17 16:39:10 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-11-17 16:39:10 +0000
commitf3fdda9eec15076d54f296a7418b1984a8beba66 (patch)
treec304978bce5b744b30d32d9082998f044933df5e /src/nat
parent782f3c0ce710d67c869d92078c6d64c55992997f (diff)
api change for network interface iterations to support broadcast address and network mask
Diffstat (limited to 'src/nat')
-rw-r--r--src/nat/nat.c8
-rw-r--r--src/nat/test_nat.c8
2 files changed, 12 insertions, 4 deletions
diff --git a/src/nat/nat.c b/src/nat/nat.c
index 0a1f4c4b5f..c0f9daa328 100644
--- a/src/nat/nat.c
+++ b/src/nat/nat.c
@@ -633,8 +633,12 @@ process_hostname_ip (void *cls, const struct sockaddr *addr, socklen_t addrlen)
* @return GNUNET_OK to continue iterating
*/
static int
-process_interfaces (void *cls, const char *name, int isDefault,
- const struct sockaddr *addr, socklen_t addrlen)
+process_interfaces(void *cls, const char *name,
+ int isDefault,
+ const struct sockaddr * addr,
+ const struct sockaddr * broadcast_addr,
+ const struct sockaddr * netmask,
+ socklen_t addrlen)
{
struct GNUNET_NAT_Handle *h = cls;
const struct sockaddr_in *s4;
diff --git a/src/nat/test_nat.c b/src/nat/test_nat.c
index 19631af089..f7f64ce03e 100644
--- a/src/nat/test_nat.c
+++ b/src/nat/test_nat.c
@@ -97,8 +97,12 @@ struct addr_cls
* @return GNUNET_OK to continue iterating
*/
static int
-process_if (void *cls, const char *name, int isDefault,
- const struct sockaddr *addr, socklen_t addrlen)
+process_if (void *cls, const char *name,
+ int isDefault,
+ const struct sockaddr * addr,
+ const struct sockaddr * broadcast_addr,
+ const struct sockaddr * netmask,
+ socklen_t addrlen)
{
struct addr_cls *data = cls;