#include <attr.h>
Data Fields | |
| uint16_t | type |
| Type of attribute or NLA_UNSPEC. | |
| uint16_t | minlen |
| Minimal length of payload required to be available. | |
| uint16_t | maxlen |
| Maximal length of payload required to be available. | |
Example:
static struct nla_policy my_policy[ATTR_MAX+1] __read_mostly = { [ATTR_FOO] = { .type = NLA_U16 }, [ATTR_BAR] = { .type = NLA_STRING }, [ATTR_BAZ] = { .minlen = sizeof(struct mystruct) }, };
1.5.7.1