diff options
author | Moon <moon@140774ce-b5e7-0310-ab8b-a85725594a96> | 2010-10-09 13:53:47 +0000 |
---|---|---|
committer | Moon <moon@140774ce-b5e7-0310-ab8b-a85725594a96> | 2010-10-09 13:53:47 +0000 |
commit | 922a0672749ba9d496d1dd8f6596bb4f8035e71d (patch) | |
tree | ccd4b351bd5acd5cc3b8b1cc358c712d6c0c116d /src/nat/nat.h | |
parent | dc24b5bf44bf8d9460b2571fe529403637aa3e16 (diff) | |
download | gnunet-922a0672749ba9d496d1dd8f6596bb4f8035e71d.tar.gz gnunet-922a0672749ba9d496d1dd8f6596bb4f8035e71d.zip |
rework UPnP code to use GNUnet scheduler and network API
disable NAT-PMP support for now
Diffstat (limited to 'src/nat/nat.h')
-rw-r--r-- | src/nat/nat.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/nat/nat.h b/src/nat/nat.h index a0924af08..3a0f21e7b 100644 --- a/src/nat/nat.h +++ b/src/nat/nat.h | |||
@@ -34,29 +34,29 @@ | |||
34 | * Used to communicate with the UPnP and NAT-PMP plugins | 34 | * Used to communicate with the UPnP and NAT-PMP plugins |
35 | */ | 35 | */ |
36 | enum GNUNET_NAT_PortState | 36 | enum GNUNET_NAT_PortState |
37 | { | 37 | { |
38 | GNUNET_NAT_PORT_ERROR, | 38 | GNUNET_NAT_PORT_ERROR, |
39 | 39 | ||
40 | /** | 40 | /** |
41 | * the port isn't forwarded | 41 | * the port isn't forwarded |
42 | */ | 42 | */ |
43 | GNUNET_NAT_PORT_UNMAPPED, | 43 | GNUNET_NAT_PORT_UNMAPPED, |
44 | 44 | ||
45 | /** | 45 | /** |
46 | * we're cancelling the port forwarding | 46 | * we're cancelling the port forwarding |
47 | */ | 47 | */ |
48 | GNUNET_NAT_PORT_UNMAPPING, | 48 | GNUNET_NAT_PORT_UNMAPPING, |
49 | 49 | ||
50 | /** | 50 | /** |
51 | * we're in the process of trying to set up port forwarding | 51 | * we're in the process of trying to set up port forwarding |
52 | */ | 52 | */ |
53 | GNUNET_NAT_PORT_MAPPING, | 53 | GNUNET_NAT_PORT_MAPPING, |
54 | 54 | ||
55 | /** | 55 | /** |
56 | * we've successfully forwarded the port | 56 | * we've successfully forwarded the port |
57 | */ | 57 | */ |
58 | GNUNET_NAT_PORT_MAPPED | 58 | GNUNET_NAT_PORT_MAPPED |
59 | }; | 59 | }; |
60 | 60 | ||
61 | 61 | ||
62 | /** | 62 | /** |
@@ -66,8 +66,7 @@ enum GNUNET_NAT_PortState | |||
66 | * @param b second sockaddr | 66 | * @param b second sockaddr |
67 | * @return 0 if addresses are equal, non-null value otherwise | 67 | * @return 0 if addresses are equal, non-null value otherwise |
68 | */ | 68 | */ |
69 | int GNUNET_NAT_cmp_addr (const struct sockaddr *a, | 69 | int GNUNET_NAT_cmp_addr (const struct sockaddr *a, const struct sockaddr *b); |
70 | const struct sockaddr *b); | ||
71 | 70 | ||
72 | 71 | ||
73 | #endif | 72 | #endif |