|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
197 return (
format(s,
"sub-domain:%d set:%d ecmp:%d bsl:%U",
212 return (
format(s,
"nibble:%d version:%d hdr-len:%U entropy:%d proto:%U src:%d",
231 return (
format(s,
"0x%x -> set:%d sd:%d hdr-len:%U",
@ BIER_HDR_PROTO_MPLS_UP_STREAM
int bier_table_id_cmp(const bier_table_id_t *btid1, const bier_table_id_t *btid2)
Compare to BIER table IDs for equality.
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.
u32 bier_hdr_len_id_to_prefix_len(bier_hdr_len_id_t id)
enum dpo_proto_t_ dpo_proto_t
Data path protocol.
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.
static bier_hdr_proto_id_t bier_hdr_get_proto_id(const bier_hdr_t *bier_hdr)
@ BIER_HDR_PROTO_MPLS_DOWN_STREAM
const static char *const bier_hdr_proto_names[]
u8 * format_bier_hdr_proto(u8 *s, va_list *ap)
Format the header length field.
static bier_hdr_version_t bier_hdr_get_version(const bier_hdr_t *bier_hdr)
#define BIER_HDR_PROTO_ID_NAMES
const static u16 bier_hdr_len_prefix_len[]
static u8 bier_hdr_get_1st_nibble(bier_hdr_t *hdr)
u8 * format_bier_bift_id(u8 *s, va_list *ap)
static void bier_hdr_ntoh(bier_hdr_t *bier_hdr)
bier_table_type_t bti_type
The type of the table; SPF or TE, MPLS or IPv6.
bier_table_sub_domain_id_t bti_sub_domain
The Sub-Domain-ID The control plane has the configuration option to specify multiple domains or topol...
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)
u32 bier_table_sub_domain_id_t
The BIER Sub-domain ID assigned to a BIER table.
const static u16 bier_hdr_len_num_bits[]
static bier_hdr_len_id_t bier_hdr_get_len_id(const bier_hdr_t *bier_hdr)
@ BIER_HDR_PROTO_ETHERNET
bier_hdr_len_id_t bti_hdr_len
The size of the bit string processed by this table.
enum bier_hdr_proto_id_t_ bier_hdr_proto_id_t
BIER header protocol payload types.
u8 * format_bier_hdr(u8 *s, va_list *ap)
Format a BIER header.
enum bier_hdr_len_id_t_ bier_hdr_len_id_t
bier_hdr_len_id_t enumerator
u8 * format_bier_hdr_len_id(u8 *s, va_list *ap)
Format the header length field.
@ BIER_HDR_LEN_2048
Bit-string lengths greater than 1024 are not supported due to the limited about pf space available in...
description fragment has unexpected format
u32 bier_hdr_len_id_to_num_bits(bier_hdr_len_id_t id)
bier_table_ecmp_id_t bti_ecmp
The SUB/ECMP-ID Constructed by FIB to achieve ECMP between BFR-NBRs.
const static char *const bier_hdr_len_id_names[]
u32 bier_bift_id_t
The BIER universal 'label'.
u8 * format_bier_table_id(u8 *s, va_list *ap)
Format a BIER table ID.
const static u16 bier_hdr_len_num_buckets[]
A BIER header of variable length The encoding follows: https://tools.ietf.org/html/draft-ietf-bier-mp...
u32 bier_hdr_len_id_to_max_bit(bier_hdr_len_id_t id)
u32 bier_table_set_id_t
The BIER Set ID assigned to a BIER table.
u32 bier_hdr_len_id_to_num_bytes(bier_hdr_len_id_t id)
bier_table_set_id_t bti_set
The SET-ID The control plane divdies the bit-position space into sets in the case the max bit-positio...
dpo_proto_t bier_hdr_proto_to_dpo(bier_hdr_proto_id_t bproto)
Convert from BIER next-hop proto to DPO proto.
static bier_hdr_entropy_t bier_hdr_get_entropy(const bier_hdr_t *bier_hdr)
static bier_hdr_src_id_t bier_hdr_get_src_id(const bier_hdr_t *bier_hdr)
u32 bier_hdr_len_id_to_max_bucket(bier_hdr_len_id_t id)