svn commit: r332810 - stable/11/sys/netinet6
Andrey V. Elsukov
ae at FreeBSD.org
Fri Apr 20 09:48:43 UTC 2018
Author: ae
Date: Fri Apr 20 09:48:42 2018
New Revision: 332810
URL: https://svnweb.freebsd.org/changeset/base/332810
Log:
MFC r332475:
Add check that mbuf had not multicast layer2 address.
Such packets should be handled by ip6_mforward().
Modified:
stable/11/sys/netinet6/ip6_fastfwd.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/netinet6/ip6_fastfwd.c
==============================================================================
--- stable/11/sys/netinet6/ip6_fastfwd.c Fri Apr 20 03:29:06 2018 (r332809)
+++ stable/11/sys/netinet6/ip6_fastfwd.c Fri Apr 20 09:48:42 2018 (r332810)
@@ -97,7 +97,8 @@ ip6_tryforward(struct mbuf *m)
* Fallback conditions to ip6_input for slow path processing.
*/
ip6 = mtod(m, struct ip6_hdr *);
- if (ip6->ip6_nxt == IPPROTO_HOPOPTS ||
+ if ((m->m_flags & (M_BCAST | M_MCAST)) != 0 ||
+ ip6->ip6_nxt == IPPROTO_HOPOPTS ||
IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) ||
IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_dst) ||
IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_src) ||
More information about the svn-src-stable
mailing list