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)
This commit is contained in:
Michael Tuexen 2023-11-04 10:22:42 +01:00
parent 9a75f1475f
commit e71e4d9ef1

View file

@ -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) {