Lines Matching refs:sc
109 struct gif_softc *sc = ifnet_softc(ifp);
110 struct sockaddr_in *dst = (struct sockaddr_in *)&sc->gif_ro.ro_dst;
111 struct sockaddr_in *sin_src = (struct sockaddr_in *)sc->gif_psrc;
112 struct sockaddr_in *sin_dst = (struct sockaddr_in *)sc->gif_pdst;
196 (sc->gif_ro.ro_rt != NULL &&
197 (sc->gif_ro.ro_rt->generation_id != route_generation ||
198 sc->gif_ro.ro_rt->rt_ifp == ifp))) {
203 if (sc->gif_ro.ro_rt) {
204 rtfree(sc->gif_ro.ro_rt);
205 sc->gif_ro.ro_rt = NULL;
208 sc->gif_if.if_mtu = GIF_MTU;
212 if (sc->gif_ro.ro_rt == NULL) {
213 rtalloc(&sc->gif_ro);
214 if (sc->gif_ro.ro_rt == NULL) {
220 if (sc->gif_ro.ro_rt->rt_ifp == ifp) {
225 ifp->if_mtu = sc->gif_ro.ro_rt->rt_ifp->if_mtu
230 error = ip_output(m, NULL, &sc->gif_ro, IP_OUTARGS, NULL, &ipoa);
338 struct gif_softc *sc;
344 sc = (struct gif_softc *)arg;
345 src = (struct sockaddr_in *)sc->gif_psrc;
346 dst = (struct sockaddr_in *)sc->gif_pdst;
381 if ((ifnet_flags(sc->gif_if) & IFF_LINK2) == 0 &&
397 "due to ingress filter\n", if_name(&sc->gif_if),