Source-Changes-HG archive

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

[src/trunk]: src/sys/net backout previous. i was looking at the wrong RFC.



details:   https://anonhg.NetBSD.org/src/rev/9f382ca51c78
branches:  trunk
changeset: 534897:9f382ca51c78
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Aug 06 04:58:57 2002 +0000

description:
backout previous.  i was looking at the wrong RFC.

diffstat:

 sys/net/if_stf.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (45 lines):

diff -r a0d046db308a -r 9f382ca51c78 sys/net/if_stf.c
--- a/sys/net/if_stf.c  Tue Aug 06 03:39:44 2002 +0000
+++ b/sys/net/if_stf.c  Tue Aug 06 04:58:57 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_stf.c,v 1.27 2002/08/05 23:37:48 itojun Exp $       */
+/*     $NetBSD: if_stf.c,v 1.28 2002/08/06 04:58:57 itojun Exp $       */
 /*     $KAME: if_stf.c,v 1.62 2001/06/07 22:32:16 itojun Exp $ */
 
 /*
@@ -75,7 +75,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_stf.c,v 1.27 2002/08/05 23:37:48 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_stf.c,v 1.28 2002/08/06 04:58:57 itojun Exp $");
 
 #include "opt_inet.h"
 
@@ -130,8 +130,6 @@
 #define IN6_IS_ADDR_6TO4(x)    (ntohs((x)->s6_addr16[0]) == 0x2002)
 #define GET_V4(x)      ((struct in_addr *)(&(x)->s6_addr16[1]))
 
-#define STF_MTU                (1500 - 20)
-
 struct stf_softc {
        struct ifnet    sc_if;     /* common area */
        union {
@@ -212,7 +210,7 @@
                return (EIO);   /* XXX */
        }
 
-       sc->sc_if.if_mtu    = STF_MTU;
+       sc->sc_if.if_mtu    = IPV6_MMTU;
        sc->sc_if.if_flags  = 0;
        sc->sc_if.if_ioctl  = stf_ioctl;
        sc->sc_if.if_output = stf_output;
@@ -694,7 +692,7 @@
 {
 
        if (rt)
-               rt->rt_rmx.rmx_mtu = STF_MTU;
+               rt->rt_rmx.rmx_mtu = IPV6_MMTU;
 }
 
 static int



Home | Main Index | Thread Index | Old Index