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

Go to the source code of this file.

Functions

u32 bier_hdr_len_id_to_num_buckets (bier_hdr_len_id_t id)
 Conversion functions for the enumerated bit-string length values, to bit and bytes. More...
 
u32 bier_hdr_len_id_to_num_bytes (bier_hdr_len_id_t id)
 
u32 bier_hdr_len_id_to_max_bucket (bier_hdr_len_id_t id)
 
u32 bier_hdr_len_id_to_num_bits (bier_hdr_len_id_t id)
 
u32 bier_hdr_len_id_to_max_bit (bier_hdr_len_id_t id)
 
u32 bier_hdr_len_id_to_prefix_len (bier_hdr_len_id_t id)
 
u8format_bier_hdr_len_id (u8 *s, va_list *ap)
 Format the header length field. More...
 
u8format_bier_hdr_proto (u8 *s, va_list *ap)
 Format the header length field. More...
 
int bier_table_id_cmp (const bier_table_id_t *btid1, const bier_table_id_t *btid2)
 Compare to BIER table IDs for equality. More...
 
dpo_proto_t bier_hdr_proto_to_dpo (bier_hdr_proto_id_t bproto)
 Convert from BIER next-hop proto to DPO proto. More...
 
bier_bift_id_t bier_bift_id_encode (bier_table_set_id_t set, bier_table_sub_domain_id_t sd, bier_hdr_len_id_t bsl)
 Encode a BIFT-ID as per draft-wijnandsxu-bier-non-mpls-bift-encoding-00.txt. More...
 
void bier_bift_id_decode (bier_bift_id_t id, bier_table_set_id_t *set, bier_table_sub_domain_id_t *sd, bier_hdr_len_id_t *bsl)
 
u8format_bier_table_id (u8 *s, va_list *ap)
 Format a BIER table ID. More...
 
u8format_bier_hdr (u8 *s, va_list *ap)
 Format a BIER header. More...
 
u8format_bier_bift_id (u8 *s, va_list *ap)
 

Variables

const static char *const bier_hdr_len_id_names [] = BIER_HDR_LEN_IDS
 
const static char *const bier_hdr_proto_names [] = BIER_HDR_PROTO_ID_NAMES
 
const static u16 bier_hdr_len_num_buckets []
 
const static u16 bier_hdr_len_num_bits []
 
const static u16 bier_hdr_len_prefix_len []
 

Function Documentation

◆ bier_bift_id_decode()

void bier_bift_id_decode ( bier_bift_id_t  id,
bier_table_set_id_t set,
bier_table_sub_domain_id_t sd,
bier_hdr_len_id_t bsl 
)

Definition at line 180 of file bier_types.c.

+ Here is the caller graph for this function:

◆ bier_bift_id_encode()

Encode a BIFT-ID as per draft-wijnandsxu-bier-non-mpls-bift-encoding-00.txt.

Definition at line 164 of file bier_types.c.

+ Here is the caller graph for this function:

◆ bier_hdr_len_id_to_max_bit()

u32 bier_hdr_len_id_to_max_bit ( bier_hdr_len_id_t  id)

Definition at line 84 of file bier_types.c.

+ Here is the call graph for this function:

◆ bier_hdr_len_id_to_max_bucket()

u32 bier_hdr_len_id_to_max_bucket ( bier_hdr_len_id_t  id)

Definition at line 72 of file bier_types.c.

+ Here is the call graph for this function:

◆ bier_hdr_len_id_to_num_bits()

u32 bier_hdr_len_id_to_num_bits ( bier_hdr_len_id_t  id)

Definition at line 78 of file bier_types.c.

+ Here is the caller graph for this function:

◆ bier_hdr_len_id_to_num_buckets()

u32 bier_hdr_len_id_to_num_buckets ( bier_hdr_len_id_t  id)

Conversion functions for the enumerated bit-string length values, to bit and bytes.

