• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/net/

Lines Matching defs:ifp

115 #define GIF_MAXUNIT	0x7fff	/* ifp->if_unit is only 15 bits */
127 static errno_t gif_output(ifnet_t ifp, mbuf_t m);
128 static errno_t gif_input(ifnet_t ifp, protocol_family_t protocol_family,
130 static errno_t gif_ioctl(ifnet_t ifp, u_int32_t cmd, void *data);
172 ifnet_t ifp,
178 *protocol_family = ((struct gif_softc*)ifnet_softc(ifp))->gif_proto;
185 ifnet_t ifp,
191 struct gif_softc* gif = ifnet_softc(ifp);
194 printf("gif_add_proto: request add_proto for gif%d\n", ifnet_unit(ifp));
203 ifnet_t ifp,
206 if (((struct gif_softc*)ifnet_softc(ifp))->gif_proto == protocol_family)
207 ((struct gif_softc*)ifnet_softc(ifp))->gif_proto = 0;
215 ifnet_t ifp,
224 stat = ifnet_attach_protocol(ifp, protocol_family, &reg);
261 ifnet_t ifp,
265 struct gif_softc *sc = ifnet_softc(ifp);
424 ifnet_t ifp,
427 struct gif_softc *sc = ifnet_softc(ifp);
437 if (!(ifnet_flags(ifp) & IFF_UP) ||
439 ifnet_touch_lastchange(ifp);
445 bpf_tap_out(ifp, 0, m, &sc->gif_proto, sizeof(sc->gif_proto));
455 error = in_gif_output(ifp, sc->gif_proto, m, NULL);
460 error = in6_gif_output(ifp, sc->gif_proto, m, NULL);
471 ifnet_stat_increment_out(ifp, 0, 0, 1);
474 ifnet_stat_increment_out(ifp, 1, m->m_pkthdr.len, 0);
486 ifnet_t ifp,
492 struct gif_softc *sc = ifnet_softc(ifp);
494 bpf_tap_in(ifp, 0, m, &sc->gif_proto, sizeof(sc->gif_proto));
509 ifnet_stat_increment_in(ifp, 1, m->m_pkthdr.len, 0);
517 ifnet_t ifp,
521 struct gif_softc *sc = ifnet_softc(ifp);
551 ifnet_set_mtu(ifp, mtu);
700 ifnet_set_flags(ifp, IFF_RUNNING | IFF_UP, IFF_RUNNING | IFF_UP);