summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Fought <Rich.Fought@watchguard.com>2012-10-09 15:16:00 -0700
committerRich Fought <Rich.Fought@watchguard.com>2012-10-09 15:16:00 -0700
commitd3bec59eb93a64e803307b9a2ce0b7aad9be5555 (patch)
tree3b5ac93fd5ddfd9a6f97cf7891a0e1b895edab48 /src
parent3cb581d5986002bb8430a894402b8015b2dd2af3 (diff)
downloadlibnl-d3bec59eb93a64e803307b9a2ce0b7aad9be5555.tar.gz
bugfixes
Diffstat (limited to 'src')
-rw-r--r--src/lib/exp.c6
-rw-r--r--src/nf-exp-list.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/exp.c b/src/lib/exp.c
index 01aae01..82820f9 100644
--- a/src/lib/exp.c
+++ b/src/lib/exp.c
@@ -59,6 +59,12 @@ void nl_cli_exp_parse_id(struct nfnl_exp *exp, char *arg)
nfnl_exp_set_id(exp, id);
}
+void nl_cli_exp_parse_helper_name(struct nfnl_exp *exp, char *arg)
+{
+ int err;
+ nfnl_exp_set_helper_name(exp, arg);
+}
+
void nl_cli_exp_parse_src(struct nfnl_exp *exp, int tuple, char *arg)
{
int err;
diff --git a/src/nf-exp-list.c b/src/nf-exp-list.c
index 5a29b4a..3bdb6c5 100644
--- a/src/nf-exp-list.c
+++ b/src/nf-exp-list.c
@@ -36,6 +36,7 @@ static void print_usage(void)
" --master-dport=PORT Master conntrack destination port\n"
" -F, --family=FAMILY Address family\n"
" --timeout=NUM Timeout value\n"
+ " --helper=STRING Helper Name\n"
//" --flags Flags\n"
);
exit(0);
@@ -69,6 +70,7 @@ int main(int argc, char *argv[])
ARG_MASTER_DST,
ARG_MASTER_DPORT,
ARG_TIMEOUT,
+ ARG_HELPER_NAME,
//ARG_FLAGS,
};
static struct option long_opts[] = {
@@ -88,6 +90,7 @@ int main(int argc, char *argv[])
{ "master-dport", 1, 0, ARG_MASTER_DPORT },
{ "family", 1, 0, 'F' },
{ "timeout", 1, 0, ARG_TIMEOUT },
+ { "helper", 1, 0, ARG_HELPER_NAME },
//{ "flags", 1, 0, ARG_FLAGS},
{ 0, 0, 0, 0 }
};
@@ -116,6 +119,7 @@ int main(int argc, char *argv[])
case ARG_MASTER_DPORT: nl_cli_exp_parse_dst_port(exp, NFNL_EXP_TUPLE_MASTER, optarg); break;
case 'F': nl_cli_exp_parse_family(exp, optarg); break;
case ARG_TIMEOUT: nl_cli_exp_parse_timeout(exp, optarg); break;
+ case ARG_HELPER_NAME: nl_cli_exp_parse_helper_name(exp, optarg); break;
//case ARG_FLAGS: nl_cli_exp_parse_flags(exp, optarg); break;
}
}