aboutsummaryrefslogtreecommitdiff
path: root/src/include
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/include
parent782f3c0ce710d67c869d92078c6d64c55992997f (diff)
downloadgnunet-f3fdda9eec15076d54f296a7418b1984a8beba66.tar.gz
gnunet-f3fdda9eec15076d54f296a7418b1984a8beba66.zip
api change for network interface iterations to support broadcast address and network mask
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_os_lib.h8
1 files changed, 6 insertions, 2 deletions
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);
146 * @param name name of the interface (can be NULL for unknown) 146 * @param name name of the interface (can be NULL for unknown)
147 * @param isDefault is this presumably the default interface 147 * @param isDefault is this presumably the default interface
148 * @param addr address of this interface (can be NULL for unknown or unassigned) 148 * @param addr address of this interface (can be NULL for unknown or unassigned)
149 * @param broadcast_addr the broadcast address (can be NULL for unknown or unassigned)
150 * @param netmask the network mask (can be NULL for unknown or unassigned))
149 * @param addrlen length of the address 151 * @param addrlen length of the address
150 * @return GNUNET_OK to continue iteration, GNUNET_SYSERR to abort 152 * @return GNUNET_OK to continue iteration, GNUNET_SYSERR to abort
151 */ 153 */
152typedef int (*GNUNET_OS_NetworkInterfaceProcessor) (void *cls, const char *name, 154typedef int (*GNUNET_OS_NetworkInterfaceProcessor) (void *cls, const char *name,
153 int isDefault, 155 int isDefault,
154 const struct sockaddr * 156 const struct sockaddr * addr,
155 addr, socklen_t addrlen); 157 const struct sockaddr * broadcast_addr,
158 const struct sockaddr * netmask,
159 socklen_t addrlen);
156 160
157 161
158/** 162/**