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

Go to the source code of this file.

Functions

__clib_export uword unformat_bitmap_mask (unformat_input_t *input, va_list *va)
 unformat an any sized hexadecimal bitmask into a bitmap More...
 
__clib_export uword unformat_bitmap_list (unformat_input_t *input, va_list *va)
 unformat a list of bit ranges into a bitmap (eg "0-3,5-7,11" ) More...
 
__clib_export u8format_bitmap_hex (u8 *s, va_list *args)
 Format a bitmap as a string of hex bytes. More...
 
__clib_export u8format_bitmap_list (u8 *s, va_list *args)
 Format a bitmap as a list. More...
 

Function Documentation

◆ format_bitmap_hex()

__clib_export u8* format_bitmap_hex ( u8 s,
va_list *  args 
)

Format a bitmap as a string of hex bytes.

uword * bitmap; s = format ("%U", format_bitmap_hex(), bitmap);

Standard format_function_t arguments

Parameters
s- string under construction
args- varargs list comprising a single uword *
Returns
string under construction

Definition at line 107 of file bitmap.c.

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

◆ format_bitmap_list()

__clib_export u8* format_bitmap_list ( u8 s,
va_list *  args 
)

Format a bitmap as a list.

uword * bitmap; s = format ("%U", format_bitmap_list(), bitmap);

Standard format_function_t arguments

Parameters
s- string under construction
args- varargs list comprising a single uword *
Returns
string under construction

Definition at line 143 of file bitmap.c.

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

◆ unformat_bitmap_list()

__clib_export uword unformat_bitmap_list ( unformat_input_t input,
va_list *  va 
)

unformat a list of bit ranges into a bitmap (eg "0-3,5-7,11" )

uword * bitmap; rv = unformat ("%U", unformat_bitmap_list(), &bitmap);

Standard unformat_function_t arguments

Parameters
input- pointer an unformat_input_t
va- varargs list comprising a single uword **
Returns
1 on success, 0 on failure

Definition at line 55 of file bitmap.c.

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

◆ unformat_bitmap_mask()

__clib_export uword unformat_bitmap_mask ( unformat_input_t input,
va_list *  va 
)

unformat an any sized hexadecimal bitmask into a bitmap

uword * bitmap; rv = unformat ("%U", unformat_bitmap_mask(), &bitmap);

Standard unformat_function_t arguments

Parameters
input- pointer an unformat_input_t
va- varargs list comprising a single uword **
Returns
1 on success, 0 on failure

Definition at line 20 of file bitmap.c.

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