if (STREQ(str, "physdev:")) {
offset = 8;
err = ipset_data_set(data, IPSET_OPT_PHYSDEV, str);
+ if (err < 0)
+ return err;
}
if (strlen(str + offset) > IFNAMSIZ - 1)
return syntax_err("interface name '%s' is longer "
const struct ipset_data *data = session->data;
const struct ipset_type *type;
const struct ipset_arg *arg;
- uint8_t family;
int i, found = 0;
D("enter");
if (type == NULL)
return MNL_CB_ERROR;
- family = ipset_data_family(data);
for (i = IPSET_ATTR_UNSPEC + 1; i <= IPSET_ATTR_ADT_MAX; i++)
if (nla[i]) {