diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-10-24 18:37:48 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-10-24 20:08:24 +0200 |
commit | 15ab98728c3cb1a35273abbf63936c0dce7fd557 (patch) | |
tree | 7ff5dee8a38d8bc8d637145572c5b91a23c31498 /include/mnl.h | |
parent | 1a98264ddba1ccb5f27115259c8e8c1dc34948fa (diff) |
mnl: remove alloc_nftnl_flowtable()
We can remove alloc_nftnl_flowtable() and consolidate infrastructure in
the src/mnl.c file.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/mnl.h')
-rw-r--r-- | include/mnl.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/include/mnl.h b/include/mnl.h index 457dd2ed..1784b3aa 100644 --- a/include/mnl.h +++ b/include/mnl.h @@ -77,12 +77,9 @@ int mnl_nft_obj_del(struct netlink_ctx *ctx, const struct cmd *cmd, int type); struct nftnl_flowtable_list * mnl_nft_flowtable_dump(struct netlink_ctx *ctx, int family, const char *table); -int mnl_nft_flowtable_batch_add(struct nftnl_flowtable *flo, - struct nftnl_batch *batch, unsigned int flags, - uint32_t seqnum); -int mnl_nft_flowtable_batch_del(struct nftnl_flowtable *flow, - struct nftnl_batch *batch, unsigned int flags, - uint32_t seqnum); +int mnl_nft_flowtable_add(struct netlink_ctx *ctx, const struct cmd *cmd, + unsigned int flags); +int mnl_nft_flowtable_del(struct netlink_ctx *ctx, const struct cmd *cmd); struct nftnl_ruleset *mnl_nft_ruleset_dump(struct netlink_ctx *ctx, uint32_t family); |