From 726031795f23a69f104cba0e8a9dfacf2d4f698a Mon Sep 17 00:00:00 2001 From: Yang Zheng Date: Tue, 20 Mar 2018 22:53:22 +0800 Subject: examples: add nft-ct-helper-{add,get,del} nft-ct-helper-{add,get,del}: add, get, or delete ct helper objects from the specified table. Examples: % ./nft-ct-helper-get ip filter % ./nft-ct-helper-add ip filter sip-5060 sip udp % ./nft-ct-helper-get ip filter table filter name sip-5060 use 0 [ ct_helper name sip family 2 protocol 17 ] % ./nft-ct-helper-del ip filter sip-5060 % ./nft-ct-helper-get ip filter Signed-off-by: Yang Zheng Acked-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- examples/Makefile.am | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'examples/Makefile.am') diff --git a/examples/Makefile.am b/examples/Makefile.am index c0d84eb..96112e7 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -30,7 +30,10 @@ check_PROGRAMS = nft-table-add \ nft-flowtable-get \ nft-ruleset-get \ nft-ruleset-parse-file \ - nft-compat-get + nft-compat-get \ + nft-ct-helper-add \ + nft-ct-helper-get \ + nft-ct-helper-del nft_table_add_SOURCES = nft-table-add.c nft_table_add_LDADD = ../src/libnftnl.la ${LIBMNL_LIBS} @@ -124,3 +127,12 @@ nft_ruleset_parse_file_LDADD = ../src/libnftnl.la ${LIBMNL_LIBS} nft_compat_get_SOURCES = nft-compat-get.c nft_compat_get_LDADD = ../src/libnftnl.la ${LIBMNL_LIBS} + +nft_ct_helper_add_SOURCES = nft-ct-helper-add.c +nft_ct_helper_add_LDADD = ../src/libnftnl.la ${LIBMNL_LIBS} + +nft_ct_helper_get_SOURCES = nft-ct-helper-get.c +nft_ct_helper_get_LDADD = ../src/libnftnl.la ${LIBMNL_LIBS} + +nft_ct_helper_del_SOURCES = nft-ct-helper-del.c +nft_ct_helper_del_LDADD = ../src/libnftnl.la ${LIBMNL_LIBS} -- cgit v1.2.3