]> granicus.if.org Git - libnl/commitdiff
Compile CLI
authorRich Fought <Rich.Fought@watchguard.com>
Tue, 9 Oct 2012 16:50:31 +0000 (09:50 -0700)
committerRich Fought <Rich.Fought@watchguard.com>
Tue, 9 Oct 2012 16:50:31 +0000 (09:50 -0700)
src/lib/Makefile.am
src/lib/exp.c

index a88163a2391d506f30aee11e7427037b137a1fd5..6688e7c0826cf1e7229284b2722cf0c5e4d611b8 100644 (file)
@@ -38,6 +38,6 @@ libnl_cli_3_la_LIBADD  = ${top_builddir}/lib/libnl-3.la \
 
 libnl_cli_3_la_SOURCES = \
        utils.c addr.c ct.c link.c neigh.c rule.c route.c \
-       tc.c qdisc.c class.c cls.c
+       tc.c qdisc.c class.c cls.c exp.c
 #      cls/ematch_syntax.c cls/ematch_grammar.c cls/ematch.c
 #      cls/pktloc_syntax.c cls/pktloc_grammar.c cls/utils.c
index 7e10803927019525d0f2d7e4b55f702fda7e4336..01aae01208c7493e18ac46891c064cbb7237e4ec 100644 (file)
@@ -102,26 +102,4 @@ void nl_cli_exp_parse_dst_port(struct nfnl_exp *exp, int tuple, char *arg)
        nfnl_exp_set_ports(exp, tuple, sport, dport);
 }
 
-#if 0
-               } else if (arg_match("origicmpid")) {
-                       if (argc > ++idx)
-                               nfnl_ct_set_icmp_id(ct, 0, strtoul(argv[idx++], NULL, 0));
-               } else if (arg_match("origicmptype")) {
-                       if (argc > ++idx)
-                               nfnl_ct_set_icmp_type(ct, 0, strtoul(argv[idx++], NULL, 0));
-               } else if (arg_match("origicmpcode")) {
-                       if (argc > ++idx)
-                               nfnl_ct_set_icmp_code(ct, 0, strtoul(argv[idx++], NULL, 0));
-               } else if (arg_match("replyicmpid")) {
-                       if (argc > ++idx)
-                               nfnl_ct_set_icmp_id(ct, 1, strtoul(argv[idx++], NULL, 0));
-               } else if (arg_match("replyicmptype")) {
-                       if (argc > ++idx)
-                               nfnl_ct_set_icmp_type(ct, 1, strtoul(argv[idx++], NULL, 0));
-               } else if (arg_match("replyicmpcode")) {
-                       if (argc > ++idx)
-                               nfnl_ct_set_icmp_code(ct, 1, strtoul(argv[idx++], NULL, 0));
-               }
-#endif
-
 /** @} */