Lines Matching defs:sc
116 struct gif_softc *sc = ifnet_softc(ifp);
117 struct sockaddr_in6 *dst = (struct sockaddr_in6 *)&sc->gif_ro6.ro_dst;
118 struct sockaddr_in6 *sin6_src = (struct sockaddr_in6 *)(void *)sc->gif_psrc;
119 struct sockaddr_in6 *sin6_dst = (struct sockaddr_in6 *)(void *)sc->gif_pdst;
202 (sc->gif_ro6.ro_rt != NULL &&
203 (sc->gif_ro6.ro_rt->generation_id != route_generation ||
204 sc->gif_ro6.ro_rt->rt_ifp == ifp))) {
210 if (sc->gif_ro6.ro_rt) {
211 rtfree(sc->gif_ro6.ro_rt);
212 sc->gif_ro6.ro_rt = NULL;
215 sc->gif_if.if_mtu = GIF_MTU;
219 if (sc->gif_ro6.ro_rt == NULL) {
220 rtalloc((struct route *)&sc->gif_ro6);
221 if (sc->gif_ro6.ro_rt == NULL) {
225 RT_LOCK(sc->gif_ro6.ro_rt);
227 if (sc->gif_ro6.ro_rt->rt_ifp == ifp) {
228 RT_UNLOCK(sc->gif_ro6.ro_rt);
233 ifp->if_mtu = sc->gif_ro6.ro_rt->rt_ifp->if_mtu
236 RT_UNLOCK(sc->gif_ro6.ro_rt);
245 return(ip6_output(m, 0, &sc->gif_ro6, IPV6_MINMTU, 0, NULL, NULL));
247 return(ip6_output(m, 0, &sc->gif_ro6, 0, 0, NULL, NULL));
329 struct gif_softc *sc,
334 src = (struct sockaddr_in6 *)(void *)sc->gif_psrc;
335 dst = (struct sockaddr_in6 *)(void *)sc->gif_pdst;
349 if ((ifnet_flags(sc->gif_if) & IFF_LINK2) == 0 && ifp) {
364 "due to ingress filter\n", if_name(&sc->gif_if),
393 struct gif_softc *sc;
397 sc = (struct gif_softc *)arg;
402 return gif_validate6(&ip6, sc, ifp);