13 #include <arpa/inet.h> 16 #include <netinet/udp.h> 18 #if __BYTE_ORDER == __LITTLE_ENDIAN 21 #elif __BYTE_ORDER == __BIG_ENDIAN 25 #error "Please fix <asm/byteorder.h>" 40 #include <linux/udp.h> 54 struct sockaddr_in _saddr;
55 struct sockaddr_in _daddr;
65 unsigned short inet_check_sum(
const void *p_buffer,
size_t p_header_length,
const unsigned short p_initial_sum = 0);
74 udp_layer(
const std::string & p_type,
const std::string & p_param);
87 virtual void send_data(OCTETSTRING& data,
Params& params);
95 virtual void receive_data(OCTETSTRING& data,
Params& info);
u_int16_t tot_len
Definition: udp_layer.hh:28
u_int8_t version
Definition: udp_layer.hh:19
u_int8_t ttl
Definition: udp_layer.hh:31
This class provides description of ITS UDP/IP protocol layer.
Definition: udp_layer.hh:50
u_int8_t ihl
Definition: udp_layer.hh:19
Forward declaration of TITAN class.
Definition: layer.hh:29
Params _params
Definition: udp_layer.hh:51
u_int8_t tos
Definition: udp_layer.hh:27
Definition: udp_layer.hh:17
virtual ~udp_layer()
Default destructor.
Definition: udp_layer.hh:78
Header file for the parameter dictionary.
struct iphdr * _iphdr
Layer parameters.
Definition: udp_layer.hh:52
This class provides basic functionalities for an ITS dictionary.
Definition: Params.hh:21
u_int16_t id
Definition: udp_layer.hh:29
struct udphdr * _udphdr
IP layer description.
Definition: udp_layer.hh:53
struct in_addr saddr
Definition: udp_layer.hh:34
u_int16_t check
Definition: udp_layer.hh:33
Header file for ITS abstract protocol layer definition.
u_int16_t frag_off
Definition: udp_layer.hh:30
struct in_addr daddr
Definition: udp_layer.hh:35
u_int8_t protocol
Definition: udp_layer.hh:32