aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_nat_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-12-16 10:53:58 +0100
committerChristian Grothoff <christian@grothoff.org>2016-12-16 10:53:58 +0100
commit8108e41d89bb771fe8bcf887919de3f581f1cc0d (patch)
tree970c382485c663f8c8516b59e34790d33878dbfb /src/include/gnunet_nat_service.h
parentf88d55e43f3d3a4468c2faa0621044ad17594e5f (diff)
downloadgnunet-8108e41d89bb771fe8bcf887919de3f581f1cc0d.tar.gz
gnunet-8108e41d89bb771fe8bcf887919de3f581f1cc0d.zip
add PORT to NAT configuration, generate nat.conf from nat.conf.in, implement more of new NAT service
Diffstat (limited to 'src/include/gnunet_nat_service.h')
-rw-r--r--src/include/gnunet_nat_service.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/include/gnunet_nat_service.h b/src/include/gnunet_nat_service.h
index 378f5a8cb..b66b44240 100644
--- a/src/include/gnunet_nat_service.h
+++ b/src/include/gnunet_nat_service.h
@@ -64,7 +64,7 @@ enum GNUNET_NAT_AddressClass
64 GNUNET_NAT_AC_OTHER = 1, 64 GNUNET_NAT_AC_OTHER = 1,
65 65
66 /** 66 /**
67 * Addresses that are highly sensitive 67 * Flag for addresses that are highly sensitive
68 * (i.e. IPv6 with our MAC). 68 * (i.e. IPv6 with our MAC).
69 */ 69 */
70 GNUNET_NAT_AC_PRIVATE = 2, 70 GNUNET_NAT_AC_PRIVATE = 2,
@@ -83,6 +83,7 @@ enum GNUNET_NAT_AddressClass
83 /** 83 /**
84 * Addresses useful in the local wired network, 84 * Addresses useful in the local wired network,
85 * i.e. a MAC. Sensitive, but obvious to people nearby. 85 * i.e. a MAC. Sensitive, but obvious to people nearby.
86
86 * Useful for broadcasts. 87 * Useful for broadcasts.
87 */ 88 */
88 GNUNET_NAT_AC_LAN = 8, 89 GNUNET_NAT_AC_LAN = 8,
@@ -113,6 +114,13 @@ enum GNUNET_NAT_AddressClass
113 GNUNET_NAT_AC_LOOPBACK = 64, 114 GNUNET_NAT_AC_LOOPBACK = 64,
114 115
115 /** 116 /**
117 * Addresses that should be our global external IP address
118 * on the outside of a NAT. Might be incorrectly determined.
119 * Used as a bit in combination with #GNUNET_NAT_AC_GLOBAL.
120 */
121 GNUNET_NAT_AC_GLOBAL_EXTERN = 128,
122
123 /**
116 * Bitmask for "any" address. 124 * Bitmask for "any" address.
117 */ 125 */
118 GNUNET_NAT_AC_ANY = 65535 126 GNUNET_NAT_AC_ANY = 65535