FD.io VPP  v20.05.1-6-gf53edbc3b
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 206 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 145 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 130 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 171 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 114 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 30 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 69 of file packets.c.

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