diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-02-05 08:56:08 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-02-05 08:56:08 +0000 |
commit | 80ab6f6eb81c2f2f646a24dbdb8e15da5abe5cf4 (patch) | |
tree | 1d31f1b509399929589907126a050995319fe7d3 /src | |
parent | 4e98f95fda2aee5c1d1936eee5536c81e5aec7b6 (diff) | |
download | gnunet-80ab6f6eb81c2f2f646a24dbdb8e15da5abe5cf4.tar.gz gnunet-80ab6f6eb81c2f2f646a24dbdb8e15da5abe5cf4.zip |
fixes
Diffstat (limited to 'src')
-rw-r--r-- | src/transport/gnunet-nat-client.c | 2 | ||||
-rw-r--r-- | src/transport/gnunet-nat-server.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/transport/gnunet-nat-client.c b/src/transport/gnunet-nat-client.c index fc88f8229..3bf409461 100644 --- a/src/transport/gnunet-nat-client.c +++ b/src/transport/gnunet-nat-client.c | |||
@@ -37,6 +37,7 @@ | |||
37 | #include <errno.h> | 37 | #include <errno.h> |
38 | #include <stdlib.h> | 38 | #include <stdlib.h> |
39 | #include <stdint.h> | 39 | #include <stdint.h> |
40 | #include <time.h> | ||
40 | #include <netinet/ip.h> | 41 | #include <netinet/ip.h> |
41 | #include <netinet/ip_icmp.h> | 42 | #include <netinet/ip_icmp.h> |
42 | #include <netinet/in.h> | 43 | #include <netinet/in.h> |
@@ -498,6 +499,7 @@ main (int argc, char *const *argv) | |||
498 | strerror (errno)); | 499 | strerror (errno)); |
499 | return 1; | 500 | return 1; |
500 | } | 501 | } |
502 | srand (time(NULL)); | ||
501 | memset (&dst, 0, sizeof (dst)); | 503 | memset (&dst, 0, sizeof (dst)); |
502 | dst.sin_family = AF_INET; | 504 | dst.sin_family = AF_INET; |
503 | dst.sin_port = htons (NAT_TRAV_PORT); | 505 | dst.sin_port = htons (NAT_TRAV_PORT); |
diff --git a/src/transport/gnunet-nat-server.c b/src/transport/gnunet-nat-server.c index 9eab289e0..936726fb3 100644 --- a/src/transport/gnunet-nat-server.c +++ b/src/transport/gnunet-nat-server.c | |||
@@ -37,6 +37,7 @@ | |||
37 | #include <errno.h> | 37 | #include <errno.h> |
38 | #include <stdlib.h> | 38 | #include <stdlib.h> |
39 | #include <stdint.h> | 39 | #include <stdint.h> |
40 | #include <time.h> | ||
40 | #include <netinet/ip.h> | 41 | #include <netinet/ip.h> |
41 | #include <netinet/ip_icmp.h> | 42 | #include <netinet/ip_icmp.h> |
42 | #include <netinet/in.h> | 43 | #include <netinet/in.h> |
@@ -506,6 +507,7 @@ main (int argc, char *const *argv) | |||
506 | strerror (errno)); | 507 | strerror (errno)); |
507 | return 1; | 508 | return 1; |
508 | } | 509 | } |
510 | srand (time(NULL)); | ||
509 | memset (&dst, 0, sizeof (dst)); | 511 | memset (&dst, 0, sizeof (dst)); |
510 | dst.sin_family = AF_INET; | 512 | dst.sin_family = AF_INET; |
511 | dst.sin_port = htons (NAT_TRAV_PORT); | 513 | dst.sin_port = htons (NAT_TRAV_PORT); |