#define GNUNET_NETWORK_STRUCT_BEGIN
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32.
#define GNUNET_NETWORK_STRUCT_END
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32;.
#define GNUNET_PACKED
gcc-ism to get packed structs.
GNUNET_NAT_RegisterFlags
Flags specifying the events this client would be interested in being told about.
@ GNUNET_NAT_RF_ADDRESSES
This client wants to be informed about changes to our applicable addresses.
@ GNUNET_NAT_RF_NONE
This client does not want any notifications.
@ GNUNET_NAT_RF_REVERSAL
This client supports address reversal.
Message sent by client to add a global address.
struct GNUNET_MessageHeader header
Header with type GNUNET_MESSAGE_TYPE_NAT_ADD_GLOBAL_ADDRESS.
unsigned int address_length
Length of the address following the struct, in NBO.
Service notifying the client about changes in the set of addresses it has.
int32_t add_remove
GNUNET_YES to add, GNUNET_NO to remove the address from the list.
struct GNUNET_MessageHeader header
Header with type GNUNET_MESSAGE_TYPE_NAT_ADDRESS_CHANGE.
uint32_t addr_class
Type of the address, an enum GNUNET_NAT_AddressClass in NBO.
Service telling a client that connection reversal was requested.
struct GNUNET_MessageHeader header
Header with type GNUNET_MESSAGE_TYPE_NAT_CONNECTION_REVERSAL_REQUESTED.
Client telling the service to (possibly) handle a STUN message.
struct GNUNET_MessageHeader header
Header with type GNUNET_MESSAGE_TYPE_NAT_HANDLE_STUN.
uint16_t payload_size
Number of bytes of payload included, in NBO.
uint16_t sender_addr_size
Size of the sender address included, in NBO.
Message sent by a client to register with its addresses.
uint16_t num_addrs
Number of addresses that this service is bound to that follow.
uint16_t str_len
Number of bytes in the string that follow which specifies a section name in the configuration.
struct GNUNET_MessageHeader header
Header with type GNUNET_MESSAGE_TYPE_NAT_REGISTER.
uint8_t flags
An enum GNUNET_NAT_RegisterFlags.
uint8_t proto
Client's IPPROTO, e.g.
Client asking the service to initiate connection reversal.
struct GNUNET_MessageHeader header
Header with type GNUNET_MESSAGE_TYPE_NAT_REQUEST_CONNECTION_REVERSAL.
uint16_t local_addr_size
Size of the local address included, in NBO.
uint16_t remote_addr_size
Size of the remote address included, in NBO.
Request to test NAT traversal, sent to the gnunet-nat-server (not the service!).
uint16_t dport
Port to use, 0 to send dummy ICMP response.
uint32_t dst_ipv4
IPv4 target IP address.
uint16_t data
Data to send OR advertised-port (in NBO) to use for dummy ICMP.
int32_t is_tcp
GNUNET_YES for TCP, GNUNET_NO for UDP.
struct GNUNET_MessageHeader header
Header with type GNUNET_MESSAGE_TYPE_NAT_TEST.