diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-10-11 22:33:11 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-10-11 22:35:05 +0200 |
commit | 2548dc39129485b6c78889a578d3a42f4a680bb6 (patch) | |
tree | cb6f179946b4d2a5c7fa34f65896aa6f0b5e8a12 | |
parent | bed9b6bb58f83775a71361ef9f4f11f61afe452c (diff) |
bpfc: alias xt_bpf to tc
Alias output format for tc/xt_bpf.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
-rw-r--r-- | bpfc.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -111,10 +111,11 @@ int main(int argc, char **argv) if (!strncmp(optarg, "C", 1) || !strncmp(optarg, "netsniff-ng", 11)) format = 0; - else if (!strncmp(optarg, "xt_bpf", 6)) - format = 1; else if (!strncmp(optarg, "tcpdump", 7)) format = 2; + else if (!strncmp(optarg, "xt_bpf", 6) || + !strncmp(optarg, "tc", 2)) + format = 1; else help(); break; |