API Reference Manual
1.47.0
|
Packet input configuration options bit field. More...
#include <packet_io_types.h>
Data Fields | |
struct { | |
uint64_t ts_all: 1 | |
Timestamp all packets on packet input. | |
uint64_t ts_ptp: 1 | |
Timestamp (at least) IEEE1588 / PTP packets on packet input. | |
uint64_t ipv4_chksum: 1 | |
Check IPv4 header checksum on packet input. | |
uint64_t udp_chksum: 1 | |
Check UDP checksum on packet input. | |
uint64_t tcp_chksum: 1 | |
Check TCP checksum on packet input. | |
uint64_t sctp_chksum: 1 | |
Check SCTP checksum on packet input. | |
uint64_t drop_ipv4_err: 1 | |
Drop packets with an IPv4 error on packet input. | |
uint64_t drop_ipv6_err: 1 | |
Drop packets with an IPv6 error on packet input. | |
uint64_t drop_udp_err: 1 | |
Drop packets with a UDP error on packet input. | |
uint64_t drop_tcp_err: 1 | |
Drop packets with a TCP error on packet input. | |
uint64_t drop_sctp_err: 1 | |
Drop packets with a SCTP error on packet input. | |
} | bit |
Option flags. | |
uint64_t | all_bits |
All bits of the bit field structure. More... | |
Packet input configuration options bit field.
Packet input configuration options listed in a bit field structure. Packet input timestamping may be enabled for all packets or at least for those that belong to time synchronization protocol (PTP).
Packet input checksum checking may be enabled or disabled. When it is enabled, implementation will attempt to verify checksum correctness on incoming packets and depending on drop configuration either deliver erroneous packets with appropriate flags set (e.g. odp_packet_has_l3_error(), odp_packet_l3_chksum_status()) or drop those. When packet dropping is enabled, application will never receive a packet with the specified error and may avoid to check the error flag.
If checksum checking is enabled, IPv4 header checksum checking is always done for packets that do not have IP options and L4 checksum checking is done for unfragmented packets that do not have IPv4 options or IPv6 extension headers. In other cases checksum checking may or may not be done. For example, L4 checksum of fragmented packets is typically not checked.
IPv4 checksum checking may be enabled only when parsing level is ODP_PROTO_LAYER_L3 or higher. Similarly, L4 level checksum checking may be enabled only with parsing level ODP_PROTO_LAYER_L4 or higher.
Whether checksum checking was done and whether a checksum was correct can be queried for each received packet with odp_packet_l3_chksum_status() and odp_packet_l4_chksum_status().
Definition at line 396 of file api/spec/packet_io_types.h.
uint64_t odp_pktin_config_opt_t::all_bits |
All bits of the bit field structure.
This field can be used to set/clear all flags, or bitwise operations over the entire structure.
Definition at line 439 of file api/spec/packet_io_types.h.