Source-Changes-HG archive

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

[src/trunk]: src/sys/net Replace if_attach of if_tap with if_initialize and i...



details:   https://anonhg.NetBSD.org/src/rev/358ea8907a26
branches:  trunk
changeset: 334951:358ea8907a26
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Wed Dec 17 09:41:30 2014 +0000

description:
Replace if_attach of if_tap with if_initialize and if_register

diffstat:

 sys/net/if_tap.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r 35fa493915c7 -r 358ea8907a26 sys/net/if_tap.c
--- a/sys/net/if_tap.c  Wed Dec 17 06:54:48 2014 +0000
+++ b/sys/net/if_tap.c  Wed Dec 17 09:41:30 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_tap.c,v 1.80 2014/11/07 09:26:08 ozaki-r Exp $      */
+/*     $NetBSD: if_tap.c,v 1.81 2014/12/17 09:41:30 ozaki-r Exp $      */
 
 /*
  *  Copyright (c) 2003, 2004, 2008, 2009 The NetBSD Foundation.
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.80 2014/11/07 09:26:08 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.81 2014/12/17 09:41:30 ozaki-r Exp $");
 
 #if defined(_KERNEL_OPT)
 
@@ -341,10 +341,10 @@
 
        sc->sc_ec.ec_capabilities = ETHERCAP_VLAN_MTU | ETHERCAP_JUMBO_MTU;
 
-       /* Those steps are mandatory for an Ethernet driver, the fisrt call
-        * being common to all network interface drivers. */
-       if_attach(ifp);
+       /* Those steps are mandatory for an Ethernet driver. */
+       if_initialize(ifp);
        ether_ifattach(ifp, enaddr);
+       if_register(ifp);
 
 #if defined(COMPAT_40) || defined(MODULAR)
        /*



Home | Main Index | Thread Index | Old Index