Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/sys/netinet pullup-1-6 ticket #202:



details:   https://anonhg.NetBSD.org/src/rev/288f25504242
branches:  netbsd-1-6
changeset: 527798:288f25504242
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Jun 07 19:39:21 2002 +0000

description:
pullup-1-6 ticket #202:

syssrc/sys/netinet/ip_input.c 1.151

Original log message:

look at rmx_mtu on IPsec tunnel MTU computation.
From: David Waitzman <djw%bbn.com@localhost>

diffstat:

 sys/netinet/ip_input.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 44adde37f52b -r 288f25504242 sys/netinet/ip_input.c
--- a/sys/netinet/ip_input.c    Fri Jun 07 19:37:06 2002 +0000
+++ b/sys/netinet/ip_input.c    Fri Jun 07 19:39:21 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_input.c,v 1.150 2002/05/12 20:33:50 matt Exp $      */
+/*     $NetBSD: ip_input.c,v 1.150.4.1 2002/06/07 19:39:21 thorpej Exp $       */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -102,7 +102,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.150 2002/05/12 20:33:50 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.150.4.1 2002/06/07 19:39:21 thorpej Exp $");
 
 #include "opt_gateway.h"
 #include "opt_pfil_hooks.h"
@@ -1662,6 +1662,8 @@
                                        ro = &sp->req->sav->sah->sa_route;
                                        if (ro->ro_rt && ro->ro_rt->rt_ifp) {
                                                dummyifp.if_mtu =
+                                                   ro->ro_rt->rt_rmx.rmx_mtu ?
+                                                   ro->ro_rt->rt_rmx.rmx_mtu :
                                                    ro->ro_rt->rt_ifp->if_mtu;
                                                dummyifp.if_mtu -= ipsechdr;
                                                destifp = &dummyifp;



Home | Main Index | Thread Index | Old Index