summaryrefslogtreecommitdiff
path: root/bpfc.c
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-10-11 22:33:11 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-10-11 22:35:05 +0200
commit2548dc39129485b6c78889a578d3a42f4a680bb6 (patch)
treecb6f179946b4d2a5c7fa34f65896aa6f0b5e8a12 /bpfc.c
parentbed9b6bb58f83775a71361ef9f4f11f61afe452c (diff)
bpfc: alias xt_bpf to tc
Alias output format for tc/xt_bpf. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'bpfc.c')
-rw-r--r--bpfc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bpfc.c b/bpfc.c
index 5063d02..a107bc8 100644
--- a/bpfc.c
+++ b/bpfc.c
@@ -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;