#define __exit __attribute__ ((destructor))
#define __deprecated __attribute__ ((deprecated))
-#define P_ACCEPT 0
-#define P_IGNORE 0
-
#define min(x,y) ({ \
typeof(x) _x = (x); \
typeof(y) _y = (y); \
}
err = pp->pp_cb((struct nl_object *) family, pp);
- if (err < 0)
- goto errout;
-
- err = P_ACCEPT;
-
errout:
genl_family_put(family);
return err;
goto errout;
err = pp->pp_cb((struct nl_object *) ct, pp);
- if (err < 0)
- goto errout;
-
- err = P_ACCEPT;
-
errout:
nfnl_ct_put(ct);
return err;
goto errout;
err = pp->pp_cb((struct nl_object *) msg, pp);
- if (err < 0)
- goto errout;
-
- err = P_ACCEPT;
-
errout:
nfnl_log_msg_put(msg);
return err;
goto errout;
err = pp->pp_cb((struct nl_object *) msg, pp);
- if (err < 0)
- goto errout;
-
- err = P_ACCEPT;
-
errout:
nfnl_queue_msg_put(msg);
return err;
}
err = pp->pp_cb((struct nl_object *) addr, pp);
- if (err < 0)
- goto errout;
-
- err = P_ACCEPT;
-
errout:
rtnl_addr_put(addr);
}
err = pp->pp_cb((struct nl_object *) class, pp);
- if (err < 0)
- goto errout_free;
-
- err = P_ACCEPT;
-
errout_free:
rtnl_class_put(class);
errout:
}
err = pp->pp_cb((struct nl_object *) cls, pp);
- if (err < 0)
- goto errout_free;
-
- err = P_ACCEPT;
-
errout_free:
rtnl_cls_put(cls);
errout:
}
err = pp->pp_cb((struct nl_object *) link, pp);
- if (err < 0)
- goto errout;
-
- err = P_ACCEPT;
-
errout:
rtnl_link_put(link);
return err;
}
err = pp->pp_cb((struct nl_object *) neigh, pp);
- if (err < 0)
- goto errout;
-
- err = P_ACCEPT;
-
errout:
rtnl_neigh_put(neigh);
return err;
}
err = pp->pp_cb((struct nl_object *) ntbl, pp);
- if (err < 0)
- goto errout;
-
- err = P_ACCEPT;
errout:
rtnl_neightbl_put(ntbl);
return err;
}
err = pp->pp_cb((struct nl_object *) qdisc, pp);
- if (err < 0)
- goto errout_free;
-
- err = P_ACCEPT;
-
errout_free:
rtnl_qdisc_put(qdisc);
errout:
if ((err = rtnl_route_parse(nlh, &route)) < 0)
return err;
- if ((err = pp->pp_cb((struct nl_object *) route, pp)) < 0)
- goto errout;
+ err = pp->pp_cb((struct nl_object *) route, pp);
- err = P_ACCEPT;
-
-errout:
rtnl_route_put(route);
return err;
}
}
err = pp->pp_cb((struct nl_object *) rule, pp);
- if (err < 0)
- goto errout;
-
- err = P_ACCEPT;
-
errout:
rtnl_rule_put(rule);
return err;