fix build
PATCH 1/1 fix build
nft-sync development has been stalled for two years. Since then the libnftnl API has changed, breaking the build.
Apply the required changes to make the project build again.
Signed-off-by Pablo M. Bermudo Garay <[email protected]>
--- include/mnl.h | 13 +++-- src/mnl.c | 178 +++++++++++++++++++++++++++++----------------------------- 2 files changed, 96 insertions(+), 95 deletions(-)
include/mnl.h +7 -6
@@ -11,12 +11,13 @@#include "config.h" -struct nft_rule_list *mnl_rule_dump (struct mnl_socket *nf_sock,int family); -struct nft_chain_list *mnl_chain_dump (struct mnl_socket *nf_sock,int family); -struct nft_table_list *mnl_table_dump (struct mnl_socket *nf_sock,int family); -struct nft_set_list *mnl_set_dump (struct mnl_socket *nf_sock,int family,const char *table); -int mnl_setelem_get (struct mnl_socket *nf_sock,struct nft_set *nls); -struct nft_ruleset *mnl_ruleset_dump (struct mnl_socket *nf_sock); +struct nftnl_rule_list *mnl_rule_dump (struct mnl_socket *nf_sock,int family); +struct nftnl_chain_list *mnl_chain_dump (struct mnl_socket *nf_sock,int family); +struct nftnl_table_list *mnl_table_dump (struct mnl_socket *nf_sock,int family); +struct nftnl_set_list *mnl_set_dump (struct mnl_socket *nf_sock,int family, +const char *table); +int mnl_setelem_get (struct mnl_socket *nf_sock,struct nftnl_set *nls); +struct nftnl_ruleset *mnl_ruleset_dump (struct mnl_socket *nf_sock);int nfts_socket_open (struct nft_sync_inst *nfts_inst);void nfts_socket_close (struct nft_sync_inst *nfts_inst);const char *netlink_dump_ruleset (struct mnl_socket *s);
src/mnl.c +89 -89
395 lines not on this page · raw message
Signature · 1 line
2.13.2
Quoted 4 lines · Pablo M. Bermudo Garay
nft-sync development has been stalled for two years. Since then the libnftnl API has changed, breaking the build.
Apply the required changes to make the project build again.
Applied, thanks.