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

12345

/darwin-on-arm/xnu/bsd/net/
H A Dpf_if.c230 pfi_attach_ifnet(struct ifnet *ifp) argument
239 ifp->if_name, ifp->if_unit);
243 ifnet_lock_exclusive(ifp);
244 kif->pfik_ifp = ifp;
245 ifp->if_pf_kif = kif;
246 ifnet_lock_done(ifp);
255 pfi_detach_ifnet(struct ifnet *ifp) argument
261 if ((kif = (struct pfi_kif *)ifp->if_pf_kif) == NULL)
267 ifnet_lock_exclusive(ifp);
430 pfi_instance_add(struct ifnet *ifp, int net, int flags) argument
[all...]
H A Dif_ether.h60 errno_t ether_check_multi(ifnet_t ifp, const struct sockaddr *multicast);
H A Dkpi_interface.h415 @param ifp The interface the packet was received on.
425 typedef errno_t (*proto_media_input)(ifnet_t ifp, protocol_family_t protocol,
437 @param ifp The interface the packet was received on.
446 typedef errno_t (*proto_media_input_v2)(ifnet_t ifp, protocol_family_t protocol,
455 @param ifp The interface the packet will be sent on.
469 typedef errno_t (*proto_media_preout)(ifnet_t ifp, protocol_family_t protocol,
477 @param ifp The interface.
481 typedef void (*proto_media_event)(ifnet_t ifp, protocol_family_t protocol,
498 @param ifp The interface.
505 typedef errno_t (*proto_media_ioctl)(ifnet_t ifp, protocol_family_
[all...]
H A Dkpi_protocol.c43 typedef int (*attach_t)(struct ifnet *ifp, uint32_t protocol_family);
44 typedef int (*detach_t)(struct ifnet *ifp, uint32_t protocol_family);
420 proto_plumb(protocol_family_t protocol_family, ifnet_t ifp) argument
426 proto_family = proto_plumber_find(protocol_family, ifp->if_family);
432 ret = proto_family->attach_proto(ifp, protocol_family);
440 proto_unplumb(protocol_family_t protocol_family, ifnet_t ifp) argument
447 proto_family = proto_plumber_find(protocol_family, ifp->if_family);
449 proto_family->detach_proto(ifp, protocol_family);
451 ret = ifnet_detach_protocol(ifp, protocol_family);
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
/darwin-on-arm/xnu/bsd/netinet6/
H A Din6_mcast.c265 * Inline function which wraps assertions for a valid ifp.
344 im6o_match_group(const struct ip6_moptions *imo, const struct ifnet *ifp, argument
366 if ((ifp == NULL || (pinm->in6m_ifp == ifp)) &&
425 im6o_mc_filter(const struct ip6_moptions *imo, const struct ifnet *ifp, argument
433 VERIFY(ifp != NULL);
435 gidx = im6o_match_group(imo, ifp, group);
459 * Find and return a reference to an in6_multi record for (ifp, group),
462 * filters on ifp to listen for group.
467 in6_mc_get(struct ifnet *ifp, cons argument
1188 in6_joingroup(struct ifnet *ifp, struct in6_addr *mcaddr, int *errorp, int delay) argument
1240 in6_mc_join(struct ifnet *ifp, const struct in6_addr *mcaddr, struct in6_mfilter *imf, struct in6_multi **pinm, const int delay) argument
1391 struct ifnet *ifp; local
1614 struct ifnet *ifp; local
1868 struct ifnet *ifp; local
1902 struct ifnet *ifp; local
1936 struct ifnet *ifp; local
2281 struct ifnet *ifp; local
2563 struct ifnet *ifp; local
2608 struct ifnet *ifp; local
2940 struct ifnet *ifp; variable in typeref:struct:ifnet
[all...]
H A Dnd6.h467 #define ND_IFINFO(ifp) \
468 ((ifp)->if_index < nd_ifinfo_indexlim ? &nd_ifinfo[(ifp)->if_index] : NULL)
473 * if (ND_IFINFO(ifp) == NULL || !ND_IFINFO(ifp)->initialized)
474 * linkmtu = ifp->if_mtu;
475 * else if (ND_IFINFO(ifp)->linkmtu && ND_IFINFO(ifp)->linkmtu < ifp->if_mtu)
476 * linkmtu = ND_IFINFO(ifp)
514 struct ifnet *ifp; member in struct:nd_defrouter
[all...]
H A Dnd6_prproxy.c384 nd6_if_prproxy(struct ifnet *ifp, boolean_t enable) argument
392 ifnet_lock_shared(ifp);
393 if (enable && (ifp->if_eflags & IFEF_IPV6_ROUTER)) {
394 ifnet_lock_done(ifp);
397 ifnet_lock_done(ifp);
418 pr->ndpr_ifp != ifp) {
431 nd6_need_cache(ifp)) {
742 nd6_prproxy_ns_output(struct ifnet *ifp, struct in6_addr *daddr, argument
774 fwd->ndpr_ifp == ifp ||
818 ip6_sprintf(taddr), ifp
843 nd6_prproxy_ns_input(struct ifnet *ifp, struct in6_addr *saddr, char *lladdr, int lladdrlen, struct in6_addr *daddr, struct in6_addr *taddr) argument
974 nd6_prproxy_na_input(struct ifnet *ifp, struct in6_addr *saddr, struct in6_addr *daddr0, struct in6_addr *taddr, int flags) argument
1200 nd6_solsrc_enq(struct nd_prefix *pr, struct ifnet *ifp, struct in6_addr *saddr, struct in6_addr *taddr) argument
1265 nd6_solsrc_deq(struct nd_prefix *pr, struct in6_addr *taddr, struct in6_addr *daddr, struct ifnet **ifp) argument
[all...]
H A Dicmp6.c245 struct ifnet *ifp)
249 if (ifp == NULL)
264 if (in6_setscope(&ip6->ip6_src, ifp, NULL) != 0)
266 if (in6_setscope(&ip6->ip6_dst, ifp, NULL) != 0)
434 struct ifnet *ifp; local
441 ifp = m->m_pkthdr.rcvif;
469 IN6_LOOKUP_MULTI(&ip6->ip6_dst, ifp, inm);
1263 struct ifnet *ifp = NULL; /* for NI_QTYPE_NODEADDR */ local
1469 addrs = ni6_addrs(ni6, &ifp, subj);
1498 if (ifp !
244 icmp6_error2(struct mbuf *m, int type, int code, int param, struct ifnet *ifp) argument
1767 struct ifnet *ifp; local
1886 struct ifnet *ifp = ifp0; local
2403 struct ifnet *ifp = m->m_pkthdr.rcvif; local
2621 struct ifnet *ifp; /* my outgoing interface */ local
[all...]
H A Dip6_output.c282 struct ifnet *ifp = NULL, *origifp = NULL; local
356 ifp = dn_tag->dn_ifp;
357 if (ifp)
358 ifnet_reference(ifp);
918 if (ifp != NULL) {
919 ifnet_release(ifp);
920 ifp = NULL;
938 * in6_selectroute() might return an ifp with its reference held
942 &dst_sa, opt, im6o, ro, &ifp, &rt, 0, &ip6oa)) != 0) {
951 if (ifp !
1749 ip6_getpmtu(struct route_in6 *ro_pmtu, struct route_in6 *ro, struct ifnet *ifp, struct in6_addr *dst, u_int32_t *mtup, int *alwaysfragp) argument
3168 struct ifnet *ifp = NULL; local
3512 ip6_mloopback( struct ifnet *ifp, struct mbuf *m, struct sockaddr_in6 *dst) argument
[all...]
H A Dip6_forward.c131 struct ifnet *ifp, *origifp; /* maybe unnecessary */ local
606 ifp = rt->rt_ifp;
610 if (ip6_fw_chk_ptr(&ip6, ifp, &port, &m)) {
666 ifp = rt->rt_ifp;
684 error = pf_af_hook(ifp, NULL, &m, AF_INET6, FALSE, NULL);
697 error = nd6_output(ifp, origifp, m, dst, rt, NULL);
699 in6_ifstat_inc(ifp, ifs6_out_discard);
703 in6_ifstat_inc(ifp, ifs6_out_forward);
H A Dmld6_var.h91 #define MLIF_SILENT 0x00000001 /* Do not use MLD on this ifp */
227 #define MLD_IFINFO(ifp) ((ifp)->if_mli)
/darwin-on-arm/xnu/bsd/net/classq/
H A Dclassq_subr.c88 ifclassq_setup(struct ifnet *ifp, u_int32_t sflags, boolean_t reuse) argument
91 struct ifclassq *ifq = &ifp->if_snd;
96 ifq->ifcq_ifp = ifp;
111 if (ifp->if_eflags & IFEF_TXSTART) {
135 if ((ifp->if_eflags & IFEF_TXSTART) &&
136 ifp->if_output_sched_model != IFNET_SCHED_MODEL_DRIVER_MANAGED)
147 ifclassq_teardown(struct ifnet *ifp) argument
149 struct ifclassq *ifq = &ifp->if_snd;
202 struct ifnet *ifp = ifq->ifcq_ifp; local
206 VERIFY(ifp
294 struct ifnet *ifp = ifq->ifcq_ifp; local
673 struct ifnet *ifp = ifq->ifcq_ifp; local
[all...]
H A Dclassq_sfb.c362 sfb_alloc(struct ifnet *ifp, u_int32_t qid, u_int32_t qlim, u_int32_t flags) argument
366 VERIFY(ifp != NULL && qlim > 0);
370 log(LOG_ERR, "%s: SFB unable to allocate\n", if_name(ifp));
377 log(LOG_ERR, "%s: SFB unable to allocate bins\n", if_name(ifp));
385 if_name(ifp));
391 sp->sfb_ifp = ifp;
438 struct ifnet *ifp = sp->sfb_ifp; local
441 VERIFY(ifp != NULL);
455 eff_rate = ifnet_output_linkrate(ifp);
475 if_name(ifp), s
1114 struct ifnet *ifp = sp->sfb_ifp; local
1156 struct ifnet *ifp = sp->sfb_ifp; local
[all...]
/darwin-on-arm/xnu/bsd/kern/
H A Dnetboot.c592 struct ifnet * ifp = NULL; local
596 ifp = ifunit((char *)rootdevice);
598 if (ifp == NULL) {
600 TAILQ_FOREACH(ifp, &ifnet_head, if_link)
601 if ((ifp->if_flags & (IFF_LOOPBACK|IFF_POINTOPOINT)) == 0)
606 return (ifp);
615 struct ifnet * ifp; local
625 ifp = find_interface();
626 if (ifp == NULL) {
631 snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%s%d", ifp
[all...]
/darwin-on-arm/xnu/bsd/netinet/
H A Dip_output.c269 struct ifnet *ifp = NULL; local
339 ifp = dn_tag->dn_ifp;
598 ifp = ia->ia_ifp;
600 isbroadcast = in_broadcast(dst->sin_addr, ifp);
602 imo != NULL && (ifp = imo->imo_multicast_ifp) != NULL) {
612 IFP_TO_IA(ifp, ia);
760 ifp = ro->ro_rt->rt_ifp;
771 isbroadcast = in_broadcast(dst->sin_addr, ifp);
800 ifp = imo->imo_multicast_ifp;
815 if ((ifp
1829 ip_fragment(struct mbuf *m, struct ifnet *ifp, unsigned long mtu, int sw_csum) argument
2422 ifnet_t ifp; local
[all...]
H A Din_gif.c102 struct ifnet *ifp,
107 struct gif_softc *sc = ifnet_softc(ifp);
177 if (ifp->if_flags & IFF_LINK1)
196 sc->gif_ro.ro_rt->rt_ifp == ifp))) {
219 if (sc->gif_ro.ro_rt->rt_ifp == ifp) {
225 ifp->if_mtu = sc->gif_ro.ro_rt->rt_ifp->if_mtu
101 in_gif_output( struct ifnet *ifp, int family, struct mbuf *m, __unused struct rtentry *rt) argument
H A Din_var.h194 #define INADDR_TO_IFP(addr, ifp) \
196 /* struct ifnet *ifp; */ \
209 (ifp) = (ia == NULL) ? NULL : ia->ia_ifp; \
218 #define IFP_TO_IA(ifp, ia) \
219 /* struct ifnet *ifp; */ \
224 (ia) != NULL && (ia)->ia_ifp != (ifp); \
414 #define IN_LOOKUP_MULTI(addr, ifp, inm) \
416 /* struct ifnet *ifp; */ \
423 if ((inm)->inm_ifp == (ifp) && \
H A Dip_mroute.c82 extern int _ip_mforward(struct ip *ip, struct ifnet *ifp,
124 _ip_mforward(__unused struct ip *ip, __unused struct ifnet *ifp, argument
291 static int X_ip_mforward(struct ip *ip, struct ifnet *ifp, struct mbuf *m, struct ip_moptions *imo);
596 struct ifnet *ifp; local
611 ifp = viftable[vifi].v_ifp;
612 if_allmulti(ifp, 0);
686 struct ifnet *ifp; local
697 ifp = ifa->ifa_ifp;
718 ifp = &multicast_decap_if[vifcp->vifc_vifi];
729 if ((ifp
784 struct ifnet *ifp; local
1066 X_ip_mforward(struct ip *ip, struct ifnet *ifp, struct mbuf *m, struct ip_moptions *imo) argument
1336 ip_mdq(struct mbuf *m, struct ifnet *ifp, struct mfc *rt, vifi_t xmt_vif) argument
1584 struct ifnet *ifp = m->m_pkthdr.rcvif; local
2042 struct ifnet *ifp; local
[all...]
H A Dtcp_input.c766 struct ifnet *ifp = ((m->m_flags & M_PKTHDR) && m->m_pkthdr.rcvif != NULL) ? m->m_pkthdr.rcvif: NULL; local
790 if (ifp != NULL && ifp->if_tcp_stat != NULL)
791 atomic_add_64(&ifp->if_tcp_stat->icmp6unreach, 1);
1113 struct ifnet *ifp = ((m->m_flags & M_PKTHDR) && m->m_pkthdr.rcvif != NULL) ? m->m_pkthdr.rcvif: NULL; local
1187 if (ifp != NULL && ifp->if_tcp_stat != NULL)
1188 atomic_add_64(&ifp->if_tcp_stat->badformat, 1);
1197 if (ifp != NULL && ifp
4347 struct ifnet *ifp; local
[all...]
H A Din_dhcp.c124 struct ifnet * ifp; member in struct:dhcp_context
292 link_from_ifnet(struct ifnet * ifp) argument
294 return ((struct sockaddr_dl *)(void *)ifp->if_lladdr->ifa_addr);
303 send_packet(struct ifnet * ifp, struct dhcp_packet * pkt, int pkt_size) argument
312 return dlil_output(ifp, PF_INET, m, 0, (struct sockaddr *)&dest, 0, NULL);
544 error = send_packet(context->ifp, request, request_size);
745 error = send_packet(context->ifp, request, request_size);
813 dhcp_context_create(struct ifnet * ifp, int max_try, argument
824 dl_p = link_from_ifnet(ifp);
865 sizeof(context->ifr.ifr_name), "%s%d", ifp
923 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 Dudp_usrreq.c276 struct ifnet *ifp = (m->m_pkthdr.rcvif != NULL) ? m->m_pkthdr.rcvif: NULL; local
315 if (ifp->if_udp_stat != NULL)
316 atomic_add_64(&ifp->if_udp_stat->port0, 1);
333 if (ifp->if_udp_stat != NULL)
334 atomic_add_64(&ifp->if_udp_stat->badlength, 1);
374 if (ifp->if_udp_stat != NULL)
375 atomic_add_64(&ifp->if_udp_stat->badchksum, 1);
387 isbroadcast = in_broadcast(ip->ip_dst, ifp);
432 if (ip_restrictrecvif && ifp != NULL &&
433 (ifp
1234 struct ifnet *ifp; local
[all...]
H A Dip_input.c1091 struct ifnet *ifp = m->m_pkthdr.rcvif; local
1092 ifnet_lock_shared(ifp);
1093 TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
1104 ifnet_lock_done(ifp);
1109 ifnet_lock_done(ifp);
1114 struct ifnet *ifp = m->m_pkthdr.rcvif; local
1126 if (ip_mforward && ip_mforward(ip, ifp, m, 0) != 0) {
1148 IN_LOOKUP_MULTI(&ip->ip_dst, ifp, inm);
2273 struct ifnet *ifp = ifindex2ifnet[i]; variable in typeref:struct:ifnet
2274 if (ifp !
2295 ip_fwd_route_copyout(struct ifnet *ifp, struct route *dst) argument
2312 ip_fwd_route_copyin(struct ifnet *ifp, struct route *src) argument
2359 struct ifnet *ifp = m->m_pkthdr.rcvif; local
2727 struct ifnet *ifp; local
[all...]
/darwin-on-arm/xnu/bsd/net/pktsched/
H A Dpktsched_priq.c143 priq_alloc(struct ifnet *ifp, int how, boolean_t altq) argument
153 pif->pif_ifq = &ifp->if_snd;
159 if_name(ifp), priq_style(pif));
314 struct ifnet *ifp; local
360 ifp = PRIQIF_IFP(pif);
409 u_int64_t ifbandwidth = ifnet_output_linkrate(ifp);
440 pkttime = (int64_t)ifp->if_mtu * 1000 * 1000 * 1000 /
446 cl->cl_red = red_alloc(ifp, 0, 0,
457 rio_alloc(ifp, 0, NULL, cl->cl_qflags, pkttime);
465 cl->cl_blue = blue_alloc(ifp,
691 struct ifnet *ifp = PRIQIF_IFP(pif); local
999 struct ifnet *ifp = ifq->ifcq_ifp; local
[all...]

Completed in 205 milliseconds

12345