mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
9a75f1475f
commit
e71e4d9ef1
1 changed files with 1 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue