message types for nat punching
authorNathan S. Evans <evans@in.tum.de>
Mon, 22 Feb 2010 14:34:18 +0000 (14:34 +0000)
committerNathan S. Evans <evans@in.tum.de>
Mon, 22 Feb 2010 14:34:18 +0000 (14:34 +0000)
src/include/gnunet_protocols.h

index 96477a0d5e27a9966d6fb7ab25398234f6a97e73..f8ae5daec7b6a25f502fb48b6e111048ab68f892 100644 (file)
@@ -226,6 +226,31 @@ extern "C"
  */
 #define GNUNET_MESSAGE_TYPE_PEERINFO_NOTIFY 41
 
+/**
+ * UDP NAT probe message, send from NAT'd peer to
+ * other peer to negotiate punched address/port
+ */
+#define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_NAT_PROBE 55
+
+/**
+ * UDP NAT probe reply, sent from a non-NAT'd peer to
+ * a NAT'd one to inform it we got the probe and of the
+ * address/port seen
+ */
+#define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_NAT_PROBE_REPLY 56
+
+/**
+ * UDP NAT probe confirmation, sent from a NAT'd peer to
+ * a non-NAT'd one to inform it which port to send to us
+ * on
+ */
+#define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_NAT_PROBE_CONFIRM 57
+
+/**
+ * UDP NAT probe keepalive, once a hole is punched the NAT'd peer
+ * needs to keep the hole alive
+ */
+#define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_NAT_PROBE_KEEPALIVE 58
 
 /**
  * Welcome message between TCP transports.