FD.io VPP  v18.07-34-g55fbdb9
Vector Packet Processing
ip_frag.h File Reference
+ Include dependency graph for ip_frag.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IP_FRAG_FLAG_IP4_HEADER   0x01
 
#define IP_FRAG_FLAG_IP6_HEADER   0x02
 
#define IP4_FRAG_NODE_NAME   "ip4-frag"
 
#define IP6_FRAG_NODE_NAME   "ip6-frag"
 
#define foreach_ip_frag_error
 

Enumerations

enum  ip4_frag_next_t {
  IP4_FRAG_NEXT_IP4_REWRITE, IP4_FRAG_NEXT_IP4_LOOKUP, IP4_FRAG_NEXT_IP6_LOOKUP, IP4_FRAG_NEXT_ICMP_ERROR,
  IP4_FRAG_NEXT_DROP, IP4_FRAG_N_NEXT
}
 
enum  ip6_frag_next_t {
  IP6_FRAG_NEXT_IP4_LOOKUP, IP6_FRAG_NEXT_IP6_LOOKUP, IP6_FRAG_NEXT_IP6_REWRITE, IP6_FRAG_NEXT_DROP,
  IP6_FRAG_N_NEXT
}
 
enum  ip_frag_error_t { IP_FRAG_N_ERROR }
 

Functions

void ip_frag_set_vnet_buffer (vlib_buffer_t *b, u16 offset, u16 mtu, u8 next_index, u8 flags)
 
void ip4_frag_do_fragment (vlib_main_t *vm, u32 pi, u32 **buffer, ip_frag_error_t *error)
 
void ip6_frag_do_fragment (vlib_main_t *vm, u32 pi, u32 **buffer, ip_frag_error_t *error)
 

Variables

vlib_node_registration_t ip4_frag_node
 (constructor) VLIB_REGISTER_NODE (ip4_frag_node) More...
 
vlib_node_registration_t ip6_frag_node
 (constructor) VLIB_REGISTER_NODE (ip6_frag_node) More...
 

Macro Definition Documentation

#define foreach_ip_frag_error
Value:
/* Must be first. */ \
_(NONE, "packet fragmented") \
_(SMALL_PACKET, "packet smaller than MTU") \
_(FRAGMENT_SENT, "number of sent fragments") \
_(CANT_FRAGMENT_HEADER, "can't fragment header") \
_(DONT_FRAGMENT_SET, "can't fragment this packet") \
_(MALFORMED, "malformed packet") \
_(MEMORY, "could not allocate buffer") \
_(UNKNOWN, "unknown error")

Definition at line 68 of file ip_frag.h.

#define IP4_FRAG_NODE_NAME   "ip4-frag"

Definition at line 43 of file ip_frag.h.

#define IP6_FRAG_NODE_NAME   "ip6-frag"

Definition at line 44 of file ip_frag.h.

#define IP_FRAG_FLAG_IP4_HEADER   0x01

Definition at line 40 of file ip_frag.h.

#define IP_FRAG_FLAG_IP6_HEADER   0x02

Definition at line 41 of file ip_frag.h.

Enumeration Type Documentation

Enumerator
IP4_FRAG_NEXT_IP4_REWRITE 
IP4_FRAG_NEXT_IP4_LOOKUP 
IP4_FRAG_NEXT_IP6_LOOKUP 
IP4_FRAG_NEXT_ICMP_ERROR 
IP4_FRAG_NEXT_DROP 
IP4_FRAG_N_NEXT 

Definition at line 49 of file ip_frag.h.

Enumerator
IP6_FRAG_NEXT_IP4_LOOKUP 
IP6_FRAG_NEXT_IP6_LOOKUP 
IP6_FRAG_NEXT_IP6_REWRITE 
IP6_FRAG_NEXT_DROP 
IP6_FRAG_N_NEXT 

Definition at line 59 of file ip_frag.h.

Enumerator
IP_FRAG_N_ERROR 

Definition at line 79 of file ip_frag.h.

Function Documentation

void ip4_frag_do_fragment ( vlib_main_t vm,
u32  pi,
u32 **  buffer,
ip_frag_error_t error 
)

Definition at line 50 of file ip_frag.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ip6_frag_do_fragment ( vlib_main_t vm,
u32  pi,
u32 **  buffer,
ip_frag_error_t error 
)

Definition at line 309 of file ip_frag.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ip_frag_set_vnet_buffer ( vlib_buffer_t b,
u16  offset,
u16  mtu,
u8  next_index,
u8  flags 
)

Definition at line 190 of file ip_frag.c.

+ Here is the caller graph for this function:

Variable Documentation

vlib_node_registration_t ip4_frag_node

(constructor) VLIB_REGISTER_NODE (ip4_frag_node)

Definition at line 564 of file ip_frag.c.

vlib_node_registration_t ip6_frag_node

(constructor) VLIB_REGISTER_NODE (ip6_frag_node)

Definition at line 586 of file ip_frag.c.