summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump
diff options
context:
space:
mode:
authorAlexander Hall <halex@cvs.openbsd.org>2022-07-09 23:24:45 +0000
committerAlexander Hall <halex@cvs.openbsd.org>2022-07-09 23:24:45 +0000
commite582073d51d3250a948bd6721df5e80ff6d50711 (patch)
tree7a45e8d4263893774fbde8f3c1082799b9506c59 /usr.sbin/tcpdump
parent789c25ebd2b5bc133f19c6f49c45963d45699c8e (diff)
Explicitly set the default value for Bflag to BPF_FILDROP_PASS
Technically a nop since the value of the initial constant is 0 anyway but we should not rely on that.
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r--usr.sbin/tcpdump/tcpdump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/tcpdump.c b/usr.sbin/tcpdump/tcpdump.c
index e6e0e2cf45d..fccccd46473 100644
--- a/usr.sbin/tcpdump/tcpdump.c
+++ b/usr.sbin/tcpdump/tcpdump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcpdump.c,v 1.96 2022/01/31 19:08:29 naddy Exp $ */
+/* $OpenBSD: tcpdump.c,v 1.97 2022/07/09 23:24:44 halex Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -61,7 +61,7 @@
int Aflag; /* dump ascii */
int aflag; /* translate network and broadcast addresses */
-int Bflag; /* BPF fildrop setting */
+int Bflag = BPF_FILDROP_PASS; /* BPF fildrop setting */
int dflag; /* print filter code */
int eflag; /* print ethernet header */
int fflag; /* don't translate "foreign" IP address */