diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-12-04 17:15:08 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-12-04 17:15:08 +0100 |
commit | 20ef68b7a6090a939a48797b553477e0852c8f49 (patch) | |
tree | 9f9769c9355017816c800ee7b390e6042c502da4 /src | |
parent | e3491f1e521750586e0827b44651585883e6b935 (diff) | |
download | conntrack-tools-20ef68b7a6090a939a48797b553477e0852c8f49.tar.gz conntrack-tools-20ef68b7a6090a939a48797b553477e0852c8f49.zip |
conntrack: add new --status EXPECTED to filter expected connections
With this patch, you can filter expected connections:
# conntrack -L --status EXPECTED
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/conntrack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conntrack.c b/src/conntrack.c index 8946ec8..e8b2c4f 100644 --- a/src/conntrack.c +++ b/src/conntrack.c @@ -363,8 +363,8 @@ static struct parse_parameter { size_t size; unsigned int value[6]; } parse_array[PARSE_MAX] = { - { {"ASSURED", "SEEN_REPLY", "UNSET", "FIXED_TIMEOUT"}, 4, - { IPS_ASSURED, IPS_SEEN_REPLY, 0, IPS_FIXED_TIMEOUT} }, + { {"ASSURED", "SEEN_REPLY", "UNSET", "FIXED_TIMEOUT", "EXPECTED"}, 5, + { IPS_ASSURED, IPS_SEEN_REPLY, 0, IPS_FIXED_TIMEOUT, IPS_EXPECTED} }, { {"ALL", "NEW", "UPDATES", "DESTROY"}, 4, {~0U, NF_NETLINK_CONNTRACK_NEW, NF_NETLINK_CONNTRACK_UPDATE, NF_NETLINK_CONNTRACK_DESTROY} }, |