FD.io VPP  v17.10-9-gd594711
Vector Packet Processing
buffer.h File Reference
+ Include dependency graph for buffer.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  vnet_buffer_opaque_t
 
struct  vnet_buffer_opaque2_t
 

Macros

#define foreach_vnet_buffer_field
 
#define VNET_BUFFER_FLAGS_VLAN_BITS   (VNET_BUFFER_F_VLAN_1_DEEP | VNET_BUFFER_F_VLAN_2_DEEP)
 
#define foreach_buffer_opaque_union_subtype
 
#define vnet_buffer(b)   ((vnet_buffer_opaque_t *) (b)->opaque)
 

Enumerations

enum  { foreach_vnet_buffer_field }
 
enum  { foreach_vnet_buffer_field }
 

Functions

 STATIC_ASSERT (sizeof(vnet_buffer_opaque_t)<=STRUCT_SIZE_OF(vlib_buffer_t, opaque),"VNET buffer meta-data too large for vlib_buffer")
 

Macro Definition Documentation

#define foreach_buffer_opaque_union_subtype
Value:
_(ip) \
_(swt) \
_(l2) \
_(l2t) \
_(gre) \
_(l2_classify) \
_(handoff) \
_(policer) \
_(ipsec) \
_(map) \
_(map_t) \
_(ip_frag) \
_(tcp)

Definition at line 77 of file buffer.h.

foreach_vnet_buffer_field
Value:
_( 1, L4_CHECKSUM_COMPUTED) \
_( 2, L4_CHECKSUM_CORRECT) \
_( 3, VLAN_2_DEEP) \
_( 4, VLAN_1_DEEP) \
_( 8, SPAN_CLONE) \
_( 6, HANDOFF_NEXT_VALID) \
_( 7, LOCALLY_ORIGINATED) \
_( 8, IS_IP4) \
_( 9, IS_IP6) \
_(10, OFFLOAD_IP_CKSUM) \
_(11, OFFLOAD_TCP_CKSUM) \
_(12, OFFLOAD_UDP_CKSUM)

Definition at line 45 of file buffer.h.

#define vnet_buffer (   b)    ((vnet_buffer_opaque_t *) (b)->opaque)

Definition at line 306 of file buffer.h.

#define VNET_BUFFER_FLAGS_VLAN_BITS   (VNET_BUFFER_F_VLAN_1_DEEP | VNET_BUFFER_F_VLAN_2_DEEP)

Definition at line 59 of file buffer.h.

Enumeration Type Documentation

anonymous enum
Enumerator
foreach_vnet_buffer_field 

Definition at line 62 of file buffer.h.

anonymous enum
Enumerator
foreach_vnet_buffer_field 

Definition at line 69 of file buffer.h.

Function Documentation

STATIC_ASSERT ( sizeof(vnet_buffer_opaque_t)<=STRUCT_SIZE_OF(vlib_buffer_t, opaque)  ,
"VNET buffer meta-data too large for vlib_buffer"   
)