diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-02 19:15:51 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-02 19:15:51 +0100 |
commit | f28533eb5fbd2b8e00bb351eb9fd1da322c70505 (patch) | |
tree | 793b1949dd681414d51ea18c151dd6684efa6b9f /src/nat/nat.h | |
parent | 1082a8e39e4f3d9b908b14995653ac262f640adb (diff) | |
download | gnunet-f28533eb5fbd2b8e00bb351eb9fd1da322c70505.tar.gz gnunet-f28533eb5fbd2b8e00bb351eb9fd1da322c70505.zip |
preparations for proper manual hole punching support in new NAT API
Diffstat (limited to 'src/nat/nat.h')
-rw-r--r-- | src/nat/nat.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/nat/nat.h b/src/nat/nat.h index 5cb1c1050..af418c7c2 100644 --- a/src/nat/nat.h +++ b/src/nat/nat.h | |||
@@ -110,10 +110,11 @@ struct GNUNET_NAT_RegisterMessage | |||
110 | uint8_t proto; | 110 | uint8_t proto; |
111 | 111 | ||
112 | /** | 112 | /** |
113 | * Port we would like as we are configured to use this one for | 113 | * Number of bytes in the string that follow which |
114 | * advertising (in addition to the one we are binding to). | 114 | * specify the hostname and port of a manually punched |
115 | * hole for this client. | ||
115 | */ | 116 | */ |
116 | uint16_t adv_port GNUNET_PACKED; | 117 | uint16_t hole_external_len GNUNET_PACKED; |
117 | 118 | ||
118 | /** | 119 | /** |
119 | * Number of addresses that this service is bound to that follow. | 120 | * Number of addresses that this service is bound to that follow. |
@@ -124,6 +125,9 @@ struct GNUNET_NAT_RegisterMessage | |||
124 | 125 | ||
125 | /* Followed by @e num_addrs addresses of type 'struct | 126 | /* Followed by @e num_addrs addresses of type 'struct |
126 | sockaddr' */ | 127 | sockaddr' */ |
128 | |||
129 | /* Followed by @e hole_external_len bytes giving a hostname | ||
130 | and port */ | ||
127 | 131 | ||
128 | }; | 132 | }; |
129 | 133 | ||