FD.io VPP  v21.01.1
Vector Packet Processing
ip4_inlines.h File Reference
+ Include dependency graph for ip4_inlines.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IP_DF   0x4000 /* don't fragment */
 

Functions

static u32 ip4_compute_flow_hash (const ip4_header_t *ip, flow_hash_config_t flow_hash_config)
 
static void * vlib_buffer_push_ip4_custom (vlib_main_t *vm, vlib_buffer_t *b, ip4_address_t *src, ip4_address_t *dst, int proto, u8 csum_offload, u8 is_df)
 
static void * vlib_buffer_push_ip4 (vlib_main_t *vm, vlib_buffer_t *b, ip4_address_t *src, ip4_address_t *dst, int proto, u8 csum_offload)
 Push IPv4 header to buffer. More...
 

Macro Definition Documentation

◆ IP_DF

#define IP_DF   0x4000 /* don't fragment */

Definition at line 46 of file ip4_inlines.h.

Function Documentation

◆ ip4_compute_flow_hash()

static u32 ip4_compute_flow_hash ( const ip4_header_t ip,
flow_hash_config_t  flow_hash_config 
)
inlinestatic

Definition at line 51 of file ip4_inlines.h.

+ Here is the caller graph for this function:

◆ vlib_buffer_push_ip4()

static void* vlib_buffer_push_ip4 ( vlib_main_t vm,
vlib_buffer_t b,
ip4_address_t src,
ip4_address_t dst,
int  proto,
u8  csum_offload 
)
inlinestatic

Push IPv4 header to buffer.

This does not support fragmentation.

Parameters
vm- vlib_main
b- buffer to write the header to
src- source IP
dst- destination IP
prot- payload proto
Returns
- pointer to start of IP header

Definition at line 149 of file ip4_inlines.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_buffer_push_ip4_custom()

static void* vlib_buffer_push_ip4_custom ( vlib_main_t vm,
vlib_buffer_t b,
ip4_address_t src,
ip4_address_t dst,
int  proto,
u8  csum_offload,
u8  is_df 
)
inlinestatic

Definition at line 100 of file ip4_inlines.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: