FD.io VPP  v18.11-rc0-18-g2a3fb1a
Vector Packet Processing
drop_dpo.c File Reference
+ Include dependency graph for drop_dpo.c:

Go to the source code of this file.

Functions

const dpo_id_tdrop_dpo_get (dpo_proto_t proto)
 
int dpo_is_drop (const dpo_id_t *dpo)
 The Drop DPO will drop all packets, no questions asked. More...
 
static void drop_dpo_lock (dpo_id_t *dpo)
 
static void drop_dpo_unlock (dpo_id_t *dpo)
 
static u8format_drop_dpo (u8 *s, va_list *ap)
 
void drop_dpo_module_init (void)
 

Variables

static dpo_id_t drop_dpos [DPO_PROTO_NUM]
 The data-path object representing dropping the packet. More...
 
static const dpo_vft_t drop_vft
 
static const char *const drop_ip4_nodes []
 The per-protocol VLIB graph nodes that are assigned to a drop object. More...
 
static const char *const drop_ip6_nodes []
 
static const char *const drop_mpls_nodes []
 
static const char *const drop_ethernet_nodes []
 
static const char *const drop_nsh_nodes []
 
static const char *const drop_bier_nodes []
 
static const char *const *const drop_nodes [DPO_PROTO_NUM]
 

Function Documentation

int dpo_is_drop ( const dpo_id_t dpo)

The Drop DPO will drop all packets, no questions asked.

It is valid for any packet protocol.

Definition at line 33 of file drop_dpo.c.

+ Here is the caller graph for this function:

const dpo_id_t* drop_dpo_get ( dpo_proto_t  proto)

Definition at line 25 of file drop_dpo.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void drop_dpo_lock ( dpo_id_t dpo)
static

Definition at line 39 of file drop_dpo.c.

void drop_dpo_module_init ( void  )

Definition at line 115 of file drop_dpo.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void drop_dpo_unlock ( dpo_id_t dpo)
static

Definition at line 48 of file drop_dpo.c.

static u8* format_drop_dpo ( u8 s,
va_list *  ap 
)
static

Definition at line 53 of file drop_dpo.c.

+ Here is the call graph for this function:

Variable Documentation

const char* const drop_bier_nodes[]
static
Initial value:
=
{
"bier-drop",
}
#define NULL
Definition: clib.h:55

Definition at line 99 of file drop_dpo.c.

dpo_id_t drop_dpos[DPO_PROTO_NUM]
static

The data-path object representing dropping the packet.

Definition at line 22 of file drop_dpo.c.

const char* const drop_ethernet_nodes[]
static
Initial value:
=
{
"error-drop",
}
#define NULL
Definition: clib.h:55

Definition at line 89 of file drop_dpo.c.

const char* const drop_ip4_nodes[]
static
Initial value:
=
{
"ip4-drop",
}
#define NULL
Definition: clib.h:55

The per-protocol VLIB graph nodes that are assigned to a drop object.

this means that these graph nodes are ones from which a drop is the parent object in the DPO-graph.

Definition at line 74 of file drop_dpo.c.

const char* const drop_ip6_nodes[]
static
Initial value:
=
{
"ip6-drop",
}
#define NULL
Definition: clib.h:55

Definition at line 79 of file drop_dpo.c.

const char* const drop_mpls_nodes[]
static
Initial value:
=
{
"mpls-drop",
}
#define NULL
Definition: clib.h:55

Definition at line 84 of file drop_dpo.c.

const char* const* const drop_nodes[DPO_PROTO_NUM]
static
Initial value:
=
{
}
static const char *const drop_ethernet_nodes[]
Definition: drop_dpo.c:89
static const char *const drop_nsh_nodes[]
Definition: drop_dpo.c:94
static const char *const drop_bier_nodes[]
Definition: drop_dpo.c:99
static const char *const drop_ip6_nodes[]
Definition: drop_dpo.c:79
static const char *const drop_mpls_nodes[]
Definition: drop_dpo.c:84
static const char *const drop_ip4_nodes[]
The per-protocol VLIB graph nodes that are assigned to a drop object.
Definition: drop_dpo.c:74

Definition at line 104 of file drop_dpo.c.

const char* const drop_nsh_nodes[]
static
Initial value:
=
{
"error-drop",
}
#define NULL
Definition: clib.h:55

Definition at line 94 of file drop_dpo.c.

const dpo_vft_t drop_vft
static
Initial value:
= {
.dv_lock = drop_dpo_lock,
.dv_unlock = drop_dpo_unlock,
.dv_format = format_drop_dpo,
}
static u8 * format_drop_dpo(u8 *s, va_list *ap)
Definition: drop_dpo.c:53
static void drop_dpo_lock(dpo_id_t *dpo)
Definition: drop_dpo.c:39
static void drop_dpo_unlock(dpo_id_t *dpo)
Definition: drop_dpo.c:48

Definition at line 61 of file drop_dpo.c.