FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
packets.c File Reference
+ Include dependency graph for packets.c:

Go to the source code of this file.

Functions

u16 udp_ip4_checksum (const void *b, u32 len, u8 *src, u8 *dst)
 
u16 udp_ip6_checksum (ip6_header_t *ip6, udp_header_t *up, u32 len)
 
u16 udp_checksum (udp_header_t *uh, u32 udp_len, void *ih, u8 version)
 
void * pkt_push_udp (vlib_main_t *vm, vlib_buffer_t *b, u16 sp, u16 dp)
 
void * pkt_push_ip (vlib_main_t *vm, vlib_buffer_t *b, ip_address_t *src, ip_address_t *dst, u32 proto, u8 csum_offload)
 
void * pkt_push_udp_and_ip (vlib_main_t *vm, vlib_buffer_t *b, u16 sp, u16 dp, ip_address_t *sip, ip_address_t *dip, u8 csum_offload)
 
void * pkt_push_ecm_hdr (vlib_buffer_t *b)
 

Function Documentation

◆ pkt_push_ecm_hdr()

void* pkt_push_ecm_hdr ( vlib_buffer_t b)

Definition at line 208 of file packets.c.

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

◆ pkt_push_ip()

void* pkt_push_ip ( vlib_main_t vm,
vlib_buffer_t b,
ip_address_t src,
ip_address_t dst,
u32  proto,
u8  csum_offload 
)

Definition at line 147 of file packets.c.

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

◆ pkt_push_udp()

void* pkt_push_udp ( vlib_main_t vm,
vlib_buffer_t b,
u16  sp,
u16  dp 
)

Definition at line 132 of file packets.c.

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

◆ pkt_push_udp_and_ip()

void* pkt_push_udp_and_ip ( vlib_main_t vm,
vlib_buffer_t b,
u16  sp,
u16  dp,
ip_address_t sip,
ip_address_t dip,
u8  csum_offload 
)

Definition at line 173 of file packets.c.

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

◆ udp_checksum()

u16 udp_checksum ( udp_header_t uh,
u32  udp_len,
void *  ih,
u8  version 
)

Definition at line 116 of file packets.c.

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

◆ udp_ip4_checksum()

u16 udp_ip4_checksum ( const void *  b,
u32  len,
u8 src,
u8 dst 
)

Definition at line 32 of file packets.c.

+ Here is the caller graph for this function:

◆ udp_ip6_checksum()

u16 udp_ip6_checksum ( ip6_header_t ip6,
udp_header_t up,
u32  len 
)

Definition at line 71 of file packets.c.

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