if (!nla[i])
continue;
switch (policy[i].type) {
+ case MNL_TYPE_UNSPEC:
+ fprintf(stderr,"\t\tpadding\n");
+ break;
case MNL_TYPE_U8:
v = *(uint8_t *) mnl_attr_get_payload(nla[i]);
fprintf(stderr, "\t\t%s: %u\n",
.type = MNL_TYPE_U16,
.opt = IPSET_OPT_SKBQUEUE,
},
+ [IPSET_ATTR_PAD] = {
+ .type = MNL_TYPE_UNSPEC,
+ .len = 0,
+ },
};
static const struct ipset_attr_policy ipaddr_attrs[] = {
attr = &attrs[type];
d = mnl_attr_get_payload(nla[type]);
+ if (attr->type == MNL_TYPE_UNSPEC)
+ return 0;
if (attr->type == MNL_TYPE_NESTED && attr->opt) {
/* IP addresses */
struct nlattr *ipattr[IPSET_ATTR_IPADDR_MAX+1] = {};