Home
last modified time | relevance | path

Searched refs:IPTOS_ECN_MASK (Results 1 – 13 of 13) sorted by relevance

/xnu-8019.80.24/bsd/netinet/
H A Dip_ecn.c91 *outer &= ~IPTOS_ECN_MASK; in ip_ecn_ingress()
112 if (((*outer & IPTOS_ECN_MASK) == IPTOS_ECN_CE) && in ip_ecn_egress()
113 ((*inner & IPTOS_ECN_MASK) != IPTOS_ECN_NOTECT)) { in ip_ecn_egress()
115 } else if ((*outer & IPTOS_ECN_MASK) == IPTOS_ECN_ECT1 && in ip_ecn_egress()
116 (*inner & IPTOS_ECN_MASK) == IPTOS_ECN_ECT0) { in ip_ecn_egress()
H A Dip.h149 #define IPTOS_ECN_MASK 0x03 /* ECN field mask */ macro
H A Dip_output.c566 ((ip->ip_tos & IPTOS_ECN_MASK) == IPTOS_ECN_ECT1 || in ip_output_list()
567 (ip->ip_tos & IPTOS_ECN_MASK) == IPTOS_ECN_ECT0)) { in ip_output_list()
568 ip->ip_tos = (ip->ip_tos & ~IPTOS_ECN_MASK) | IPTOS_ECN_CE; in ip_output_list()
1542 ip->ip_tos &= IPTOS_ECN_MASK; in ip_output_list()
H A Dip_input.c2380 ecn = ip->ip_tos & IPTOS_ECN_MASK; in ip_reass()
2381 ecn0 = GETIP(fp->ipq_frags)->ip_tos & IPTOS_ECN_MASK; in ip_reass()
H A Dtcp_output.c2573 ip->ip_tos |= (inp->inp_ip_tos & ~IPTOS_ECN_MASK);/* XXX */ in tcp_output()
H A Dtcp_input.c1977 ip_ecn = (ntohl(ip6->ip6_flow) >> 20) & IPTOS_ECN_MASK; in tcp_input()
2008 ip_ecn = (ip->ip_tos & IPTOS_ECN_MASK); in tcp_input()
H A Dudp_usrreq.c2954 ip->ip_tos |= (inp->inp_ip_tos & ~IPTOS_ECN_MASK); in udp_fill_keepalive_offload_frames()
H A Dtcp_subr.c3917 ip->ip_tos |= (inp->inp_ip_tos & ~IPTOS_ECN_MASK); in tcp_make_keepalive_frame()
/xnu-8019.80.24/bsd/net/classq/
H A Dclassq_util.c258 if ((ip->ip_tos & IPTOS_ECN_MASK) == IPTOS_ECN_NOTECT) { in mark_ecn()
261 if ((ip->ip_tos & IPTOS_ECN_MASK) == IPTOS_ECN_CE) { in mark_ecn()
298 if ((flowlabel & (IPTOS_ECN_MASK << 20)) == in mark_ecn()
302 if ((flowlabel & (IPTOS_ECN_MASK << 20)) == in mark_ecn()
/xnu-8019.80.24/bsd/skywalk/nexus/flowswitch/
H A Dfsw_qos.c50 ip->ip_tos &= IPTOS_ECN_MASK; in fsw_qos_set_ip_tos()
/xnu-8019.80.24/bsd/netinet6/
H A Dfrag6.c498 (ntohl(ip6->ip6_flow) >> 20) & IPTOS_ECN_MASK; in frag6_input()
630 ecn = (ntohl(ip6->ip6_flow) >> 20) & IPTOS_ECN_MASK; in frag6_input()
H A Dip6_output.c2625 u_int8_t tos = (in6p->inp_ip_tos & ~IPTOS_ECN_MASK); in ip6_ctloutput()
2626 u_int8_t ecn = optval & IPTOS_ECN_MASK; in ip6_ctloutput()
/xnu-8019.80.24/bsd/net/
H A Ddlil.c4785 if (__probable((ip->ip_tos & ~IPTOS_ECN_MASK) == 0)) { in ifnet_mcast_clear_dscp()
4791 ip->ip_tos &= IPTOS_ECN_MASK; in ifnet_mcast_clear_dscp()