Lines Matching refs:sc
90 struct gif_softc *sc = ifnet_softc(ifp);
91 struct sockaddr_in6 *dst = (struct sockaddr_in6 *)&sc->gif_ro6.ro_dst;
92 struct sockaddr_in6 *sin6_src = (struct sockaddr_in6 *)sc->gif_psrc;
93 struct sockaddr_in6 *sin6_dst = (struct sockaddr_in6 *)sc->gif_pdst;
178 (sc->gif_ro6.ro_rt != NULL &&
179 (sc->gif_ro6.ro_rt->generation_id != route_generation ||
180 sc->gif_ro6.ro_rt->rt_ifp == ifp))) {
186 if (sc->gif_ro6.ro_rt) {
187 rtfree(sc->gif_ro6.ro_rt);
188 sc->gif_ro6.ro_rt = NULL;
191 sc->gif_if.if_mtu = GIF_MTU;
195 if (sc->gif_ro6.ro_rt == NULL) {
196 rtalloc((struct route *)&sc->gif_ro6);
197 if (sc->gif_ro6.ro_rt == NULL) {
203 if (sc->gif_ro6.ro_rt->rt_ifp == ifp) {
208 ifp->if_mtu = sc->gif_ro6.ro_rt->rt_ifp->if_mtu
219 return(ip6_output(m, 0, &sc->gif_ro6, IPV6_MINMTU, 0, NULL, 0));
221 return(ip6_output(m, 0, &sc->gif_ro6, 0, 0, NULL, 0));
307 struct gif_softc *sc,
312 src = (struct sockaddr_in6 *)sc->gif_psrc;
313 dst = (struct sockaddr_in6 *)sc->gif_pdst;
327 if ((ifnet_flags(sc->gif_if) & IFF_LINK2) == 0 && ifp) {
343 "due to ingress filter\n", if_name(&sc->gif_if),
369 struct gif_softc *sc;
373 sc = (struct gif_softc *)arg;
378 return gif_validate6(&ip6, sc, ifp);