Helper Reference Manual 1.7.1
Loading...
Searching...
No Matches
ODP_PACKED Struct Reference

Ethernet MAC address. More...

#include <eth.h>

Collaboration diagram for ODP_PACKED:
[legend]

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.
 
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
 
uint8_t code
 type sub-code
 
odp_u16sum_t chksum
 checksum of icmp header
 
union { 
 
   struct { 
 
      odp_u16be_t   id 
 id More...
 
      odp_u16be_t   sequence 
 sequence More...
 
   }   echo 
 Fields used for ICMP echo msgs. More...
 
   odp_u32be_t   gateway 
 gateway address More...
 
   struct { 
 
      odp_u16be_t   __unused 
 
      odp_u16be_t   mtu 
 mtu More...
 
   }   frag 
 Fields used for ICMP frag msgs. More...
 
un 
 Variant mappings of ICMP fields.
 
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.
 
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.
 
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)
 
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. More...
 
};  
 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)
 

Detailed Description

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.

Definition at line 54 of file eth.h.

Field Documentation

◆ addr

uint8_t ODP_PACKED::addr[ODPH_ETHADDR_LEN]

Address.

Definition at line 55 of file eth.h.

◆ dst

odph_ethaddr_t ODP_PACKED::dst

Destination address.

Definition at line 62 of file eth.h.

◆ src

odph_ethaddr_t ODP_PACKED::src

Source address.

Definition at line 63 of file eth.h.

◆ type [1/2]

uint8_t ODP_PACKED::type

EtherType.

Message Type.

Inner EtherType.

Definition at line 64 of file eth.h.

◆ tci

odp_u16be_t ODP_PACKED::tci

Priority / CFI / VLAN ID.

Definition at line 77 of file eth.h.

◆ gtp_hdr_info

uint8_t ODP_PACKED::gtp_hdr_info

GTP header info.

Definition at line 31 of file gtp.h.

◆ msg_type

uint8_t ODP_PACKED::msg_type

GTP message type.

Definition at line 32 of file gtp.h.

◆ plen

odp_u16be_t ODP_PACKED::plen

Total payload length.

Definition at line 33 of file gtp.h.

◆ teid

odp_u32be_t ODP_PACKED::teid

Tunnel endpoint ID.

Definition at line 34 of file gtp.h.

◆ type [2/2]

uint8_t ODP_PACKED::type

message type

Message Type.

Definition at line 31 of file icmp.h.

◆ code

uint8_t ODP_PACKED::code

type sub-code

Max response code.

Definition at line 32 of file icmp.h.

◆ chksum [1/3]

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().

◆ id

odp_u16be_t ODP_PACKED::id

id

ID.

Definition at line 38 of file icmp.h.

◆ sequence

odp_u16be_t ODP_PACKED::sequence

sequence

Definition at line 39 of file icmp.h.

◆ [struct]

struct { ... } ODP_PACKED::echo

Fields used for ICMP echo msgs.

echo datagram

◆ gateway

odp_u32be_t ODP_PACKED::gateway

gateway address

Definition at line 41 of file icmp.h.

◆ __unused

odp_u16be_t ODP_PACKED::__unused

Definition at line 44 of file icmp.h.

◆ mtu

odp_u16be_t ODP_PACKED::mtu

mtu

Definition at line 45 of file icmp.h.

◆ [struct]

struct { ... } ODP_PACKED::frag

Fields used for ICMP frag msgs.

path mtu discovery

◆ [union]

union { ... } ODP_PACKED::un

Variant mappings of ICMP fields.

icmp sub header

◆ csum

odp_u16be_t ODP_PACKED::csum

Checksum.

Definition at line 33 of file igmp.h.

◆ group

odp_u32be_t ODP_PACKED::group

Group address.

Definition at line 34 of file igmp.h.

◆ ver_ihl

uint8_t ODP_PACKED::ver_ihl

Version / Header length.

Definition at line 81 of file ip.h.

Referenced by odph_ipv4_csum().

◆ tos

uint8_t ODP_PACKED::tos

Type of service.

Definition at line 82 of file ip.h.

◆ tot_len

odp_u16be_t ODP_PACKED::tot_len

Total length.

Definition at line 83 of file ip.h.

◆ frag_offset

odp_u16be_t ODP_PACKED::frag_offset

Fragmentation offset.

Definition at line 85 of file ip.h.

◆ ttl

uint8_t ODP_PACKED::ttl

