Go to the source code of this file.
|
static bier_hdr_version_t | bier_hdr_get_version (const bier_hdr_t *bier_hdr) |
|
static bier_hdr_len_id_t | bier_hdr_get_len_id (const bier_hdr_t *bier_hdr) |
|
static bier_hdr_entropy_t | bier_hdr_get_entropy (const bier_hdr_t *bier_hdr) |
|
static void | bier_hdr_1st_nibble (bier_hdr_t *hdr) |
|
static u8 | bier_hdr_get_1st_nibble (bier_hdr_t *hdr) |
|
static void | bier_hdr_set_version (bier_hdr_t *hdr, bier_hdr_version_t version) |
|
static void | bier_hdr_set_len_id (bier_hdr_t *hdr, bier_hdr_len_id_t len) |
|
static void | bier_hdr_set_entropy (bier_hdr_t *hdr, bier_hdr_entropy_t entropy) |
|
static void | bier_hdr_ntoh (bier_hdr_t *bier_hdr) |
|
static void | bier_hdr_hton (bier_hdr_t *bier_hdr) |
|
static bier_hdr_src_id_t | bier_hdr_get_src_id (const bier_hdr_t *bier_hdr) |
|
static void | bier_hdr_set_src_id (bier_hdr_t *bier_hdr, bier_hdr_src_id_t src_id) |
|
static void | bier_hdr_set_proto_id (bier_hdr_t *bier_hdr, bier_hdr_proto_id_t proto) |
|
static bier_hdr_proto_id_t | bier_hdr_get_proto_id (const bier_hdr_t *bier_hdr) |
|
static void | bier_hdr_clear (bier_hdr_t *bier_hdr) |
|
static void | bier_hdr_init (bier_hdr_t *bier_hdr, bier_hdr_version_t version, bier_hdr_proto_id_t proto, bier_hdr_len_id_t len, bier_hdr_entropy_t entropy, bier_bp_t src) |
|
static size_t | bier_hdr_str_num_bytes (const bier_hdr_t *bier_hdr) |
|
static size_t | bier_hdr_num_bytes (const bier_hdr_t *bier_hdr) |
|
static void | bier_bit_string_init_from_hdr (bier_hdr_t *bier_hdr, bier_bit_string_t *bit_string) |
|
#define BIER_HDR_1ST_NIBBLE_MASK 0xf0000000 |
Mask and shift values for the fields incorporated into the header's first word.
Definition at line 38 of file bier_hdr_inlines.h.
#define BIER_HDR_1ST_NIBBLE_SHIFT 28 |
#define BIER_HDR_1ST_NIBBLE_VALUE 0x5 |
#define BIER_HDR_DSCP_FIELD_MASK 0x0fc0 |
#define BIER_HDR_DSCP_FIELD_SHIFT 6 |
#define BIER_HDR_ENTROPY_FIELD_MASK 0x000fffff |
#define BIER_HDR_ENTROPY_FIELD_SHIFT 0 |
#define BIER_HDR_FIRST_WORD |
( |
|
version, |
|
|
|
len, |
|
|
|
entropy |
|
) |
| |
Value:#define BIER_HDR_ENTROPY_FIELD_MASK
#define BIER_HDR_ENTROPY_FIELD_SHIFT
#define BIER_HDR_VERSION_FIELD_SHIFT
#define BIER_HDR_1ST_NIBBLE_VALUE
#define BIER_HDR_LEN_FIELD_SHIFT
#define BIER_HDR_1ST_NIBBLE_SHIFT
Definition at line 124 of file bier_hdr_inlines.h.
#define BIER_HDR_LEN_FIELD_MASK 0x00f00000 |
#define BIER_HDR_LEN_FIELD_SHIFT 20 |
#define BIER_HDR_OAM_FIELD_MASK 0xc000 |
#define BIER_HDR_OAM_FIELD_SHIFT 14 |
#define BIER_HDR_PROTO_FIELD_MASK 0x003f |
Mask and shift values for fields in the headers training word.
Definition at line 53 of file bier_hdr_inlines.h.
#define BIER_HDR_PROTO_FIELD_SHIFT 0 |
#define BIER_HDR_VERSION_FIELD_MASK 0x0f000000 |
#define BIER_HDR_VERSION_FIELD_SHIFT 24 |
#define BIER_RX_ITF (~0 - 1) |
The BIER inline functions acting on the bier header.
Special Value of the BIER RX interface
Definition at line 32 of file bier_hdr_inlines.h.
static void bier_hdr_1st_nibble |
( |
bier_hdr_t * |
hdr | ) |
|
|
inlinestatic |
static void bier_hdr_clear |
( |
bier_hdr_t * |
bier_hdr | ) |
|
|
inlinestatic |
static void bier_hdr_hton |
( |
bier_hdr_t * |
bier_hdr | ) |
|
|
inlinestatic |
static void bier_hdr_ntoh |
( |
bier_hdr_t * |
bier_hdr | ) |
|
|
inlinestatic |
static size_t bier_hdr_num_bytes |
( |
const bier_hdr_t * |
bier_hdr | ) |
|
|
inlinestatic |
static size_t bier_hdr_str_num_bytes |
( |
const bier_hdr_t * |
bier_hdr | ) |
|
|
inlinestatic |