libnl
3.2.28
|
Functions | |
char * | nl_ovl_strategy2str (int type, char *buf, size_t len) |
Convert a CBQ OVL strategy to a character string. More... | |
int | nl_str2ovl_strategy (const char *name) |
Convert a string to a CBQ OVL strategy. More... | |
char* nl_ovl_strategy2str | ( | int | type, |
char * | buf, | ||
size_t | len | ||
) |
Convert a CBQ OVL strategy to a character string.
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 48 of file cbq.c.
Referenced by nl_str2ovl_strategy().
int nl_str2ovl_strategy | ( | const char * | name | ) |
Convert a string to a CBQ OVL strategy.
name | CBQ OVL stragegy name |
Converts a CBQ OVL stragegy name to it's corresponding CBQ OVL strategy type. Returns the type or -1 if none was found.
Definition at line 61 of file cbq.c.
References nla_policy::minlen, nl_cancel_down_bits(), nl_cancel_down_bytes(), nl_dump(), NL_DUMP_DETAILS, NL_DUMP_LINE, NL_DUMP_STATS, nl_ovl_strategy2str(), nl_ticks2us(), nla_memcpy(), rtnl_tc_handle2str(), rtnl_tc_register(), and rtnl_tc_unregister().