Source-Changes-HG archive

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

[src/trunk]: src/sys/net Move the mtu initialization to arc_storelladdr, so t...



details:   https://anonhg.NetBSD.org/src/rev/dd03dc374d48
branches:  trunk
changeset: 475919:dd03dc374d48
user:      is <is%NetBSD.org@localhost>
date:      Sun Aug 29 20:38:36 1999 +0000

description:
Move the mtu initialization to arc_storelladdr, so that it will be upped
again when switching link0 on.
XXX This stuff needs to be thought about, especially with the doomming IPv6
support, which uses yet another default mtu.

diffstat:

 sys/net/if_arcsubr.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 9368519edd18 -r dd03dc374d48 sys/net/if_arcsubr.c
--- a/sys/net/if_arcsubr.c      Sun Aug 29 19:58:55 1999 +0000
+++ b/sys/net/if_arcsubr.c      Sun Aug 29 20:38:36 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_arcsubr.c,v 1.25 1999/08/27 19:38:29 is Exp $       */
+/*     $NetBSD: if_arcsubr.c,v 1.26 1999/08/29 20:38:36 is Exp $       */
 
 /*
  * Copyright (c) 1994, 1995 Ignatios Souvatzis
@@ -634,6 +634,7 @@
                sdl->sdl_alen = ifp->if_addrlen;
                *(LLADDR(sdl)) = lla;
        }
+       ifp->if_mtu = (ifp->if_flags & IFF_LINK0 ? arc_phdsmtu : ARCMTU);
 }
 
 /*
@@ -656,7 +657,6 @@
                    "%s: arc_phdsmtu is %d, but must not exceed 60480",
                    ifp->if_xname, arc_phdsmtu);
 
-       ifp->if_mtu = (ifp->if_flags & IFF_LINK0 ? arc_phdsmtu : ARCMTU);
        ifp->if_output = arc_output;
        ifp->if_input = arc_input;
        ac = (struct arccom *)ifp;



Home | Main Index | Thread Index | Old Index