We currently do not explicitly set the value for Bflag. Since it's
a static variable it is initialized to 0, which just so conveniently
happen to match the default constant.

So, this is technically a no-op since the value of the initial constant
is 0 anyway, but I do not think we should not rely on that.

OK?

/Alexander

---
 tcpdump.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git tcpdump.c tcpdump.c
index e6e0e2cf45d..7b931754c0a 100644
--- tcpdump.c
+++ tcpdump.c
@@ -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 */
-- 
2.37.0


Reply via email to