diff options
Diffstat (limited to 'src/transport/gnunet-nat-client.c')
-rw-r--r-- | src/transport/gnunet-nat-client.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/transport/gnunet-nat-client.c b/src/transport/gnunet-nat-client.c index 3bf409461..0fce09e71 100644 --- a/src/transport/gnunet-nat-client.c +++ b/src/transport/gnunet-nat-client.c | |||
@@ -42,27 +42,27 @@ | |||
42 | #include <netinet/ip_icmp.h> | 42 | #include <netinet/ip_icmp.h> |
43 | #include <netinet/in.h> | 43 | #include <netinet/in.h> |
44 | 44 | ||
45 | #define DEBUG 0 | 45 | #define DEBUG 1 |
46 | 46 | ||
47 | /** | 47 | /** |
48 | * Number of UDP ports to keep open (typically >= 256) | 48 | * Number of UDP ports to keep open (typically >= 256) |
49 | */ | 49 | */ |
50 | #define NUM_UDP_PORTS 256 | 50 | #define NUM_UDP_PORTS 1024 |
51 | 51 | ||
52 | /** | 52 | /** |
53 | * Number of ICMP replies to send per message received (typically >= 1024) | 53 | * Number of ICMP replies to send per message received (typically >= 1024) |
54 | */ | 54 | */ |
55 | #define NUM_ICMP_REPLIES 1024 | 55 | #define NUM_ICMP_REPLIES 10240 |
56 | 56 | ||
57 | /** | 57 | /** |
58 | * How often do we send our UDP messages to keep ports open? (typically < 100ms) | 58 | * How often do we send our UDP messages to keep ports open? (typically < 100ms) |
59 | */ | 59 | */ |
60 | #define UDP_SEND_FREQUENCY_MS 50 | 60 | #define UDP_SEND_FREQUENCY_MS 10 |
61 | 61 | ||
62 | /** | 62 | /** |
63 | * Port we use for the dummy target. | 63 | * Port we use for the dummy target. |
64 | */ | 64 | */ |
65 | #define NAT_TRAV_PORT 2222 | 65 | #define NAT_TRAV_PORT 22223 |
66 | 66 | ||
67 | /** | 67 | /** |
68 | * How often do we retry to open and bind a UDP socket before giving up? | 68 | * How often do we retry to open and bind a UDP socket before giving up? |