aboutsummaryrefslogtreecommitdiff
path: root/src/nat/nat.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-10-23 17:49:49 +0000
committerChristian Grothoff <christian@grothoff.org>2016-10-23 17:49:49 +0000
commita909bc99632f438857214641ea766ff5ca5a7760 (patch)
tree602c01c89b7eae479e05654e3d75d03ae3bcc54a /src/nat/nat.h
parent50822db20c20816eff873c829b57c9552dd3f168 (diff)
downloadgnunet-a909bc99632f438857214641ea766ff5ca5a7760.tar.gz
gnunet-a909bc99632f438857214641ea766ff5ca5a7760.zip
start defining IPC messages for NAT
Diffstat (limited to 'src/nat/nat.h')
-rw-r--r--src/nat/nat.h127
1 files changed, 125 insertions, 2 deletions
diff --git a/src/nat/nat.h b/src/nat/nat.h
index 0cf90f1be..e7bee54c0 100644
--- a/src/nat/nat.h
+++ b/src/nat/nat.h
@@ -20,7 +20,7 @@
20 20
21/** 21/**
22 * @file src/nat/nat.h 22 * @file src/nat/nat.h
23 * @brief Messages for interaction with gnunet-nat-server 23 * @brief Messages for interaction with gnunet-nat-server and gnunet-nat-service
24 * @author Christian Grothoff 24 * @author Christian Grothoff
25 * 25 *
26 */ 26 */
@@ -32,7 +32,8 @@
32GNUNET_NETWORK_STRUCT_BEGIN 32GNUNET_NETWORK_STRUCT_BEGIN
33 33
34/** 34/**
35 * Request to test NAT traversal. 35 * Request to test NAT traversal, sent to the gnunet-nat-server
36 * (not the service!).
36 */ 37 */
37struct GNUNET_NAT_TestMessage 38struct GNUNET_NAT_TestMessage
38{ 39{
@@ -62,6 +63,128 @@ struct GNUNET_NAT_TestMessage
62 int32_t is_tcp; 63 int32_t is_tcp;
63 64
64}; 65};
66
67
68/**
69 *
70 */
71struct GNUNET_NAT_RegisterMessage
72{
73 /**
74 * Header with type #GNUNET_MESSAGE_TYPE_NAT_REGISTER
75 */
76 struct GNUNET_MessageHeader header;
77};
78
79
80/**
81 *
82 */
83struct GNUNET_NAT_HandleStunMessage
84{
85 /**
86 * Header with type #GNUNET_MESSAGE_TYPE_NAT_HANDLE_STUN
87 */
88 struct GNUNET_MessageHeader header;
89};
90
91
92/**
93 *
94 */
95struct GNUNET_NAT_RequestConnectionReversalMessage
96{
97 /**
98 * Header with type #GNUNET_MESSAGE_TYPE_NAT_REQUEST_CONNECTION_REVERSAL
99 */
100 struct GNUNET_MessageHeader header;
101};
102
103
104/**
105 *
106 */
107struct GNUNET_NAT_ConnectionReversalRequestedMessage
108{
109 /**
110 * Header with type #GNUNET_MESSAGE_TYPE_NAT_CONNECTION_REVERSAL_REQUESTED
111 */
112 struct GNUNET_MessageHeader header;
113};
114
115
116/**
117 *
118 */
119struct GNUNET_NAT_AddressChangeNotificationMessage
120{
121 /**
122 * Header with type #GNUNET_MESSAGE_TYPE_NAT_ADDRESS_CHANGE
123 */
124 struct GNUNET_MessageHeader header;
125};
126
127
128/**
129 *
130 */
131struct GNUNET_NAT_Ipv4ChangeNotificationMessage
132{
133 /**
134 * Header with type #GNUNET_MESSAGE_TYPE_NAT_IPV4_CHANGE
135 */
136 struct GNUNET_MessageHeader header;
137};
138
139
140/**
141 *
142 */
143struct GNUNET_NAT_RequestTestMessage
144{
145 /**
146 * Header with type #GNUNET_MESSAGE_TYPE_NAT_REQUEST_TEST
147 */
148 struct GNUNET_MessageHeader header;
149};
150
151
152/**
153 *
154 */
155struct GNUNET_NAT_TestResultMessage
156{
157 /**
158 * Header with type #GNUNET_MESSAGE_TYPE_NAT_TEST_RESULT
159 */
160 struct GNUNET_MessageHeader header;
161};
162
163
164/**
165 *
166 */
167struct GNUNET_NAT_AutoconfigRequestMessage
168{
169 /**
170 * Header with type #GNUNET_MESSAGE_TYPE_NAT_REQUEST_AUTO_CFG
171 */
172 struct GNUNET_MessageHeader header;
173};
174
175
176/**
177 *
178 */
179struct GNUNET_NAT_AutoconfigResultMessage
180{
181 /**
182 * Header with type #GNUNET_MESSAGE_TYPE_NAT_AUTO_CFG_RESULT
183 */
184 struct GNUNET_MessageHeader header;
185};
186
187
65GNUNET_NETWORK_STRUCT_END 188GNUNET_NETWORK_STRUCT_END
66 189
67#endif 190#endif