Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/mbuf.h
Show First 20 Lines • Show All 204 Lines • ▼ Show 20 Lines | |||||
#define lro_nsegs tso_segsz /* inbound after LRO */ | #define lro_nsegs tso_segsz /* inbound after LRO */ | ||||
#define csum_data PH_per.thirtytwo[1] /* inbound from hardware up */ | #define csum_data PH_per.thirtytwo[1] /* inbound from hardware up */ | ||||
#define lro_tcp_d_len PH_loc.sixteen[0] /* inbound during LRO (no reassembly) */ | #define lro_tcp_d_len PH_loc.sixteen[0] /* inbound during LRO (no reassembly) */ | ||||
#define lro_tcp_d_csum PH_loc.sixteen[1] /* inbound during LRO (no reassembly) */ | #define lro_tcp_d_csum PH_loc.sixteen[1] /* inbound during LRO (no reassembly) */ | ||||
#define lro_tcp_h_off PH_loc.sixteen[2] /* inbound during LRO (no reassembly) */ | #define lro_tcp_h_off PH_loc.sixteen[2] /* inbound during LRO (no reassembly) */ | ||||
#define lro_etype PH_loc.sixteen[3] /* inbound during LRO (no reassembly) */ | #define lro_etype PH_loc.sixteen[3] /* inbound during LRO (no reassembly) */ | ||||
/* Note PH_loc is used during IP reassembly (all 8 bytes as a ptr) */ | /* Note PH_loc is used during IP reassembly (all 8 bytes as a ptr) */ | ||||
/* FIXME better naming ??? */ | |||||
#define mhdr_flags PH_loc.sixteen[3] | |||||
/* | /* | ||||
* TLS records for TLS 1.0-1.2 can have the following header lengths: | * TLS records for TLS 1.0-1.2 can have the following header lengths: | ||||
* - 5 (AES-CBC with implicit IV) | * - 5 (AES-CBC with implicit IV) | ||||
* - 21 (AES-CBC with explicit IV) | * - 21 (AES-CBC with explicit IV) | ||||
* - 13 (AES-GCM with 8 byte explicit IV) | * - 13 (AES-GCM with 8 byte explicit IV) | ||||
*/ | */ | ||||
#define MBUF_PEXT_HDR_LEN 23 | #define MBUF_PEXT_HDR_LEN 23 | ||||
▲ Show 20 Lines • Show All 493 Lines • ▼ Show 20 Lines | |||||
#define CSUM_TCP CSUM_IP_TCP | #define CSUM_TCP CSUM_IP_TCP | ||||
#define CSUM_UDP CSUM_IP_UDP | #define CSUM_UDP CSUM_IP_UDP | ||||
#define CSUM_SCTP CSUM_IP_SCTP | #define CSUM_SCTP CSUM_IP_SCTP | ||||
#define CSUM_TSO (CSUM_IP_TSO|CSUM_IP6_TSO) | #define CSUM_TSO (CSUM_IP_TSO|CSUM_IP6_TSO) | ||||
#define CSUM_INNER_TSO (CSUM_INNER_IP_TSO|CSUM_INNER_IP6_TSO) | #define CSUM_INNER_TSO (CSUM_INNER_IP_TSO|CSUM_INNER_IP6_TSO) | ||||
#define CSUM_UDP_IPV6 CSUM_IP6_UDP | #define CSUM_UDP_IPV6 CSUM_IP6_UDP | ||||
#define CSUM_TCP_IPV6 CSUM_IP6_TCP | #define CSUM_TCP_IPV6 CSUM_IP6_TCP | ||||
#define CSUM_SCTP_IPV6 CSUM_IP6_SCTP | #define CSUM_SCTP_IPV6 CSUM_IP6_SCTP | ||||
/* | |||||
* header flags | |||||
*/ | |||||
#define HDR_IPV4_IPV6_NHOP 0x0001 /* RFC5549 IPv6 next hop */ | |||||
/* | /* | ||||
* mbuf types describing the content of the mbuf (including external storage). | * mbuf types describing the content of the mbuf (including external storage). | ||||
*/ | */ | ||||
#define MT_NOTMBUF 0 /* USED INTERNALLY ONLY! Object is not mbuf */ | #define MT_NOTMBUF 0 /* USED INTERNALLY ONLY! Object is not mbuf */ | ||||
#define MT_DATA 1 /* dynamic (data) allocation */ | #define MT_DATA 1 /* dynamic (data) allocation */ | ||||
#define MT_HEADER MT_DATA /* packet header, use M_PKTHDR instead */ | #define MT_HEADER MT_DATA /* packet header, use M_PKTHDR instead */ | ||||
▲ Show 20 Lines • Show All 914 Lines • Show Last 20 Lines |