aboutsummaryrefslogtreecommitdiff
path: root/src/nat/gnunet-helper-nat-server-windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nat/gnunet-helper-nat-server-windows.c')
-rw-r--r--src/nat/gnunet-helper-nat-server-windows.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nat/gnunet-helper-nat-server-windows.c b/src/nat/gnunet-helper-nat-server-windows.c
index b15752d8e..d970ffd70 100644
--- a/src/nat/gnunet-helper-nat-server-windows.c
+++ b/src/nat/gnunet-helper-nat-server-windows.c
@@ -71,6 +71,11 @@
71#define NAT_TRAV_PORT 22225 71#define NAT_TRAV_PORT 22225
72 72
73/** 73/**
74 * Must match packet ID used by gnunet-helper-nat-client.c
75 */
76#define PACKET_ID 256
77
78/**
74 * TTL to use for our outgoing messages. 79 * TTL to use for our outgoing messages.
75 */ 80 */
76#define IPDEFTTL 64 81#define IPDEFTTL 64
@@ -265,7 +270,7 @@ send_icmp_echo (const struct in_addr *my_ip)
265 ip_pkt.vers_ihl = 0x45; 270 ip_pkt.vers_ihl = 0x45;
266 ip_pkt.tos = 0; 271 ip_pkt.tos = 0;
267 ip_pkt.pkt_len = htons (sizeof (packet)); 272 ip_pkt.pkt_len = htons (sizeof (packet));
268 ip_pkt.id = htons (256); 273 ip_pkt.id = htons (PACKET_ID);
269 ip_pkt.flags_frag_offset = 0; 274 ip_pkt.flags_frag_offset = 0;
270 ip_pkt.ttl = IPDEFTTL; 275 ip_pkt.ttl = IPDEFTTL;
271 ip_pkt.proto = IPPROTO_ICMP; 276 ip_pkt.proto = IPPROTO_ICMP;