Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jan 2024 16:50:59 GMT
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: e71e4d9ef1ba - stable/14 - if_tuntap: improve code consistency
Message-ID:  <202401121650.40CGoxCP089385@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=e71e4d9ef1ba26f054894465fd53684c1fe2154d

commit e71e4d9ef1ba26f054894465fd53684c1fe2154d
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2023-11-04 09:22:42 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2024-01-12 16:40:30 +0000

    if_tuntap: improve code consistency
    
    No functional change intended.
    
    Reviewed by:            rscheff
    Sponsored by:           Netflix, Inc.
    Differential Revision:  https://reviews.freebsd.org/D42462
    
    (cherry picked from commit 4ffe410e40e90c265c20cb4675ed74a40dc1fcc4)
---
 sys/net/if_tuntap.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/net/if_tuntap.c b/sys/net/if_tuntap.c
index a1d9929a2e28..298f37bebc56 100644
--- a/sys/net/if_tuntap.c
+++ b/sys/net/if_tuntap.c
@@ -1413,8 +1413,7 @@ tunoutput(struct ifnet *ifp, struct mbuf *m0, const struct sockaddr *dst,
 	else
 		af = RO_GET_FAMILY(ro, dst);
 
-	if (bpf_peers_present(ifp->if_bpf))
-		bpf_mtap2(ifp->if_bpf, &af, sizeof(af), m0);
+	BPF_MTAP2(ifp, &af, sizeof(af), m0);
 
 	/* prepend sockaddr? this may abort if the mbuf allocation fails */
 	if (cached_tun_flags & TUN_LMODE) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401121650.40CGoxCP089385>