Helper Reference Manual
1.7.1
|
Ethernet MAC address. More...
#include <eth.h>
Data Fields | |
uint8_t | addr [ODPH_ETHADDR_LEN] |
Address. | |
odph_ethaddr_t | dst |
Destination address. | |
odph_ethaddr_t | src |
Source address. | |
odp_u16be_t | type |
EtherType. More... | |
odp_u16be_t | tci |
Priority / CFI / VLAN ID. | |
uint8_t | gtp_hdr_info |
GTP header info. | |
uint8_t | msg_type |
GTP message type. | |
odp_u16be_t | plen |
Total payload length. | |
odp_u32be_t | teid |
Tunnel endpoint ID. | |
uint8_t | type |
message type More... | |
uint8_t | code |
type sub-code More... | |
odp_u16sum_t | chksum |
checksum of icmp header More... | |
union { | |
struct { | |
odp_u16be_t id | |
id | |
odp_u16be_t sequence | |
sequence | |
} echo | |
Fields used for ICMP echo msgs. More... | |
odp_u32be_t gateway | |
gateway address | |
struct { | |
odp_u16be_t __unused | |
odp_u16be_t mtu | |
mtu | |
} frag | |
Fields used for ICMP frag msgs. More... | |
} | un |
Variant mappings of ICMP fields. More... | |
odp_u16be_t | csum |
Checksum. | |
odp_u32be_t | group |
Group address. | |
uint8_t | ver_ihl |
Version / Header length. | |
uint8_t | tos |
Type of service. | |
odp_u16be_t | tot_len |
Total length. | |
odp_u16be_t | frag_offset |
Fragmentation offset. | |
uint8_t | ttl |
Time to live. | |
uint8_t | proto |
Protocol. | |
odp_u32be_t | src_addr |
Source address. | |
odp_u32be_t | dst_addr |
Destination address. | |
odp_u32be_t | ver_tc_flow |
Version / Traffic class / Flow label. | |
odp_u16be_t | payload_len |
Payload length. | |
uint8_t | next_hdr |
Next header. More... | |
uint8_t | hop_limit |
Hop limit. | |
uint8_t | src_addr [16] |
Source address. | |
uint8_t | dst_addr [16] |
Destination address. | |
uint8_t | ext_len |
Length of this extension in 8 byte units, not counting first 8 bytes, so 0 = 8 bytes 1 = 16 bytes, etc. | |
uint8_t | filler [6] |
Fill out first 8 byte segment. | |
odp_u32be_t | spi |
Security Parameter Index. | |
odp_u32be_t | seq_no |
Sequence Number. More... | |
uint8_t | iv [] |
Initialization vector. | |
uint8_t | pad_len |
Padding length (0-255) | |
uint8_t | next_header |
Next header protocol. | |
uint8_t | icv [] |
Integrity Check Value (optional) More... | |
uint8_t | ah_len |
AH header length. | |
odp_u16be_t | pad |
Padding (must be 0) | |
odp_u16be_t | src_port |
Source port. | |
odp_u16be_t | dst_port |
Destination port. | |
odp_u32be_t | tag |
Verification tag. | |
odp_u32be_t | chksum |
SCTP header and data checksum. | |
odp_u32be_t | ack_no |
Acknowledgment number. | |
union { | |
odp_u16be_t doffset_flags | |
TCP Flags aggregate. | |
}; | |
Variant maps for TCP header fields. | |
odp_u16be_t | window |
Window size. | |
odp_u16be_t | cksm |
Checksum. | |
odp_u16be_t | urgptr |
Urgent pointer. | |
odp_u16be_t | length |
UDP datagram length in bytes (header+data) | |
odp_u16be_t | chksum |
UDP header and data checksum (0 if not used) | |
Ethernet MAC address.
UDP header.
TCP header.
SCTP header.
IPSec AH header.
IPSec ESP trailer.
IPSec ESP header.
IPv6 Header extensions.
IPv6 header.
IPv4 header.
Simplified IGMP protocol header.
ICMP header.
Simplified GTP protocol header.
IEEE 802.1Q VLAN header.
Ethernet header.
This field is present when the EtherType (the odph_ethhdr_t type field) of the preceding ethernet header is ODPH_ETHTYPE_VLAN. The inner EtherType (the odph_vlanhdr_t type field) then indicates what comes next. Note that the so called TPID field isn't here because it overlaps with the odph_ethhdr_t type field.
Contains 8-bit gtp_hdr_info, 8-bit msg_type, 16-bit plen, 32-bit teid. No optional fields and next extension header.
Contains 8-bit type, 8-bit code, 16-bit csum, 32-bit group. No optional fields and next extension header.
uint8_t ODP_PACKED::type |
odp_u16sum_t ODP_PACKED::chksum |
checksum of icmp header
Checksum.
Definition at line 33 of file icmp.h.
Referenced by odph_ipv4_csum(), and odph_ipv4_csum_valid().
struct { ... } ODP_PACKED::echo |
Fields used for ICMP echo msgs.
echo datagram
struct { ... } ODP_PACKED::frag |
Fields used for ICMP frag msgs.
path mtu discovery
union { ... } ODP_PACKED::un |
Variant mappings of ICMP fields.
icmp sub header
uint8_t ODP_PACKED::next_hdr |
odp_u32be_t ODP_PACKED::seq_no |
uint8_t ODP_PACKED::icv |