Definition at line 60 of file bier_types.c.

+ Here is the caller graph for this function:

◆ bier_hdr_len_id_to_num_bytes()

u32 bier_hdr_len_id_to_num_bytes ( bier_hdr_len_id_t  id)

Definition at line 66 of file bier_types.c.

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

◆ bier_hdr_len_id_to_prefix_len()

u32 bier_hdr_len_id_to_prefix_len ( bier_hdr_len_id_t  id)

Definition at line 90 of file bier_types.c.

◆ bier_hdr_proto_to_dpo()

dpo_proto_t bier_hdr_proto_to_dpo ( bier_hdr_proto_id_t  bproto)

Convert from BIER next-hop proto to DPO proto.

Definition at line 139 of file bier_types.c.

+ Here is the caller graph for this function:

◆ bier_table_id_cmp()

int bier_table_id_cmp ( const bier_table_id_t btid1,
const bier_table_id_t btid2 
)

Compare to BIER table IDs for equality.

Definition at line 112 of file bier_types.c.

+ Here is the caller graph for this function:

◆ format_bier_bift_id()

u8* format_bier_bift_id ( u8 s,
va_list *  ap 
)

Definition at line 222 of file bier_types.c.

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

◆ format_bier_hdr()

u8* format_bier_hdr ( u8 s,
va_list *  ap 
)

Format a BIER header.

Definition at line 205 of file bier_types.c.

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

◆ format_bier_hdr_len_id()

u8* format_bier_hdr_len_id ( u8 s,
va_list *  ap 
)

Format the header length field.

Definition at line 96 of file bier_types.c.

+ Here is the caller graph for this function:

◆ format_bier_hdr_proto()

u8* format_bier_hdr_proto ( u8 s,
va_list *  ap 
)

Format the header length field.

Definition at line 104 of file bier_types.c.

+ Here is the caller graph for this function:

◆ format_bier_table_id()

u8* format_bier_table_id ( u8 s,
va_list *  ap 
)

Format a BIER table ID.

Definition at line 193 of file bier_types.c.

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

Variable Documentation

◆ bier_hdr_len_id_names

const static char* const bier_hdr_len_id_names[] = BIER_HDR_LEN_IDS
static

Definition at line 23 of file bier_types.c.

◆ bier_hdr_len_num_bits

const static u16 bier_hdr_len_num_bits[]
static
Initial value:

Definition at line 37 of file bier_types.c.

◆ bier_hdr_len_num_buckets

const static u16 bier_hdr_len_num_buckets[]
static
Initial value:

Definition at line 26 of file bier_types.c.

◆ bier_hdr_len_prefix_len

const static u16 bier_hdr_len_prefix_len[]
static
Initial value:

Definition at line 48 of file bier_types.c.

◆ bier_hdr_proto_names

const static char* const bier_hdr_proto_names[] = BIER_HDR_PROTO_ID_NAMES
static

Definition at line 24 of file bier_types.c.

BIER_HDR_LEN_4096
@ BIER_HDR_LEN_4096
Definition: bier_types.h:65
BIER_HDR_LEN_256
@ BIER_HDR_LEN_256
Definition: bier_types.h:56
BIER_HDR_LEN_512
@ BIER_HDR_LEN_512
Definition: bier_types.h:57
BIER_HDR_LEN_2048
@ BIER_HDR_LEN_2048
Bit-string lengths greater than 1024 are not supported due to the limited about pf space available in...
Definition: bier_types.h:64
BIER_HDR_LEN_1024
@ BIER_HDR_LEN_1024
Definition: bier_types.h:58
BIER_HDR_LEN_INVALID
@ BIER_HDR_LEN_INVALID
Definition: bier_types.h:66
BIER_HDR_LEN_128
@ BIER_HDR_LEN_128
Definition: bier_types.h:55
BIER_HDR_LEN_64
@ BIER_HDR_LEN_64
Definition: bier_types.h:54