Data Structures | |
struct | vc_err_listparser |
Information about parsing errors. More... | |
Functions | |
size_t | vc_get_nb_ipv4root () VC_ATTR_CONST |
Returns the value of NB_IPV4ROOT. | |
bool | vc_parseLimit (char const *str, vc_limit_t *res) |
Parses a string describing a limit. | |
uint_least64_t | vc_text2bcap (char const *str, size_t len) |
Converts a single string into bcapability. | |
char const * | vc_lobcap2text (uint_least64_t *val) |
Converts the lowest bit of a bcapability or the entire value (when possible) to a textual representation. | |
int | vc_list2bcap (char const *str, size_t len, struct vc_err_listparser *err, struct vc_ctx_caps *cap) |
Converts a string into a bcapability-bitmask. |
|
Returns the value of NB_IPV4ROOT. This function returns the value of NB_IPV4ROOT which was used when the library was built, but not the value which is used by the currently running kernel. |
|
Converts a string into a bcapability-bitmask. Syntax of str: LIST <- ELEM | ELEM ',' LIST ELEM <- '~' ELEM | MASK | NAME MASK <- NUMBER | '^' NUMBER NUMBER <- 0[0-7]* | [1-9][0-9]* | 0x[0-9,a-f]+ NAME <- <literal name> | "all" | "any" | "none"
When the
"literal name" is everything which will be accepted by the vc_text2bcap() function. The special values for
|
|
Converts the lowest bit of a bcapability or the entire value (when possible) to a textual representation.
|
|
Parses a string describing a limit.
This function parses str and interprets special words like
|
|
Converts a single string into bcapability.
|