Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax/boot/boot Stop the network interface after kern...



details:   https://anonhg.NetBSD.org/src/rev/800a6c04c9f5
branches:  trunk
changeset: 474182:800a6c04c9f5
user:      ragge <ragge%NetBSD.org@localhost>
date:      Wed Jun 30 18:38:03 1999 +0000

description:
Stop the network interface after kernel is loaded but before starting it.
Not doing this caused packets to be read into memory somewhere after the
kernel was started but before the device was probed, normally in the
system page table. This gave quite unpredictable results...

diffstat:

 sys/arch/vax/boot/boot/netio.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 8f631a05a1a2 -r 800a6c04c9f5 sys/arch/vax/boot/boot/netio.c
--- a/sys/arch/vax/boot/boot/netio.c    Wed Jun 30 18:36:37 1999 +0000
+++ b/sys/arch/vax/boot/boot/netio.c    Wed Jun 30 18:38:03 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netio.c,v 1.3 1999/05/07 16:19:28 drochner Exp $       */
+/*     $NetBSD: netio.c,v 1.4 1999/06/30 18:38:03 ragge Exp $  */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -140,6 +140,7 @@
 netclose(f)
        struct open_file *f;
 {
+       netif_close(netdev_sock);
        f->f_devdata = NULL;
 }
 



Home | Main Index | Thread Index | Old Index