Time to live.

Definition at line 86 of file ip.h.

◆ proto

uint8_t ODP_PACKED::proto

Protocol.

Definition at line 87 of file ip.h.

◆ src_addr [1/2]

odp_u32be_t ODP_PACKED::src_addr

Source address.

Definition at line 89 of file ip.h.

◆ dst_addr [1/2]

odp_u32be_t ODP_PACKED::dst_addr

Destination address.

Definition at line 90 of file ip.h.

◆ ver_tc_flow

odp_u32be_t ODP_PACKED::ver_tc_flow

Version / Traffic class / Flow label.

Definition at line 228 of file ip.h.

◆ payload_len

odp_u16be_t ODP_PACKED::payload_len

Payload length.

Definition at line 229 of file ip.h.

◆ next_hdr

uint8_t ODP_PACKED::next_hdr

Next header.

Protocol of next header.

Definition at line 230 of file ip.h.

◆ hop_limit

uint8_t ODP_PACKED::hop_limit

Hop limit.

Definition at line 231 of file ip.h.

◆ src_addr [2/2]

uint8_t ODP_PACKED::src_addr[16]

Source address.

Definition at line 232 of file ip.h.

◆ dst_addr [2/2]

uint8_t ODP_PACKED::dst_addr[16]

Destination address.

Definition at line 233 of file ip.h.

◆ ext_len

uint8_t ODP_PACKED::ext_len

Length of this extension in 8 byte units, not counting first 8 bytes, so 0 = 8 bytes 1 = 16 bytes, etc.

Definition at line 246 of file ip.h.

◆ filler

uint8_t ODP_PACKED::filler[6]

Fill out first 8 byte segment.

Definition at line 249 of file ip.h.

◆ spi

odp_u32be_t ODP_PACKED::spi

Security Parameter Index.

Definition at line 35 of file ipsec.h.

◆ seq_no

odp_u32be_t ODP_PACKED::seq_no

Sequence Number.

Sequence number.

Definition at line 36 of file ipsec.h.

◆ iv

uint8_t ODP_PACKED::iv[]

Initialization vector.

Definition at line 37 of file ipsec.h.

◆ pad_len

uint8_t ODP_PACKED::pad_len

Padding length (0-255)

Definition at line 44 of file ipsec.h.

◆ next_header

uint8_t ODP_PACKED::next_header

Next header protocol.

Definition at line 45 of file ipsec.h.

◆ icv

uint8_t ODP_PACKED::icv

Integrity Check Value (optional)

Integrity Check Value.

Definition at line 46 of file ipsec.h.

◆ ah_len

uint8_t ODP_PACKED::ah_len

AH header length.

Definition at line 54 of file ipsec.h.

◆ pad

odp_u16be_t ODP_PACKED::pad

Padding (must be 0)

Definition at line 55 of file ipsec.h.

◆ src_port

odp_u16be_t ODP_PACKED::src_port

Source port.

Definition at line 30 of file sctp.h.

◆ dst_port

odp_u16be_t ODP_PACKED::dst_port

Destination port.

Definition at line 31 of file sctp.h.

◆ tag

odp_u32be_t ODP_PACKED::tag

Verification tag.

Definition at line 32 of file sctp.h.

◆ chksum [2/3]

odp_u32be_t ODP_PACKED::chksum

SCTP header and data checksum.

Definition at line 33 of file sctp.h.

◆ ack_no

odp_u32be_t ODP_PACKED::ack_no

Acknowledgment number.

Definition at line 33 of file tcp.h.

◆ doffset_flags

odp_u16be_t ODP_PACKED::doffset_flags

TCP Flags aggregate.

Definition at line 36 of file tcp.h.

◆ window

odp_u16be_t ODP_PACKED::window

Window size.

Definition at line 76 of file tcp.h.

◆ cksm

odp_u16be_t ODP_PACKED::cksm

Checksum.

Definition at line 77 of file tcp.h.

◆ urgptr

odp_u16be_t ODP_PACKED::urgptr

Urgent pointer.

Definition at line 78 of file tcp.h.

◆ length

odp_u16be_t ODP_PACKED::length

UDP datagram length in bytes (header+data)

Definition at line 33 of file udp.h.

◆ chksum [3/3]

odp_u16be_t ODP_PACKED::chksum

UDP header and data checksum (0 if not used)

Definition at line 34 of file udp.h.


The documentation for this struct was generated from the following files: