From 922a0672749ba9d496d1dd8f6596bb4f8035e71d Mon Sep 17 00:00:00 2001 From: Moon Date: Sat, 9 Oct 2010 13:53:47 +0000 Subject: rework UPnP code to use GNUnet scheduler and network API disable NAT-PMP support for now --- src/nat/nat.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'src/nat/nat.h') 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 -- cgit v1.2.3