svn commit: r338708 - head/sys/net
Andrey V. Elsukov
ae at FreeBSD.org
Mon Sep 17 10:10:15 UTC 2018
Author: ae
Date: Mon Sep 17 10:10:14 2018
New Revision: 338708
URL: https://svnweb.freebsd.org/changeset/base/338708
Log:
Restore outbound packets capturing for if_gre(4). It was missed in r335048.
Also clear M_MCAST and M_BCAST flags for encapsulated datagram, since it
will have new IP header.
Approved by: re (kib)
Modified:
head/sys/net/if_gre.c
Modified: head/sys/net/if_gre.c
==============================================================================
--- head/sys/net/if_gre.c Mon Sep 17 02:51:08 2018 (r338707)
+++ head/sys/net/if_gre.c Mon Sep 17 10:10:14 2018 (r338708)
@@ -569,6 +569,8 @@ gre_transmit(struct ifnet *ifp, struct mbuf *m)
goto drop;
}
af = m->m_pkthdr.csum_data;
+ BPF_MTAP2(ifp, &af, sizeof(af), m);
+ m->m_flags &= ~(M_BCAST|M_MCAST);
M_SETFIB(m, sc->gre_fibnum);
M_PREPEND(m, sc->gre_hlen, M_NOWAIT);
if (m == NULL) {
More information about the svn-src-head
mailing list