diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-10-08 19:00:19 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-10-08 19:00:19 +0000 |
commit | fe947a9704bed14c2fc74b2f2069596fe884cbad (patch) | |
tree | 644efdaa37d692b09f8e279bfe5e8b2ebe81448b /src/util/os_network.c | |
parent | a8b0ab037820f6a9f405be3855ce8d3ebbd4399b (diff) | |
download | gnunet-fe947a9704bed14c2fc74b2f2069596fe884cbad.tar.gz gnunet-fe947a9704bed14c2fc74b2f2069596fe884cbad.zip |
better comments
Diffstat (limited to 'src/util/os_network.c')
-rw-r--r-- | src/util/os_network.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/util/os_network.c b/src/util/os_network.c index c78dc71c5..d18e5eb76 100644 --- a/src/util/os_network.c +++ b/src/util/os_network.c | |||
@@ -35,11 +35,11 @@ | |||
35 | * @brief Enumerate all network interfaces | 35 | * @brief Enumerate all network interfaces |
36 | * | 36 | * |
37 | * @param proc the callback function | 37 | * @param proc the callback function |
38 | * @param cls closure for proc | 38 | * @param proc_cls closure for proc |
39 | */ | 39 | */ |
40 | void | 40 | void |
41 | GNUNET_OS_network_interfaces_list (GNUNET_OS_NetworkInterfaceProcessor proc, | 41 | GNUNET_OS_network_interfaces_list (GNUNET_OS_NetworkInterfaceProcessor proc, |
42 | void *cls) | 42 | void *proc_cls) |
43 | { | 43 | { |
44 | #ifdef MINGW | 44 | #ifdef MINGW |
45 | PMIB_IFTABLE pTable; | 45 | PMIB_IFTABLE pTable; |
@@ -148,7 +148,7 @@ GNUNET_OS_network_interfaces_list (GNUNET_OS_NetworkInterfaceProcessor proc, | |||
148 | free (pszIfName); | 148 | free (pszIfName); |
149 | 149 | ||
150 | if (GNUNET_OK != | 150 | if (GNUNET_OK != |
151 | proc (cls, | 151 | proc (proc_cls, |
152 | szEntry, | 152 | szEntry, |
153 | pAddrTable->table[dwIfIdx].dwIndex == dwExternalNIC, | 153 | pAddrTable->table[dwIfIdx].dwIndex == dwExternalNIC, |
154 | NULL /* FIXME: pass actual IP address! */ , | 154 | NULL /* FIXME: pass actual IP address! */ , |
@@ -182,7 +182,7 @@ GNUNET_OS_network_interfaces_list (GNUNET_OS_NetworkInterfaceProcessor proc, | |||
182 | alen = sizeof (struct sockaddr_in); | 182 | alen = sizeof (struct sockaddr_in); |
183 | else | 183 | else |
184 | alen = sizeof (struct sockaddr_in6); | 184 | alen = sizeof (struct sockaddr_in6); |
185 | if (GNUNET_OK != proc (cls, | 185 | if (GNUNET_OK != proc (proc_cls, |
186 | ifa_ptr->ifa_name, | 186 | ifa_ptr->ifa_name, |
187 | 0 == strcmp (ifa_ptr->ifa_name, | 187 | 0 == strcmp (ifa_ptr->ifa_name, |
188 | GNUNET_DEFAULT_INTERFACE), | 188 | GNUNET_DEFAULT_INTERFACE), |
@@ -255,7 +255,7 @@ GNUNET_OS_network_interfaces_list (GNUNET_OS_NetworkInterfaceProcessor proc, | |||
255 | a4.sin_family = AF_INET; | 255 | a4.sin_family = AF_INET; |
256 | a4.sin_addr = v4; | 256 | a4.sin_addr = v4; |
257 | if (GNUNET_OK != | 257 | if (GNUNET_OK != |
258 | proc (cls, | 258 | proc (proc_cls, |
259 | ifc, | 259 | ifc, |
260 | 0 == strcmp (ifc, GNUNET_DEFAULT_INTERFACE), | 260 | 0 == strcmp (ifc, GNUNET_DEFAULT_INTERFACE), |
261 | (const struct sockaddr *) &a4, sizeof (a4))) | 261 | (const struct sockaddr *) &a4, sizeof (a4))) |
@@ -270,7 +270,7 @@ GNUNET_OS_network_interfaces_list (GNUNET_OS_NetworkInterfaceProcessor proc, | |||
270 | a6.sin6_addr = v6; | 270 | a6.sin6_addr = v6; |
271 | fprintf (stderr, "procing %s\n", addrstr); | 271 | fprintf (stderr, "procing %s\n", addrstr); |
272 | if (GNUNET_OK != | 272 | if (GNUNET_OK != |
273 | proc (cls, | 273 | proc (proc_cls, |
274 | ifc, | 274 | ifc, |
275 | 0 == strcmp (ifc, GNUNET_DEFAULT_INTERFACE), | 275 | 0 == strcmp (ifc, GNUNET_DEFAULT_INTERFACE), |
276 | (const struct sockaddr *) &a6, sizeof (a6))) | 276 | (const struct sockaddr *) &a6, sizeof (a6))) |