FD.io VPP  v19.08.1-401-g8e4ed521a
Vector Packet Processing
bier_bit_string.c File Reference
+ Include dependency graph for bier_bit_string.c:

Go to the source code of this file.

Macros

#define BIER_GET_STRING_POS(_bp, _byte, _bit, _str)
 
#define BIER_BIT_POS_IS_VALID(_bp, _str)
 

Functions

static int bier_bit_pos_is_valid (bier_bp_t bp, const bier_bit_string_t *bbs)
 
void bier_bit_string_set_bit (bier_bit_string_t *bit_string, bier_bp_t bp)
 
void bier_bit_string_clear_bit (bier_bit_string_t *bit_string, bier_bp_t bp)
 
u8format_bier_bit_string (u8 *string, va_list *args)
 

Macro Definition Documentation

◆ BIER_BIT_POS_IS_VALID

#define BIER_BIT_POS_IS_VALID (   _bp,
  _str 
)
Value:
{ \
if (!bier_bit_pos_is_valid(_bp, _str)) return; \
}
static int bier_bit_pos_is_valid(bier_bp_t bp, const bier_bit_string_t *bbs)

Definition at line 46 of file bier_bit_string.c.

◆ BIER_GET_STRING_POS

#define BIER_GET_STRING_POS (   _bp,
  _byte,
  _bit,
  _str 
)
Value:
{ \
_bp--; \
_byte = ((BIER_BBS_LEN_TO_BUCKETS((_str)->bbs_len) - 1 ) - \
}
#define BIER_BIT_MASK_BITS_PER_BUCKET
number of bits in a bucket
Definition: bier_types.h:268
#define BIER_BBS_LEN_TO_BUCKETS(_len)

Definition at line 25 of file bier_bit_string.c.

Function Documentation

◆ bier_bit_pos_is_valid()

static int bier_bit_pos_is_valid ( bier_bp_t  bp,
const bier_bit_string_t bbs 
)
inlinestatic

Definition at line 34 of file bier_bit_string.c.

◆ bier_bit_string_clear_bit()

void bier_bit_string_clear_bit ( bier_bit_string_t bit_string,
bier_bp_t  bp 
)

Definition at line 66 of file bier_bit_string.c.

+ Here is the caller graph for this function:

◆ bier_bit_string_set_bit()

void bier_bit_string_set_bit ( bier_bit_string_t bit_string,
bier_bp_t  bp 
)

Definition at line 52 of file bier_bit_string.c.

+ Here is the caller graph for this function:

◆ format_bier_bit_string()

u8* format_bier_bit_string ( u8 string,
va_list *  args 
)

Definition at line 78 of file bier_bit_string.c.

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