diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-02-22 14:34:18 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-02-22 14:34:18 +0000 |
commit | 5fa65526805e64c037a56558f7d8b8c66aef9506 (patch) | |
tree | 874ce5699ecad5198de5211929b9d46c2f7803bd | |
parent | d87e55707c6f3942cc245806e8553e204f811013 (diff) | |
download | gnunet-5fa65526805e64c037a56558f7d8b8c66aef9506.tar.gz gnunet-5fa65526805e64c037a56558f7d8b8c66aef9506.zip |
message types for nat punching
-rw-r--r-- | src/include/gnunet_protocols.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h index 96477a0d5..f8ae5daec 100644 --- a/src/include/gnunet_protocols.h +++ b/src/include/gnunet_protocols.h | |||
@@ -226,6 +226,31 @@ extern "C" | |||
226 | */ | 226 | */ |
227 | #define GNUNET_MESSAGE_TYPE_PEERINFO_NOTIFY 41 | 227 | #define GNUNET_MESSAGE_TYPE_PEERINFO_NOTIFY 41 |
228 | 228 | ||
229 | /** | ||
230 | * UDP NAT probe message, send from NAT'd peer to | ||
231 | * other peer to negotiate punched address/port | ||
232 | */ | ||
233 | #define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_NAT_PROBE 55 | ||
234 | |||
235 | /** | ||
236 | * UDP NAT probe reply, sent from a non-NAT'd peer to | ||
237 | * a NAT'd one to inform it we got the probe and of the | ||
238 | * address/port seen | ||
239 | */ | ||
240 | #define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_NAT_PROBE_REPLY 56 | ||
241 | |||
242 | /** | ||
243 | * UDP NAT probe confirmation, sent from a NAT'd peer to | ||
244 | * a non-NAT'd one to inform it which port to send to us | ||
245 | * on | ||
246 | */ | ||
247 | #define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_NAT_PROBE_CONFIRM 57 | ||
248 | |||
249 | /** | ||
250 | * UDP NAT probe keepalive, once a hole is punched the NAT'd peer | ||
251 | * needs to keep the hole alive | ||
252 | */ | ||
253 | #define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_NAT_PROBE_KEEPALIVE 58 | ||
229 | 254 | ||
230 | /** | 255 | /** |
231 | * Welcome message between TCP transports. | 256 | * Welcome message between TCP transports. |