From c6925907c9504a55c679ab120875420cf890f5cf Mon Sep 17 00:00:00 2001 From: halex Date: Sat, 9 Jul 2022 23:24:44 +0000 Subject: [PATCH] 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. --- usr.sbin/tcpdump/tcpdump.c | 4 ++-- 1 file 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 */ -- 2.20.1