Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/netinet Fill in the next mtu field of a NEEDFRAG IC...
details: https://anonhg.NetBSD.org/src/rev/8a50e83a893e
branches: netbsd-1-5
changeset: 489324:8a50e83a893e
user: sommerfeld <sommerfeld%NetBSD.org@localhost>
date: Thu Aug 31 14:19:50 2000 +0000
description:
Fill in the next mtu field of a NEEDFRAG ICMP error message.
>From marc horowitz, pr10857. approved by *someone* on releng-1-5 a while back
diffstat:
sys/netinet/ip_fil.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 7761608c1de0 -r 8a50e83a893e sys/netinet/ip_fil.c
--- a/sys/netinet/ip_fil.c Thu Aug 31 12:40:50 2000 +0000
+++ b/sys/netinet/ip_fil.c Thu Aug 31 14:19:50 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_fil.c,v 1.55.2.2 2000/08/07 15:40:23 thorpej Exp $ */
+/* $NetBSD: ip_fil.c,v 1.55.2.3 2000/08/31 14:19:50 sommerfeld Exp $ */
/*
* Copyright (C) 1993-2000 by Darren Reed.
@@ -9,7 +9,7 @@
*/
#if !defined(lint)
#if defined(__NetBSD__)
-static const char rcsid[] = "$NetBSD: ip_fil.c,v 1.55.2.2 2000/08/07 15:40:23 thorpej Exp $";
+static const char rcsid[] = "$NetBSD: ip_fil.c,v 1.55.2.3 2000/08/31 14:19:50 sommerfeld Exp $";
#else
static const char sccsid[] = "@(#)ip_fil.c 2.41 6/5/96 (C) 1993-2000 Darren Reed";
static const char rcsid[] = "@(#)Id: ip_fil.c,v 2.42.2.10 2000/05/25 20:16:44 darrenr Exp";
@@ -1210,6 +1210,9 @@
icmp->icmp_type = type;
icmp->icmp_code = fin->fin_icode;
icmp->icmp_cksum = 0;
+ if (type == ICMP_UNREACH &&
+ fin->fin_icode == ICMP_UNREACH_NEEDFRAG && ifp)
+ icmp->icmp_nextmtu = htons(((struct ifnet *) ifp)->if_mtu);
if (avail) {
bcopy((char *)oip, (char *)&icmp->icmp_ip, MIN(ohlen, avail));
avail -= MIN(ohlen, avail);
Home |
Main Index |
Thread Index |
Old Index