Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet update mtu value if outgoing interface changes w...



details:   https://anonhg.NetBSD.org/src/rev/82052f6d0f94
branches:  trunk
changeset: 567115:82052f6d0f94
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Jun 01 05:06:56 2004 +0000

description:
update mtu value if outgoing interface changes with ipsec ops
(draft-touch-vpn case only?)  iij seil team

diffstat:

 sys/netinet/ip_output.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 37477addd7a4 -r 82052f6d0f94 sys/netinet/ip_output.c
--- a/sys/netinet/ip_output.c   Tue Jun 01 03:35:59 2004 +0000
+++ b/sys/netinet/ip_output.c   Tue Jun 01 05:06:56 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_output.c,v 1.132 2004/05/18 16:47:08 christos Exp $ */
+/*     $NetBSD: ip_output.c,v 1.133 2004/06/01 05:06:56 itojun Exp $   */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -98,7 +98,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.132 2004/05/18 16:47:08 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.133 2004/06/01 05:06:56 itojun Exp $");
 
 #include "opt_pfil_hooks.h"
 #include "opt_inet.h"
@@ -585,8 +585,11 @@
                }
        } else {
                /* nobody uses ia beyond here */
-               if (state.encap)
+               if (state.encap) {
                        ifp = ro->ro_rt->rt_ifp;
+                       if ((mtu = ro->ro_rt->rt_rmx.rmx_mtu) == 0)
+                               mtu = ifp->if_mtu;
+               }
        }
     }
 skip_ipsec:



Home | Main Index | Thread Index | Old Index