Lines Matching defs:sc
107 struct gif_softc *sc = ifnet_softc(ifp);
108 struct sockaddr_in *dst = (struct sockaddr_in *)(void *)&sc->gif_ro.ro_dst;
109 struct sockaddr_in *sin_src = (struct sockaddr_in *)(void *)sc->gif_psrc;
110 struct sockaddr_in *sin_dst = (struct sockaddr_in *)(void *)sc->gif_pdst;
194 (sc->gif_ro.ro_rt != NULL &&
195 (sc->gif_ro.ro_rt->generation_id != route_generation ||
196 sc->gif_ro.ro_rt->rt_ifp == ifp))) {
201 if (sc->gif_ro.ro_rt) {
202 rtfree(sc->gif_ro.ro_rt);
203 sc->gif_ro.ro_rt = NULL;
206 sc->gif_if.if_mtu = GIF_MTU;
210 if (sc->gif_ro.ro_rt == NULL) {
211 rtalloc(&sc->gif_ro);
212 if (sc->gif_ro.ro_rt == NULL) {
218 RT_LOCK(sc->gif_ro.ro_rt);
219 if (sc->gif_ro.ro_rt->rt_ifp == ifp) {
220 RT_UNLOCK(sc->gif_ro.ro_rt);
225 ifp->if_mtu = sc->gif_ro.ro_rt->rt_ifp->if_mtu
228 RT_UNLOCK(sc->gif_ro.ro_rt);
231 error = ip_output(m, NULL, &sc->gif_ro, IP_OUTARGS, NULL, &ipoa);
339 struct gif_softc *sc;
345 sc = (struct gif_softc *)arg;
346 src = (struct sockaddr_in *)(void *)sc->gif_psrc;
347 dst = (struct sockaddr_in *)(void *)sc->gif_pdst;
385 if ((ifnet_flags(sc->gif_if) & IFF_LINK2) == 0 &&