Lines Matching defs:sc
87 struct gre_softc *sc;
90 sc = (struct gre_softc *)arg;
91 if ((GRE2IFP(sc)->if_flags & IFF_UP) == 0)
107 GRE_RLOCK(sc);
108 if (sc->gre_family == 0)
111 KASSERT(sc->gre_family == AF_INET6,
112 ("wrong gre_family: %d", sc->gre_family));
115 if (!IN6_ARE_ADDR_EQUAL(&sc->gre_oip6.ip6_src, &ip6->ip6_dst) ||
116 !IN6_ARE_ADDR_EQUAL(&sc->gre_oip6.ip6_dst, &ip6->ip6_src))
119 GRE_RUNLOCK(sc);
122 GRE_RUNLOCK(sc);
137 in6_gre_attach(struct gre_softc *sc)
140 KASSERT(sc->gre_ecookie == NULL, ("gre_ecookie isn't NULL"));
141 sc->gre_ecookie = encap_attach_func(AF_INET6, IPPROTO_GRE,
142 in6_gre_encapcheck, &in6_gre_protosw, sc);
143 if (sc->gre_ecookie == NULL)