aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if_stf.c
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2005-06-13 17:17:07 +0000
committerBrooks Davis <brooks@FreeBSD.org>2005-06-13 17:17:07 +0000
commitb03965ddca159467be3787a0818b3d776fb03057 (patch)
treee3cf1ea502016ae488e4ac4048eec1f186743131 /sys/net/if_stf.c
parentfb74d4fdc8f8848e0e4b8cf68266f75cf1206000 (diff)
downloadsrc-b03965ddca159467be3787a0818b3d776fb03057.tar.gz
src-b03965ddca159467be3787a0818b3d776fb03057.zip
Initialze ifp->if_softc.
Submitted by: ume
Notes
Notes: svn path=/head/; revision=147346
Diffstat (limited to 'sys/net/if_stf.c')
-rw-r--r--sys/net/if_stf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_stf.c b/sys/net/if_stf.c
index 072c5050374f..c848e2a13d95 100644
--- a/sys/net/if_stf.c
+++ b/sys/net/if_stf.c
@@ -215,12 +215,14 @@ stf_clone_create(struct if_clone *ifc, char *name, size_t len)
return (err);
sc = malloc(sizeof(struct stf_softc), M_STF, M_WAITOK | M_ZERO);
- ifp = sc->sc_ifp = if_alloc(IFT_STF);
+ ifp = STF2IFP(sc) = if_alloc(IFT_STF);
if (ifp == NULL) {
free(sc, M_STF);
ifc_free_unit(ifc, unit);
return (ENOSPC);
}
+ ifp->if_softc = sc;
+
/*
* Set the name manually rather then using if_initname because
* we don't conform to the default naming convention for interfaces.