Source-Changes-HG archive

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

[src/trunk]: src/sys/net call if_alloc_sadl(). without it the following oper...



details:   https://anonhg.NetBSD.org/src/rev/b9e578f467b5
branches:  trunk
changeset: 502999:b9e578f467b5
user:      itojun <itojun%NetBSD.org@localhost>
date:      Sun Jan 28 10:41:44 2001 +0000

description:
call if_alloc_sadl().  without it the following operation causes kernel panic:
# ifconfig vlan0 create
# ifconfig vlan0

diffstat:

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

diffs (17 lines):

diff -r e36db9c5ddf0 -r b9e578f467b5 sys/net/if_vlan.c
--- a/sys/net/if_vlan.c Sun Jan 28 10:05:05 2001 +0000
+++ b/sys/net/if_vlan.c Sun Jan 28 10:41:44 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vlan.c,v 1.28 2001/01/17 15:53:43 thorpej Exp $     */
+/*     $NetBSD: if_vlan.c,v 1.29 2001/01/28 10:41:44 itojun Exp $      */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -217,6 +217,7 @@
        ifp->if_ioctl = vlan_ioctl;
 
        if_attach(ifp);
+       if_alloc_sadl(ifp);
 
        return (0);
 }



Home | Main Index | Thread Index | Old Index