Searched refs:_ifp (Results 1 - 9 of 9) sorted by relevance

/macosx-10.10/xnu-2782.1.97/bsd/net/
H A Dif_var.h698 #define IF_TCP_STATINC(_ifp, _s) do { \
699 if ((_ifp)->if_tcp_stat != NULL) \
700 atomic_add_64(&(_ifp)->if_tcp_stat->_s, 1); \
703 #define IF_UDP_STATINC(_ifp, _s) do { \
704 if ((_ifp)->if_udp_stat != NULL) \
705 atomic_add_64(&(_ifp)->if_udp_stat->_s, 1); \
972 #define IFNET_IS_CELLULAR(_ifp) \
973 ((_ifp)->if_type == IFT_CELLULAR || \
974 (_ifp)->if_delegated.type == IFT_CELLULAR)
989 #define IFNET_IS_WIFI(_ifp) \
[all...]
H A Ddlil.c4423 struct ifnet *_ifp; local
4426 TAILQ_FOREACH(_ifp, &ifnet_head, if_link) {
4427 if (_ifp == ifp)
4430 return (_ifp != NULL);
/macosx-10.10/xnu-2782.1.97/bsd/netinet6/
H A Din6_var.h323 #define IN6_IFEXTRA(_ifp) ((struct in6_ifextra *)(_ifp->if_inet6data))
764 #define in6_ifstat_inc_common(_ifp, _tag, _atomic) do { \
765 if (_ifp != NULL && IN6_IFEXTRA(_ifp) != NULL) { \
768 &IN6_IFEXTRA(_ifp)->in6_ifstat._tag, 1); \
770 IN6_IFEXTRA(_ifp)->in6_ifstat._tag++; \
775 #define in6_ifstat_inc(_ifp, _tag) \
776 in6_ifstat_inc_common(_ifp, _tag, TRUE)
779 #define in6_ifstat_inc_na(_ifp, _ta
[all...]
H A Din6_src.c1061 #define CHECK_RESTRICTIONS(_ip6oa, _ifp) \
1063 IFNET_IS_CELLULAR(_ifp)) || \
1065 IFNET_IS_EXPENSIVE(_ifp)) || \
1067 IFNET_IS_AWDL_RESTRICTED(_ifp)))
H A Dip6_input.c238 #define IP6_HDR_ALIGNMENT_FIXUP(_m, _ifp, _action) do { } while (0)
240 #define IP6_HDR_ALIGNMENT_FIXUP(_m, _ifp, _action) do { \
243 struct ifnet *__ifp = (_ifp); \
/macosx-10.10/xnu-2782.1.97/bsd/sys/
H A Dmbuf.h567 #define TSO_IPV4_OK(_ifp, _m) \
568 (((_ifp)->if_hwassist & IFNET_TSO_IPV4) && \
571 #define TSO_IPV4_NOTOK(_ifp, _m) \
572 (!((_ifp)->if_hwassist & IFNET_TSO_IPV4) && \
575 #define TSO_IPV6_OK(_ifp, _m) \
576 (((_ifp)->if_hwassist & IFNET_TSO_IPV6) && \
579 #define TSO_IPV6_NOTOK(_ifp, _m) \
580 (!((_ifp)->if_hwassist & IFNET_TSO_IPV6) && \
/macosx-10.10/xnu-2782.1.97/bsd/netinet/
H A Dicmp6.h731 #define icmp6_ifstat_inc(_ifp, _tag) do { \
732 if (_ifp != NULL && IN6_IFEXTRA(_ifp) != NULL) { \
733 IN6_IFEXTRA(_ifp)->icmp6_ifstat._tag++; \
H A Dip_output.c324 #define IP_CHECK_RESTRICTIONS(_ifp, _ipobf) \
325 (((_ipobf).nocell && IFNET_IS_CELLULAR(_ifp)) || \
326 ((_ipobf).noexpensive && IFNET_IS_EXPENSIVE(_ifp)) || \
327 (!(_ipobf).awdl_unrestricted && IFNET_IS_AWDL_RESTRICTED(_ifp)))
H A Dip_input.c366 #define IP_HDR_ALIGNMENT_FIXUP(_m, _ifp, _action) do { } while (0)
368 #define IP_HDR_ALIGNMENT_FIXUP(_m, _ifp, _action) do { \
371 struct ifnet *__ifp = (_ifp); \

Completed in 424 milliseconds