doc/share/security/patches/SA-08:09/icmp6.patch
Bjoern A. Zeeb 3571e53040 Import FreeBSD Security Advisories and Errata Notices, as well as their
patches for easier mirroring, to eliminate a special copy, to make
www.freebsd.org/security a full copy of security.freebsd.org and be
eventually be the same.

For now files are just sitting there.   The symlinks are missing.

Discussed on:	www (repository location)
Discussed with:	simon (so)
2012-08-15 06:19:40 +00:00

23 lines
745 B
Diff

Index: sys/netinet6/icmp6.c
===================================================================
RCS file: /home/ncvs/src/sys/netinet6/icmp6.c,v
retrieving revision 1.80.2.4
diff -u -p -r1.80.2.4 icmp6.c
--- sys/netinet6/icmp6.c 31 Aug 2008 21:54:24 -0000 1.80.2.4
+++ sys/netinet6/icmp6.c 1 Sep 2008 23:03:44 -0000
@@ -1117,6 +1117,15 @@ icmp6_mtudisc_update(struct ip6ctlparam
if (!validated)
return;
+ /*
+ * In case the suggested mtu is less than IPV6_MMTU, we
+ * only need to remember that it was for above mentioned
+ * "alwaysfrag" case.
+ * Try to be as close to the spec as possible.
+ */
+ if (mtu < IPV6_MMTU)
+ mtu = IPV6_MMTU - 8;
+
bzero(&inc, sizeof(inc));
inc.inc_flags = 1; /* IPv6 */
inc.inc6_faddr = *dst;