Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jun 2018 15:04:31 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335144 - head/sys/net
Message-ID:  <201806141504.w5EF4VHo025760@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Thu Jun 14 15:04:30 2018
New Revision: 335144
URL: https://svnweb.freebsd.org/changeset/base/335144

Log:
  Add missing BPF_MTAP2() for outbound packets.

Modified:
  head/sys/net/if_me.c

Modified: head/sys/net/if_me.c
==============================================================================
--- head/sys/net/if_me.c	Thu Jun 14 15:02:27 2018	(r335143)
+++ head/sys/net/if_me.c	Thu Jun 14 15:04:30 2018	(r335144)
@@ -549,6 +549,7 @@ me_transmit(struct ifnet *ifp, struct mbuf *m)
 		hlen = sizeof(struct mobhdr);
 		mh.mob_flags = MOB_FLAGS_SP;
 	}
+	BPF_MTAP2(ifp, &af, sizeof(af), m);
 	plen = m->m_pkthdr.len;
 	ip->ip_src = sc->me_src;
 	ip->ip_dst = sc->me_dst;



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