aboutsummaryrefslogtreecommitdiff
path: root/src/nat/gnunet-helper-nat-server-windows.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-12-16 22:04:23 +0000
committerChristian Grothoff <christian@grothoff.org>2011-12-16 22:04:23 +0000
commit197ffae2ff2f561cfef790d9fa29aa1a040b71c4 (patch)
treeb51cd2443803ed1956961cdc5feda032ad97b129 /src/nat/gnunet-helper-nat-server-windows.c
parent7eb418d4f9351657c3722374bd6660f077926eae (diff)
downloadgnunet-197ffae2ff2f561cfef790d9fa29aa1a040b71c4.tar.gz
gnunet-197ffae2ff2f561cfef790d9fa29aa1a040b71c4.zip
really minimizing code running with root rights
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;