Functions | |
char * | nl_police2str (int, char *, size_t) |
Transform a policer type number into a character string (Reentrant). More... | |
int | nl_str2police (const char *) |
Transform a character string into a policer type number. More... | |
char* nl_police2str | ( | int | type, |
char * | buf, | ||
size_t | len | ||
) |
Transform a policer type number into a character string (Reentrant).
Transforms a policer type number into a character string and stores it in the provided buffer.
References __type2str(), and ARRAY_SIZE.
int nl_str2police | ( | const char * | name | ) |
Transform a character string into a policer type number.
Transform the provided character string specifying a policer type into the corresponding numeric value
References __str2type(), and ARRAY_SIZE.