FD.io VPP  v20.01-48-g3e0dafb74
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

static const char *const bier_hdr_len_id_names [] = BIER_HDR_LEN_IDS
 
static const char *const bier_hdr_proto_names [] = BIER_HDR_PROTO_ID_NAMES
 
static const u16 bier_hdr_len_num_buckets []
 
static const u16 bier_hdr_len_num_bits []
 
static const 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 call graph for this function:
+ 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 call graph for this function:
+ 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 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 u16 bier_hdr_len_num_bits[]
static
Initial value:
= {
}
Bit-string lengths greater than 1024 are not supported due to the limited about pf space available in...
Definition: bier_types.h:64

Definition at line 37 of file bier_types.c.

◆ bier_hdr_len_num_buckets

const u16 bier_hdr_len_num_buckets[]
static
Initial value:
= {
}
Bit-string lengths greater than 1024 are not supported due to the limited about pf space available in...
Definition: bier_types.h:64

Definition at line 26 of file bier_types.c.

◆ bier_hdr_len_prefix_len

const u16 bier_hdr_len_prefix_len[]
static
Initial value:
= {
}
Bit-string lengths greater than 1024 are not supported due to the limited about pf space available in...
Definition: bier_types.h:64

Definition at line 48 of file bier_types.c.

◆ bier_hdr_proto_names

const char* const bier_hdr_proto_names[] = BIER_HDR_PROTO_ID_NAMES
static

Definition at line 24 of file bier_types.c.