Searched refs:ifp (Results 51 - 75 of 96) sorted by relevance

1234

/macosx-10.5.8/xnu-1228.15.4/bsd/net/
H A Dif_ether.h55 errno_t ether_check_multi(ifnet_t ifp, const struct sockaddr *multicast);
H A Dif_ethersubr.c116 struct ifnet *ifp,
159 sdl->sdl_index = ifp->if_index;
178 ifp->if_flags |= IFF_ALLMULTI;
186 sdl->sdl_index = ifp->if_index;
115 ether_resolvemulti( struct ifnet *ifp, struct sockaddr **llsa, struct sockaddr *sa) argument
H A Dkpi_interface.h358 @param ifp The interface the packet was received on.
368 typedef errno_t (*proto_media_input)(ifnet_t ifp, protocol_family_t protocol,
379 @param ifp The interface the packet was received on.
388 typedef errno_t (*proto_media_input_v2)(ifnet_t ifp, protocol_family_t protocol,
397 @param ifp The interface the packet will be sent on.
411 typedef errno_t (*proto_media_preout)(ifnet_t ifp, protocol_family_t protocol,
419 @param ifp The interface.
423 typedef void (*proto_media_event)(ifnet_t ifp, protocol_family_t protocol,
440 @param ifp The interface.
447 typedef errno_t (*proto_media_ioctl)(ifnet_t ifp, protocol_family_
[all...]
H A Dkpi_protocol.c43 typedef int (*attach_t)(struct ifnet *ifp, u_long protocol_family);
44 typedef int (*detach_t)(struct ifnet *ifp, u_long protocol_family);
438 ifnet_t ifp)
444 proto_family = proto_plumber_find(protocol_family, ifp->if_family);
450 ret = proto_family->attach_proto(ifp, protocol_family);
460 ifnet_t ifp)
467 proto_family = proto_plumber_find(protocol_family, ifp->if_family);
469 proto_family->detach_proto(ifp, protocol_family);
471 ret = ifnet_detach_protocol(ifp, protocol_family);
436 proto_plumb( protocol_family_t protocol_family, ifnet_t ifp) argument
458 proto_unplumb( protocol_family_t protocol_family, ifnet_t ifp) argument
H A Dif_media.h87 typedef int (*ifm_change_cb_t)(struct ifnet *ifp);
88 typedef void (*ifm_stat_cb_t)(struct ifnet *ifp, struct ifmediareq *req);
128 int ifmedia_ioctl(struct ifnet *ifp, struct ifreq *ifr,
H A Dif_media.c223 struct ifnet *ifp,
232 if (ifp == NULL || ifr == NULL || ifm == NULL)
277 ifp->if_xname);
285 error = (*ifm->ifm_change)(ifp);
308 (*ifm->ifm_status)(ifp, ifmr);
222 ifmedia_ioctl( struct ifnet *ifp, struct ifreq *ifr, struct ifmedia *ifm, u_long cmd) argument
H A Dif_pppvar.h141 int pppoutput(struct ifnet *ifp, struct mbuf *m0,
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/
H A Dip6_output.c172 struct ifnet *ifp, *origifp; local
637 * ifp must point it.
651 /* XXX in6_ifstat_inc(ifp, ifs6_out_discard); */
655 ifp = ro->ro_rt->rt_ifp;
662 in6_ifstat_inc(ifp, ifs6_out_request);
673 if (!(ifp->if_flags & IFF_LOOPBACK)
674 && ifp->if_index != opt->ip6po_pktinfo->ipi6_ifindex) {
676 in6_ifstat_inc(ifp, ifs6_out_discard);
693 ifp = NULL;
697 ifp
1985 struct ifnet *ifp; local
2647 ip6_mloopback( struct ifnet *ifp, struct mbuf *m, struct sockaddr_in6 *dst) argument
[all...]
H A Din6_var.h502 #define in6_ifstat_inc(ifp, tag) \
504 int _z_index = ifp ? ifp->if_index : 0; \
525 #define IFP_TO_IA6(ifp, ia) \
526 /* struct ifnet *ifp; */ \
530 for (ifa = (ifp)->if_addrlist.tqh_first; ifa; ifa = ifa->ifa_list.tqe_next) { \
540 * Multi-cast membership entry. One for each group/ifp that a PCB
575 #define IN6_LOOKUP_MULTI(addr, ifp, in6m) \
577 /* struct ifnet *ifp; */ \
581 for (_ifma = (ifp)
[all...]
H A Dicmp6.c1179 struct ifnet *ifp = NULL; /* for NI_QTYPE_NODEADDR */ local
1366 addrs = ni6_addrs(ni6, &ifp, subj);
1457 copied = ni6_store_addrs(ni6, nni6, ifp, lenlim);
1655 struct ifnet *ifp; local
1679 TAILQ_FOREACH(ifp, &ifnet_head, if_list) {
1681 ifnet_lock_shared(ifp);
1682 TAILQ_FOREACH(ifa, &ifp->if_addrlist, ifa_list)
1734 ifnet_lock_done(ifp);
1736 *ifpp = ifp;
1754 struct ifnet *ifp local
2228 struct ifnet *ifp = m->m_pkthdr.rcvif; local
2438 struct ifnet *ifp; /* my outgoing interface */ local
[all...]
H A Din6_pcb.c381 struct ifnet *ifp = NULL; local
392 if (in6_embedscope(&sin6->sin6_addr, sin6, inp, &ifp) != 0)
427 ifp = inp->in6p_route.ro_rt->rt_ifp;
592 struct ifnet *ifp = mopts ? mopts->im6o_multicast_ifp : NULL;
594 if (ifp == NULL && IN6_IS_ADDR_MC_NODELOCAL(dst)) {
595 ifp = lo_ifp;
598 if (ifp) {
599 ia6 = in6_ifawithscope(ifp, dst);
704 struct ifnet *ifp)
708 else if (ifp)
1099 in6_pcbpurgeif0( struct in6pcb *head, struct ifnet *ifp) argument
1197 in6_pcblookup_hash( struct inpcbinfo *pcbinfo, struct in6_addr *faddr, u_int fport_arg, struct in6_addr *laddr, u_int lport_arg, int wildcard, __unused struct ifnet *ifp) argument
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dnetboot.c595 struct ifnet * ifp = NULL; local
598 ifp = ifunit((char *)rootdevice);
600 if (ifp == NULL) {
602 TAILQ_FOREACH(ifp, &ifnet_head, if_link)
603 if ((ifp->if_flags & (IFF_LOOPBACK|IFF_POINTOPOINT)) == 0)
607 return (ifp);
616 struct ifnet * ifp; local
626 ifp = find_interface();
627 if (ifp == NULL) {
632 snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%s%d", ifp
[all...]
H A Dsocket_info.c190 struct ifnet *ifp = ndrv_cb->nd_if; local
192 ndrvsi->ndrvsi_if_family = ifp->if_family;
193 ndrvsi->ndrvsi_if_unit = ifp->if_unit;
194 strlcpy(ndrvsi->ndrvsi_if_name, ifp->if_name, IFNAMSIZ);
/macosx-10.5.8/xnu-1228.15.4/libkern/uuid/
H A Duuid.c53 struct ifnet *ifp; local
58 TAILQ_FOREACH(ifp, &ifnet_head, if_link) {
59 TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Din_gif.c104 struct ifnet *ifp,
109 struct gif_softc *sc = ifnet_softc(ifp);
179 if (ifp->if_flags & IFF_LINK1)
198 sc->gif_ro.ro_rt->rt_ifp == ifp))) {
220 if (sc->gif_ro.ro_rt->rt_ifp == ifp) {
225 ifp->if_mtu = sc->gif_ro.ro_rt->rt_ifp->if_mtu
103 in_gif_output( struct ifnet *ifp, int family, struct mbuf *m, __unused struct rtentry *rt) argument
H A Din_dhcp.c124 struct ifnet * ifp; member in struct:dhcp_context
298 link_from_ifnet(struct ifnet * ifp) argument
302 ifnet_lock_shared(ifp);
303 TAILQ_FOREACH(addr, &ifp->if_addrhead, ifa_link) {
307 ifnet_lock_done(ifp);
311 ifnet_lock_done(ifp);
321 send_packet(struct ifnet * ifp, struct dhcp_packet * pkt, int pkt_size) argument
330 return dlil_output(ifp, PF_INET, m, 0, (struct sockaddr *)&dest, 0);
562 error = send_packet(context->ifp, request, request_size);
763 error = send_packet(context->ifp, reques
831 dhcp_context_create(struct ifnet * ifp, int max_try, struct proc * procp, int * error_p) argument
941 dhcp(struct ifnet * ifp, struct in_addr * iaddr_p, int max_try, struct in_addr * netmask_p, struct in_addr * router_p, struct proc * procp) argument
[all...]
H A Dip_mroute.c92 extern int _ip_mforward(struct ip *ip, struct ifnet *ifp,
134 _ip_mforward(__unused struct ip *ip, __unused struct ifnet *ifp, argument
301 static int X_ip_mforward(struct ip *ip, struct ifnet *ifp, struct mbuf *m, struct ip_moptions *imo);
606 struct ifnet *ifp; local
621 ifp = viftable[vifi].v_ifp;
622 if_allmulti(ifp, 0);
696 struct ifnet *ifp; local
707 ifp = ifa->ifa_ifp;
728 ifp = &multicast_decap_if[vifcp->vifc_vifi];
739 if ((ifp
794 struct ifnet *ifp; local
1076 X_ip_mforward(struct ip *ip, struct ifnet *ifp, struct mbuf *m, struct ip_moptions *imo) argument
1341 ip_mdq(struct mbuf *m, struct ifnet *ifp, struct mfc *rt, vifi_t xmt_vif) argument
1585 struct ifnet *ifp = m->m_pkthdr.rcvif; local
2034 struct ifnet *ifp; local
[all...]
H A Dip_dummynet.h161 struct ifnet *ifp; /* interface, for ip_output */ member in struct:dn_pkt_tag
371 * is stored below, whereas the ifp is filled when the rule is configured.
374 struct ifnet *ifp ; member in struct:dn_pipe
375 int ready ; /* set if ifp != NULL and we got a signal from it */
H A Dip_dummynet.c212 int if_tx_rdy(struct ifnet *ifp);
502 m = bdg_forward_ptr(m, pkt->ifp);
654 if (p->ifp && p->ifp->if_snd.ifq_head != NULL)
840 if_tx_rdy(struct ifnet *ifp) argument
846 if (p->ifp == ifp)
850 snprintf(buf, sizeof(buf), "%s%d",ifp->if_name, ifp->if_unit);
853 p->ifp
[all...]
H A Dip_mroute.h259 struct ifnet *ifp; /* Interface pkt came in on */ member in struct:rtdetq
/macosx-10.5.8/xnu-1228.15.4/bsd/netat/
H A Ddrv_dep.c208 struct ifnet *ifp; local
229 ifp = m->m_pkthdr.rcvif;
231 if (ifID->aa_ifp && (ifID->aa_ifp == ifp))
H A Dddp.h200 struct ifnet *ifp, struct proc *p);
/macosx-10.5.8/xnu-1228.15.4/security/
H A Dmac_framework.h141 int mac_bpfdesc_check_receive(struct bpf_d *bpf_d, struct ifnet *ifp);
198 int mac_ifnet_check_transmit(struct ifnet *ifp, struct mbuf *mbuf,
200 void mac_ifnet_label_associate(struct ifnet *ifp);
201 void mac_ifnet_label_destroy(struct ifnet *ifp);
203 struct ifnet *ifp);
204 void mac_ifnet_label_init(struct ifnet *ifp);
205 void mac_ifnet_label_recycle(struct ifnet *ifp);
207 struct ifnet *ifp);
229 void mac_mbuf_label_associate_ifnet(struct ifnet *ifp, struct mbuf *m);
232 void mac_mbuf_label_associate_linklayer(struct ifnet *ifp, struc
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/
H A Ddb_trace.c370 struct interrupt_frame *ifp; local
401 ifp = (struct interrupt_frame *)(*lfp);
402 *fp = ifp->if_frame;
403 if (ifp->if_iretaddr == db_return_to_iret_symbol_value) {
404 *ip = ((x86_saved_state32_t *)ifp->if_edx)->eip;
406 *ip = (db_addr_t)ifp->if_eip;
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/
H A Dprotosw.h259 struct ifnet *ifp, struct proc *p);
307 struct ifnet *ifp, struct proc *p);

Completed in 150 milliseconds

1234