libnl 1.1
|
Functions | |
char * | nl_ovl_strategy2str (int type, char *buf, size_t len) |
Convert a CBQ OVL strategy to a character string. | |
int | nl_str2ovl_strategy (const char *name) |
Convert a string to a CBQ OVL strategy. |
char* nl_ovl_strategy2str | ( | int | type, |
char * | buf, | ||
size_t | len | ||
) |
type | CBQ OVL strategy |
buf | destination buffer |
len | length of destination buffer |
Converts a CBQ OVL strategy to a character string and stores in the provided buffer. Returns the destination buffer or the type encoded in hex if no match was found.
Definition at line 49 of file cbq.c.
{
return __type2str(type, buf, len, ovl_strategies,
ARRAY_SIZE(ovl_strategies));
}
int nl_str2ovl_strategy | ( | const char * | name | ) |