summaryrefslogtreecommitdiff
path: root/src/nat/nat.h
diff options
context:
space:
mode:
authorMoon <moon@140774ce-b5e7-0310-ab8b-a85725594a96>2010-10-09 13:53:47 +0000
committerMoon <moon@140774ce-b5e7-0310-ab8b-a85725594a96>2010-10-09 13:53:47 +0000
commit922a0672749ba9d496d1dd8f6596bb4f8035e71d (patch)
treeccd4b351bd5acd5cc3b8b1cc358c712d6c0c116d /src/nat/nat.h
parentdc24b5bf44bf8d9460b2571fe529403637aa3e16 (diff)
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.h17
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 @@
* Used to communicate with the UPnP and NAT-PMP plugins
*/
enum GNUNET_NAT_PortState
- {
- GNUNET_NAT_PORT_ERROR,
+{
+ GNUNET_NAT_PORT_ERROR,
/**
* the port isn't forwarded
*/
- GNUNET_NAT_PORT_UNMAPPED,
+ GNUNET_NAT_PORT_UNMAPPED,
/**
* we're cancelling the port forwarding
*/
- GNUNET_NAT_PORT_UNMAPPING,
+ GNUNET_NAT_PORT_UNMAPPING,
/**
* we're in the process of trying to set up port forwarding
*/
- GNUNET_NAT_PORT_MAPPING,
+ GNUNET_NAT_PORT_MAPPING,
/**
* we've successfully forwarded the port
*/
- GNUNET_NAT_PORT_MAPPED
- };
+ GNUNET_NAT_PORT_MAPPED
+};
/**
@@ -66,8 +66,7 @@ enum GNUNET_NAT_PortState
* @param b second sockaddr
* @return 0 if addresses are equal, non-null value otherwise
*/
-int GNUNET_NAT_cmp_addr (const struct sockaddr *a,
- const struct sockaddr *b);
+int GNUNET_NAT_cmp_addr (const struct sockaddr *a, const struct sockaddr *b);
#endif