diff options
author | brooks <brooks@FreeBSD.org> | 2005-06-13 17:17:07 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2005-06-13 17:17:07 +0000 |
commit | 44ce56b0772938d038aad76caa436acfef6271e2 (patch) | |
tree | e3cf1ea502016ae488e4ac4048eec1f186743131 /sys/net | |
parent | 8637a9a96a3234373c579f38823195a69b770e84 (diff) | |
download | FreeBSD-src-44ce56b0772938d038aad76caa436acfef6271e2.zip FreeBSD-src-44ce56b0772938d038aad76caa436acfef6271e2.tar.gz |
Initialze ifp->if_softc.
Submitted by: ume
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_stf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_stf.c b/sys/net/if_stf.c index 072c505..c848e2a 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. |