diff options
Diffstat (limited to 'src/include/gnunet_nat_service.h')
-rw-r--r-- | src/include/gnunet_nat_service.h | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/src/include/gnunet_nat_service.h b/src/include/gnunet_nat_service.h index ad3438538..a59069545 100644 --- a/src/include/gnunet_nat_service.h +++ b/src/include/gnunet_nat_service.h | |||
@@ -64,16 +64,21 @@ enum GNUNET_NAT_AddressClass | |||
64 | GNUNET_NAT_AC_OTHER = 1, | 64 | GNUNET_NAT_AC_OTHER = 1, |
65 | 65 | ||
66 | /** | 66 | /** |
67 | * Addresses that are global and are insensitive | 67 | * Addresses that are highly sensitive |
68 | * (i.e. IPv4). | 68 | * (i.e. IPv6 with our MAC). |
69 | */ | ||
70 | GNUNET_NAT_AC_PRIVATE = 2, | ||
71 | |||
72 | /** | ||
73 | * Addresses that are global (i.e. IPv4). | ||
69 | */ | 74 | */ |
70 | GNUNET_NAT_AC_GLOBAL = 2, | 75 | GNUNET_NAT_AC_GLOBAL = 4, |
71 | 76 | ||
72 | /** | 77 | /** |
73 | * Addresses that are global and are sensitive | 78 | * Addresses that are global and are sensitive |
74 | * (i.e. IPv6 with our MAC). | 79 | * (i.e. IPv6 with our MAC). |
75 | */ | 80 | */ |
76 | GNUNET_NAT_AC_GLOBAL_PRIVATE = 4, | 81 | GNUNET_NAT_AC_GLOBAL_PRIVATE = 6, |
77 | 82 | ||
78 | /** | 83 | /** |
79 | * Addresses useful in the local wired network, | 84 | * Addresses useful in the local wired network, |
@@ -81,6 +86,13 @@ enum GNUNET_NAT_AddressClass | |||
81 | * Useful for broadcasts. | 86 | * Useful for broadcasts. |
82 | */ | 87 | */ |
83 | GNUNET_NAT_AC_LAN = 8, | 88 | GNUNET_NAT_AC_LAN = 8, |
89 | |||
90 | /** | ||
91 | * Addresses useful in the local wired network, | ||
92 | * i.e. a MAC. Sensitive, but obvious to people nearby. | ||
93 | * Useful for broadcasts. | ||
94 | */ | ||
95 | GNUNET_NAT_AC_LAN_PRIVATE = 10, | ||
84 | 96 | ||
85 | /** | 97 | /** |
86 | * Addresses useful in the local wireless network, | 98 | * Addresses useful in the local wireless network, |
@@ -96,6 +108,11 @@ enum GNUNET_NAT_AddressClass | |||
96 | GNUNET_NAT_AC_BT = 32, | 108 | GNUNET_NAT_AC_BT = 32, |
97 | 109 | ||
98 | /** | 110 | /** |
111 | * Loopback addresses, only useful under special cirumstances. | ||
112 | */ | ||
113 | GNUNET_NAT_AC_LOOPBACK = 64, | ||
114 | |||
115 | /** | ||
99 | * Bitmask for "any" address. | 116 | * Bitmask for "any" address. |
100 | */ | 117 | */ |
101 | GNUNET_NAT_AC_ANY = 65535 | 118 | GNUNET_NAT_AC_ANY = 65535 |