1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-26 16:18:31 +00:00

Initialize inc_fibnum for properly handling ICMP6_PACKET_TOO_BIG errors

in multifib environment.

PR:		183265
MFC after:	1 week
This commit is contained in:
Andrey V. Elsukov 2013-10-25 01:02:25 +00:00
parent 594ce9ad6f
commit baa09f1891
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257084

View File

@ -1227,6 +1227,7 @@ icmp6_mtudisc_update(struct ip6ctlparam *ip6cp, int validated)
mtu = IPV6_MMTU - 8;
bzero(&inc, sizeof(inc));
inc.inc_fibnum = M_GETFIB(m);
inc.inc_flags |= INC_ISIPV6;
inc.inc6_faddr = *dst;
if (in6_setscope(&inc.inc6_faddr, m->m_pkthdr.rcvif, NULL))