aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2015-06-25 08:48:41 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2015-06-25 08:48:41 +0000
commit48afbdecb329882e59b5b4edd796aa5a47c564c7 (patch)
tree218661d4ec5981a6538c7ba24a0652f07ddd7ae3
parent4047fdf6b0ab8b49b49b06df1ce54e085f660696 (diff)
downloadgnunet-48afbdecb329882e59b5b4edd796aa5a47c564c7.tar.gz
gnunet-48afbdecb329882e59b5b4edd796aa5a47c564c7.zip
adding a first set of fixmes to stun code
-rw-r--r--src/nat/test_stun.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nat/test_stun.c b/src/nat/test_stun.c
index c45714f4d..fdf619255 100644
--- a/src/nat/test_stun.c
+++ b/src/nat/test_stun.c
@@ -104,6 +104,8 @@ do_udp_read (void *cls,
104 104
105 105
106 } 106 }
107
108
107} 109}
108 110
109 111
@@ -167,10 +169,12 @@ run (void *cls, char *const *args, const char *cfgfile,
167 //Lets call our function now when it accepts 169 //Lets call our function now when it accepts
168 ltask4 = GNUNET_SCHEDULER_add_read_net (GNUNET_TIME_UNIT_FOREVER_REL, 170 ltask4 = GNUNET_SCHEDULER_add_read_net (GNUNET_TIME_UNIT_FOREVER_REL,
169 lsock4, &do_udp_read, NULL); 171 lsock4, &do_udp_read, NULL);
172 /* So you read once and what will happen if you get an irregular message? Repeat and add timeout */
170 173
171 } 174 }
172 if(NULL == lsock4 ) 175 if(NULL == lsock4 )
173 { 176 {
177 /* FIXME: duplicate check */
174 GNUNET_SCHEDULER_shutdown (); 178 GNUNET_SCHEDULER_shutdown ();
175 return; 179 return;
176 } 180 }
@@ -205,4 +209,5 @@ main (int argc, char *const argv[])
205 return ret; 209 return ret;
206} 210}
207 211
212/* FIXME: wrong file name */
208/* end of test_nat.c */ 213/* end of test_nat.c */