#include <netlink-local.h>
#include <netlink-tc.h>
#include <netlink/netlink.h>
#include <netlink/utils.h>
#include <netlink/route/tc.h>
#include <netlink/route/classifier.h>
#include <netlink/route/classifier-modules.h>
#include <netlink/route/cls/police.h>
Policer Type | |
char * | nl_police2str (int type, char *buf, size_t len) |
Transform a policer type number into a character string (Reentrant). More... | |
int | nl_str2police (const char *name) |
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.