aboutsummaryrefslogtreecommitdiff
path: root/src/nat
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-11-13 15:01:03 +0000
committerChristian Grothoff <christian@grothoff.org>2009-11-13 15:01:03 +0000
commite8520aa3dad18bc174ea37256c66932062838253 (patch)
tree559750351b39e14b1fa263a25a5ff233ee6f95ab /src/nat
parent10ee738c0a3b74b72ef55cdae37b4d622aff3146 (diff)
downloadgnunet-e8520aa3dad18bc174ea37256c66932062838253.tar.gz
gnunet-e8520aa3dad18bc174ea37256c66932062838253.zip
fixing doxygen and style issues in NAT code
Diffstat (limited to 'src/nat')
-rw-r--r--src/nat/nat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nat/nat.c b/src/nat/nat.c
index 151c526d4..5f69a515a 100644
--- a/src/nat/nat.c
+++ b/src/nat/nat.c
@@ -52,8 +52,8 @@ struct GNUNET_NAT_Handle
52{ 52{
53 int is_enabled; 53 int is_enabled;
54 54
55 GNUNET_NAT_port_forwarding natpmp_status; 55 enum GNUNET_NAT_port_forwarding natpmp_status;
56 GNUNET_NAT_port_forwarding upnp_status; 56 enum GNUNET_NAT_port_forwarding upnp_status;
57 57
58 int should_change; 58 int should_change;
59 u_short public_port; 59 u_short public_port;
@@ -102,7 +102,7 @@ get_nat_state_str (int state)
102#endif 102#endif
103 103
104static int 104static int
105get_traversal_status (const GNUNET_NAT_Handle * s) 105get_traversal_status (const struct GNUNET_NAT_Handle * s)
106{ 106{
107 return MAX (s->natpmp_status, s->upnp_status); 107 return MAX (s->natpmp_status, s->upnp_status);
108} 108}
@@ -135,7 +135,7 @@ GNUNET_NAT_cmp_addr (const struct sockaddr *a, const struct sockaddr *b)
135 * or nullify the previous sockaddr. Change the port if needed. 135 * or nullify the previous sockaddr. Change the port if needed.
136 */ 136 */
137static void 137static void
138notify_change (GNUNET_NAT_Handle *nat, struct sockaddr *addr, int new_port_mapped) 138notify_change (struct GNUNET_NAT_Handle *nat, struct sockaddr *addr, int new_port_mapped)
139{ 139{
140 static int port_mapped = GNUNET_NO; 140 static int port_mapped = GNUNET_NO;
141 141
@@ -209,7 +209,7 @@ notify_change (GNUNET_NAT_Handle *nat, struct sockaddr *addr, int new_port_mappe
209static void 209static void
210nat_pulse (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 210nat_pulse (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
211{ 211{
212 GNUNET_NAT_Handle *nat = cls; 212 struct GNUNET_NAT_Handle *nat = cls;
213 static int first_warning = GNUNET_YES; 213 static int first_warning = GNUNET_YES;
214 int old_status; 214 int old_status;
215 int new_status; 215 int new_status;
@@ -295,7 +295,7 @@ GNUNET_NAT_register (struct GNUNET_SCHEDULER_Handle *sched,
295 const struct sockaddr *addr, socklen_t addrlen, 295 const struct sockaddr *addr, socklen_t addrlen,
296 GNUNET_NAT_AddressCallback callback, void *callback_cls) 296 GNUNET_NAT_AddressCallback callback, void *callback_cls)
297{ 297{
298 GNUNET_NAT_Handle *nat = GNUNET_malloc (sizeof (GNUNET_NAT_Handle)); 298 struct GNUNET_NAT_Handle *nat = GNUNET_malloc (sizeof (struct GNUNET_NAT_Handle));
299 299
300 if (addr) 300 if (addr)
301 { 301 {