FD.io VPP  v20.05-21-gb1500e9ff
Vector Packet Processing
ip_null_dpo.h File Reference
+ Include dependency graph for ip_null_dpo.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IP_NULL_ACTIONS
 
#define IP_NULL_DPO_ACTION_NUM   (IP_NULL_ACTION_SEND_ICMP_PROHIBIT+1)
 

Typedefs

typedef enum ip_null_dpo_action_t_ ip_null_dpo_action_t
 The IP NULL DPO represents the rubbish bin for IP traffic. More...
 

Enumerations

enum  ip_null_dpo_action_t_ { IP_NULL_ACTION_NONE, IP_NULL_ACTION_SEND_ICMP_UNREACH, IP_NULL_ACTION_SEND_ICMP_PROHIBIT }
 The IP NULL DPO represents the rubbish bin for IP traffic. More...
 

Functions

void ip_null_dpo_add_and_lock (dpo_proto_t proto, ip_null_dpo_action_t action, dpo_id_t *dpo)
 
void ip_null_dpo_module_init (void)
 
ip_null_dpo_action_t ip_null_dpo_get_action (index_t indi)
 

Macro Definition Documentation

◆ IP_NULL_ACTIONS

#define IP_NULL_ACTIONS

◆ IP_NULL_DPO_ACTION_NUM

#define IP_NULL_DPO_ACTION_NUM   (IP_NULL_ACTION_SEND_ICMP_PROHIBIT+1)

Definition at line 48 of file ip_null_dpo.h.

Typedef Documentation

◆ ip_null_dpo_action_t

The IP NULL DPO represents the rubbish bin for IP traffic.

Without specifying an action (i.e. send IMCP type X to sender) it is equivalent to using a drop DPO. However, in contrast to the drop DPO any route that resovles via a NULL, is considered to 'resolved' by FIB, i.e. a IP NULL is used when the control plane is explicitly expressing the desire to drop packets. Drop DPOs are used internally by FIB when resolution is not possible.

Any replies to sender are rate limited. Actions to take when a packet encounters the NULL DPO

Enumeration Type Documentation

◆ ip_null_dpo_action_t_

The IP NULL DPO represents the rubbish bin for IP traffic.

Without specifying an action (i.e. send IMCP type X to sender) it is equivalent to using a drop DPO. However, in contrast to the drop DPO any route that resovles via a NULL, is considered to 'resolved' by FIB, i.e. a IP NULL is used when the control plane is explicitly expressing the desire to drop packets. Drop DPOs are used internally by FIB when resolution is not possible.

Any replies to sender are rate limited. Actions to take when a packet encounters the NULL DPO

Enumerator
IP_NULL_ACTION_NONE 
IP_NULL_ACTION_SEND_ICMP_UNREACH 
IP_NULL_ACTION_SEND_ICMP_PROHIBIT 

Definition at line 35 of file ip_null_dpo.h.

Function Documentation

◆ ip_null_dpo_add_and_lock()

void ip_null_dpo_add_and_lock ( dpo_proto_t  proto,
ip_null_dpo_action_t  action,
dpo_id_t dpo 
)

Definition at line 78 of file ip_null_dpo.c.

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

◆ ip_null_dpo_get_action()

ip_null_dpo_action_t ip_null_dpo_get_action ( index_t  indi)

Definition at line 100 of file ip_null_dpo.c.

◆ ip_null_dpo_module_init()

void ip_null_dpo_module_init ( void  )

Definition at line 411 of file ip_null_dpo.c.

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