Lines Matching refs:GRE2IFP
171 GRE2IFP(sc) = if_alloc(IFT_TUNNEL);
173 GRE2IFP(sc)->if_softc = sc;
174 if_initname(GRE2IFP(sc), grename, unit);
176 GRE2IFP(sc)->if_mtu = sc->gre_mtu = GREMTU;
177 GRE2IFP(sc)->if_flags = IFF_POINTOPOINT|IFF_MULTICAST;
178 GRE2IFP(sc)->if_output = gre_output;
179 GRE2IFP(sc)->if_ioctl = gre_ioctl;
180 GRE2IFP(sc)->if_transmit = gre_transmit;
181 GRE2IFP(sc)->if_qflush = gre_qflush;
182 GRE2IFP(sc)->if_capabilities |= IFCAP_LINKSTATE;
183 GRE2IFP(sc)->if_capenable |= IFCAP_LINKSTATE;
184 if_attach(GRE2IFP(sc));
185 bpfattach(GRE2IFP(sc), DLT_NULL, sizeof(u_int32_t));
552 GRE2IFP(sc)->if_mtu = sc->gre_mtu - sc->gre_hlen;
696 ifp = GRE2IFP(sc);