|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
40 #ifndef __INTERFACE_INLINES_H__
41 #define __INTERFACE_INLINES_H__
50 if (oflags & VNET_BUFFER_OFFLOAD_F_IP_CKSUM)
52 if (oflags & VNET_BUFFER_OFFLOAD_F_TCP_CKSUM)
57 if (oflags & VNET_BUFFER_OFFLOAD_F_UDP_CKSUM)
70 if (oflags & VNET_BUFFER_OFFLOAD_F_TCP_CKSUM)
75 if (oflags & VNET_BUFFER_OFFLOAD_F_UDP_CKSUM)
92 if (!(
b->
flags & VNET_BUFFER_F_OFFLOAD))
113 VNET_BUFFER_OFFLOAD_F_UDP_CKSUM |
114 VNET_BUFFER_OFFLOAD_F_TCP_CKSUM));
u16 ip6_tcp_udp_icmp_compute_checksum(vlib_main_t *vm, vlib_buffer_t *p0, ip6_header_t *ip0, int *bogus_lengthp)
struct _tcp_header tcp_header_t
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
static_always_inline void vnet_calc_checksums_inline(vlib_main_t *vm, vlib_buffer_t *b, int is_ip4, int is_ip6)
static_always_inline void vnet_calc_ip6_checksums(vlib_main_t *vm, vlib_buffer_t *b, ip6_header_t *ip6, tcp_header_t *th, udp_header_t *uh, vnet_buffer_oflags_t oflags)
static_always_inline void vnet_buffer_offload_flags_clear(vlib_buffer_t *b, vnet_buffer_oflags_t oflags)
u16 ip4_tcp_udp_compute_checksum(vlib_main_t *vm, vlib_buffer_t *p0, ip4_header_t *ip0)
#define static_always_inline
static u16 ip4_header_checksum(ip4_header_t *i)
static_always_inline void vnet_calc_ip4_checksums(vlib_main_t *vm, vlib_buffer_t *b, ip4_header_t *ip4, tcp_header_t *th, udp_header_t *uh, vnet_buffer_oflags_t oflags)
u32 flags
buffer flags: VLIB_BUFFER_FREE_LIST_INDEX_MASK: bits used to store free list index,...
VLIB buffer representation.