summaryrefslogtreecommitdiff
path: root/bpfc.c
diff options
context:
space:
mode:
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;