diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-16 11:19:15 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-16 11:19:15 +0000 |
commit | 1ff3c89a1a0eb49baee9c80b2a1043aefd2bf201 (patch) | |
tree | 4ed8ce56f9a9561bf4b32e16cefe5ac90ddfd8c5 /src/nat/gnunet-helper-nat-server.c | |
parent | ac109f65ead8ae7aa01a99b100bebfac39d25ffa (diff) | |
download | gnunet-1ff3c89a1a0eb49baee9c80b2a1043aefd2bf201.tar.gz gnunet-1ff3c89a1a0eb49baee9c80b2a1043aefd2bf201.zip |
additional stylistic changes to gnunet-helper-nat-client anticipating next round of suggestions from Jacob Applebaum
Diffstat (limited to 'src/nat/gnunet-helper-nat-server.c')
-rw-r--r-- | src/nat/gnunet-helper-nat-server.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nat/gnunet-helper-nat-server.c b/src/nat/gnunet-helper-nat-server.c index f71c37fa8..733c00dc2 100644 --- a/src/nat/gnunet-helper-nat-server.c +++ b/src/nat/gnunet-helper-nat-server.c | |||
@@ -70,6 +70,11 @@ | |||
70 | #define VERBOSE 0 | 70 | #define VERBOSE 0 |
71 | 71 | ||
72 | /** | 72 | /** |
73 | * Must match packet ID used by gnunet-helper-nat-client.c | ||
74 | */ | ||
75 | #define PACKET_ID 256 | ||
76 | |||
77 | /** | ||
73 | * Must match IP given in the client. | 78 | * Must match IP given in the client. |
74 | */ | 79 | */ |
75 | #define DUMMY_IP "192.0.2.86" | 80 | #define DUMMY_IP "192.0.2.86" |
@@ -245,7 +250,7 @@ send_icmp_echo (const struct in_addr *my_ip) | |||
245 | ip_pkt.vers_ihl = 0x45; | 250 | ip_pkt.vers_ihl = 0x45; |
246 | ip_pkt.tos = 0; | 251 | ip_pkt.tos = 0; |
247 | ip_pkt.pkt_len = htons (sizeof (packet)); | 252 | ip_pkt.pkt_len = htons (sizeof (packet)); |
248 | ip_pkt.id = htons (256); | 253 | ip_pkt.id = htons (PACKET_ID); |
249 | ip_pkt.flags_frag_offset = 0; | 254 | ip_pkt.flags_frag_offset = 0; |
250 | ip_pkt.ttl = IPDEFTTL; | 255 | ip_pkt.ttl = IPDEFTTL; |
251 | ip_pkt.proto = IPPROTO_ICMP; | 256 | ip_pkt.proto = IPPROTO_ICMP; |