summaryrefslogtreecommitdiffstats
path: root/sys/net/if_stf.c
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2005-06-13 17:17:07 +0000
committerbrooks <brooks@FreeBSD.org>2005-06-13 17:17:07 +0000
commit44ce56b0772938d038aad76caa436acfef6271e2 (patch)
treee3cf1ea502016ae488e4ac4048eec1f186743131 /sys/net/if_stf.c
parent8637a9a96a3234373c579f38823195a69b770e84 (diff)
downloadFreeBSD-src-44ce56b0772938d038aad76caa436acfef6271e2.zip
FreeBSD-src-44ce56b0772938d038aad76caa436acfef6271e2.tar.gz
Initialze ifp->if_softc.
Submitted by: ume
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 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.
OpenPOWER on IntegriCloud