WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.
-
+
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
SPDX-License-Identifier: AGPL3.0-or-later
-*/
+ */
/**
* @file src/nat/nat.h
* Request to test NAT traversal, sent to the gnunet-nat-server
* (not the service!).
*/
-struct GNUNET_NAT_TestMessage
-{
+struct GNUNET_NAT_TestMessage {
/**
* Header with type #GNUNET_MESSAGE_TYPE_NAT_TEST
*/
* #GNUNET_YES for TCP, #GNUNET_NO for UDP.
*/
int32_t is_tcp;
-
};
* Flags specifying the events this client would be
* interested in being told about.
*/
-enum GNUNET_NAT_RegisterFlags
-{
+enum GNUNET_NAT_RegisterFlags {
/**
* This client does not want any notifications.
*/
/**
* Message sent by a client to register with its addresses.
*/
-struct GNUNET_NAT_RegisterMessage
-{
+struct GNUNET_NAT_RegisterMessage {
/**
* Header with type #GNUNET_MESSAGE_TYPE_NAT_REGISTER
*/
sockaddr' */
/* Followed by @e str_len section name to use for options */
-
};
/**
* Client telling the service to (possibly) handle a STUN message.
*/
-struct GNUNET_NAT_HandleStunMessage
-{
+struct GNUNET_NAT_HandleStunMessage {
/**
* Header with type #GNUNET_MESSAGE_TYPE_NAT_HANDLE_STUN
*/
/**
* Client asking the service to initiate connection reversal.
*/
-struct GNUNET_NAT_RequestConnectionReversalMessage
-{
+struct GNUNET_NAT_RequestConnectionReversalMessage {
/**
* Header with type #GNUNET_MESSAGE_TYPE_NAT_REQUEST_CONNECTION_REVERSAL
*/
/* followed by a `struct sockaddr` of @e local_addr_size bytes */
/* followed by a `struct sockaddr` of @e remote_addr_size bytes */
-
};
/**
* Service telling a client that connection reversal was requested.
*/
-struct GNUNET_NAT_ConnectionReversalRequestedMessage
-{
+struct GNUNET_NAT_ConnectionReversalRequestedMessage {
/**
* Header with type #GNUNET_MESSAGE_TYPE_NAT_CONNECTION_REVERSAL_REQUESTED
*/
struct GNUNET_MessageHeader header;
/* followed by a `struct sockaddr_in` */
-
};
/**
- * Service notifying the client about changes in the set of
+ * Service notifying the client about changes in the set of
* addresses it has.
*/
-struct GNUNET_NAT_AddressChangeNotificationMessage
-{
+struct GNUNET_NAT_AddressChangeNotificationMessage {
/**
* Header with type #GNUNET_MESSAGE_TYPE_NAT_ADDRESS_CHANGE
*/
/**
* #GNUNET_YES to add, #GNUNET_NO to remove the address from the list.
- */
+ */
int32_t add_remove GNUNET_PACKED;
/**
*/
uint32_t addr_class GNUNET_PACKED;
/* followed by a `struct sockaddr` */
-
};