From f3fdda9eec15076d54f296a7418b1984a8beba66 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Thu, 17 Nov 2011 16:39:10 +0000 Subject: api change for network interface iterations to support broadcast address and network mask --- src/include/gnunet_os_lib.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/gnunet_os_lib.h b/src/include/gnunet_os_lib.h index 31062bd40..12ec3a54e 100644 --- a/src/include/gnunet_os_lib.h +++ b/src/include/gnunet_os_lib.h @@ -146,13 +146,17 @@ GNUNET_OS_installation_get_path (enum GNUNET_OS_InstallationPathKind dirkind); * @param name name of the interface (can be NULL for unknown) * @param isDefault is this presumably the default interface * @param addr address of this interface (can be NULL for unknown or unassigned) + * @param broadcast_addr the broadcast address (can be NULL for unknown or unassigned) + * @param netmask the network mask (can be NULL for unknown or unassigned)) * @param addrlen length of the address * @return GNUNET_OK to continue iteration, GNUNET_SYSERR to abort */ typedef int (*GNUNET_OS_NetworkInterfaceProcessor) (void *cls, const char *name, int isDefault, - const struct sockaddr * - addr, socklen_t addrlen); + const struct sockaddr * addr, + const struct sockaddr * broadcast_addr, + const struct sockaddr * netmask, + socklen_t addrlen); /** -- cgit v1.2.3