diff options
author | Eric Leblond <eric@regit.org> | 2013-11-18 08:40:21 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-11-19 21:31:32 +0100 |
commit | a6931ebc4742476ce3098d74e4ece263c65ae142 (patch) | |
tree | 15bdf7d2abc11ecbff50fc234411c7b94fb51747 /src/main.c | |
parent | 3451f89c65345dd22987c068647f54625b2f26ee (diff) |
netlink: only display wanted chain in listing
When specifying a chain to list, all created chains were displayed
with a void content:
# nft list chain filter
table ip filter {
chain input {
}
chain new {
counter packets 17971 bytes 2380637 accept
counter packets 0 bytes 0 accept
}
}
With the attached patch, only the asked chain is displayed:
# nft list chain filter
table ip filter {
chain new {
counter packets 17971 bytes 2380637 accept # handle 36
counter packets 0 bytes 0 accept # handle 40
}
}
Signed-off-by: Eric Leblond <eric@regit.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/main.c')
0 files changed, 0 insertions, 0 deletions