Module Name: src
Committed By: ozaki-r
Date: Wed Dec 17 09:41:30 UTC 2014
Modified Files:
src/sys/net: if_tap.c
Log Message:
Replace if_attach of if_tap with if_initialize and if_register
To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/sys/net/if_tap.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/net/if_tap.c
diff -u src/sys/net/if_tap.c:1.80 src/sys/net/if_tap.c:1.81
--- src/sys/net/if_tap.c:1.80 Fri Nov 7 09:26:08 2014
+++ src/sys/net/if_tap.c Wed Dec 17 09:41:30 2014
@@ -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 @@ tap_attach(device_t parent, device_t sel
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)
/*