diff options
author | Rich Fought <rmf.aero@gmail.com> | 2014-02-27 00:02:13 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-04-14 17:20:53 (GMT) |
commit | 8ff199947ffa4f7d4f6b0b878fde68d8ffcf7f0f (patch) | |
tree | 620d165c676873f08b600759cb64be3623e662e1 /src/lib | |
parent | cb319e22f5680b49fad62dc7f0eb35b7d737cb3b (diff) | |
download | libnl-8ff199947ffa4f7d4f6b0b878fde68d8ffcf7f0f.zip libnl-8ff199947ffa4f7d4f6b0b878fde68d8ffcf7f0f.tar.gz libnl-8ff199947ffa4f7d4f6b0b878fde68d8ffcf7f0f.tar.bz2 |
netfilter/ct: expand CT parameters that can be used in add/delete operations
This expands functionality for manipulating conntracks over netlink by
adding other attributes to nfnl_ct_build_message(). Added a command link
program to add conntracks.
https://github.com/thom311/libnl/pull/55
[thaller@redhat.com: cleaned up whitespace from original patch]
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/ct.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/ct.c b/src/lib/ct.c index 5bab08f..c903878 100644 --- a/src/lib/ct.c +++ b/src/lib/ct.c @@ -137,6 +137,12 @@ void nl_cli_ct_parse_status(struct nfnl_ct *ct, char *arg) nfnl_ct_set_status(ct, status); } +void nl_cli_ct_parse_zone(struct nfnl_ct *ct, char *arg) +{ + uint32_t zone = nl_cli_parse_u32(arg); + nfnl_ct_set_zone(ct, zone); +} + #if 0 } else if (arg_match("origicmpid")) { if (argc > ++idx) |