diff options
author | Bruno Cabral <bcabral@uw.edu> | 2015-07-01 04:09:34 +0000 |
---|---|---|
committer | Bruno Cabral <bcabral@uw.edu> | 2015-07-01 04:09:34 +0000 |
commit | ed53a24f07a861edf7edd327c04fc7a23111e3c4 (patch) | |
tree | 650ca908b1dd0515f789a828147b8c931ba71eef /src | |
parent | f27338992f0a5915ee974faea05f764c2df6f584 (diff) | |
download | gnunet-ed53a24f07a861edf7edd327c04fc7a23111e3c4.tar.gz gnunet-ed53a24f07a861edf7edd327c04fc7a23111e3c4.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/nat/test_stun.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nat/test_stun.c b/src/nat/test_stun.c index 1d271ffee..f0956d021 100644 --- a/src/nat/test_stun.c +++ b/src/nat/test_stun.c | |||
@@ -91,13 +91,13 @@ do_udp_read (void *cls, | |||
91 | lsock4))) | 91 | lsock4))) |
92 | { | 92 | { |
93 | rlen = GNUNET_NETWORK_socket_recv (lsock4, reply_buf, sizeof (reply_buf)); | 93 | rlen = GNUNET_NETWORK_socket_recv (lsock4, reply_buf, sizeof (reply_buf)); |
94 | printf("Recivied something of size %d", rlen); | 94 | |
95 | 95 | ||
96 | //Lets handle the packet | 96 | //Lets handle the packet |
97 | memset(&answer, 0, sizeof(struct sockaddr_in)); | 97 | memset(&answer, 0, sizeof(struct sockaddr_in)); |
98 | GNUNET_NAT_stun_handle_packet(reply_buf,rlen, &answer); | 98 | GNUNET_NAT_stun_handle_packet(reply_buf,rlen, &answer); |
99 | 99 | ||
100 | //Print the anser | 100 | //Print the answer |
101 | //TODO: Delete the object | 101 | //TODO: Delete the object |
102 | ret = 0; | 102 | ret = 0; |
103 | print_answer(&answer); | 103 | print_answer(&answer); |
@@ -209,5 +209,4 @@ main (int argc, char *const argv[]) | |||
209 | return ret; | 209 | return ret; |
210 | } | 210 | } |
211 | 211 | ||
212 | /* FIXME: wrong file name */ | 212 | /* end of test_stun.c */ |
213 | /* end of test_nat.c */ | ||