Struct to encapsulate the header sent with each tunneled bundle. More...
#include <DTNTunnel.h>
Public Member Functions | |
BundleHeader () | |
BundleHeader (u_int8_t protocol, u_int8_t eof, u_int32_t connection_id, u_int32_t seqno, u_int32_t client_addr, u_int32_t remote_addr, u_int16_t client_port, u_int16_t remote_port) | |
Public Attributes | |
u_int8_t | protocol_ |
u_int8_t | eof_ |
u_int32_t | connection_id_ |
u_int32_t | seqno_ |
u_int32_t | client_addr_ |
u_int32_t | remote_addr_ |
u_int16_t | client_port_ |
u_int16_t | remote_port_ |
Struct to encapsulate the header sent with each tunneled bundle.
Note that since it is declared as a packed struct, it can be sent over the wire as-is.
XXX/demmer if this is used for non-IP tunnels, the address fields will need to be union'd or something like that
Definition at line 52 of file DTNTunnel.h.
dtntunnel::DTNTunnel::BundleHeader::BundleHeader | ( | ) | [inline] |
Definition at line 53 of file DTNTunnel.h.
dtntunnel::DTNTunnel::BundleHeader::BundleHeader | ( | u_int8_t | protocol, | |
u_int8_t | eof, | |||
u_int32_t | connection_id, | |||
u_int32_t | seqno, | |||
u_int32_t | client_addr, | |||
u_int32_t | remote_addr, | |||
u_int16_t | client_port, | |||
u_int16_t | remote_port | |||
) | [inline] |
Definition at line 58 of file DTNTunnel.h.
Definition at line 81 of file DTNTunnel.h.
Referenced by dtntunnel::TCPTunnel::handle_bundle(), dtntunnel::UDPTunnel::Listener::run(), and dtntunnel::TCPTunnel::Connection::run().
Definition at line 83 of file DTNTunnel.h.
Referenced by dtntunnel::TCPTunnel::handle_bundle(), dtntunnel::UDPTunnel::Listener::run(), and dtntunnel::TCPTunnel::Connection::run().
Definition at line 79 of file DTNTunnel.h.
Referenced by dtntunnel::TCPTunnel::handle_bundle(), and dtntunnel::TCPTunnel::Connection::run().
Definition at line 78 of file DTNTunnel.h.
Referenced by dtntunnel::TCPTunnel::Connection::run().
Definition at line 77 of file DTNTunnel.h.
Referenced by dtntunnel::DTNTunnel::handle_bundle(), dtntunnel::UDPTunnel::Listener::run(), and dtntunnel::TCPTunnel::Connection::run().
Definition at line 82 of file DTNTunnel.h.
Referenced by dtntunnel::UDPTunnel::handle_bundle(), dtntunnel::TCPTunnel::handle_bundle(), dtntunnel::UDPTunnel::Listener::run(), and dtntunnel::TCPTunnel::Connection::run().
Definition at line 84 of file DTNTunnel.h.
Referenced by dtntunnel::UDPTunnel::handle_bundle(), dtntunnel::TCPTunnel::handle_bundle(), dtntunnel::UDPTunnel::Listener::run(), and dtntunnel::TCPTunnel::Connection::run().
Definition at line 80 of file DTNTunnel.h.
Referenced by dtntunnel::TCPTunnel::Connection::handle_bundle(), dtntunnel::TCPTunnel::handle_bundle(), dtntunnel::UDPTunnel::Listener::run(), and dtntunnel::TCPTunnel::Connection::run().