X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fnat%2Fgnunet-helper-nat-server-windows.c;h=d970ffd70c873133eddcc001f8af741d9460ea01;hb=70466ec3c34f9a920e9e798e3169f886e9486a59;hp=b15752d8ec948bfe6dbf67d00bf7e0cd4a04840c;hpb=f39b3686f461388b6f1f61e2110832d0c7005a2f;p=oweals%2Fgnunet.git 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 @@ -70,6 +70,11 @@ */ #define NAT_TRAV_PORT 22225 +/** + * Must match packet ID used by gnunet-helper-nat-client.c + */ +#define PACKET_ID 256 + /** * TTL to use for our outgoing messages. */ @@ -265,7 +270,7 @@ send_icmp_echo (const struct in_addr *my_ip) ip_pkt.vers_ihl = 0x45; ip_pkt.tos = 0; ip_pkt.pkt_len = htons (sizeof (packet)); - ip_pkt.id = htons (256); + ip_pkt.id = htons (PACKET_ID); ip_pkt.flags_frag_offset = 0; ip_pkt.ttl = IPDEFTTL; ip_pkt.proto = IPPROTO_ICMP;