Home
last modified time | relevance | path

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

/freebsd/sys/netinet/
H A Dip_ecn.c129 *outer &= ~IPTOS_ECN_MASK; in ip_ecn_ingress()
150 if ((*outer & IPTOS_ECN_MASK) == IPTOS_ECN_ECT0) { in ip_ecn_egress()
152 if ((*inner & IPTOS_ECN_MASK) == IPTOS_ECN_ECT1) in ip_ecn_egress()
155 if ((*inner & IPTOS_ECN_MASK) == IPTOS_ECN_NOTECT) in ip_ecn_egress()
158 } else if ((*outer & IPTOS_ECN_MASK) == IPTOS_ECN_ECT1) { in ip_ecn_egress()
160 if (((*inner & IPTOS_ECN_MASK) == IPTOS_ECN_CE) || in ip_ecn_egress()
161 ((*inner & IPTOS_ECN_MASK) == IPTOS_ECN_NOTECT)) in ip_ecn_egress()
164 if ((*inner & IPTOS_ECN_MASK) == IPTOS_ECN_ECT0) in ip_ecn_egress()
170 if ((*outer & IPTOS_ECN_MASK) == IPTOS_ECN_CE) { in ip_ecn_egress()
172 if ((*inner & IPTOS_ECN_MASK) == IPTOS_ECN_NOTECT) in ip_ecn_egress()
[all …]
H A Dtcp_ecn.c203 switch (iptos & IPTOS_ECN_MASK) { in tcp_ecn_input_syn_sent()
269 switch (iptos & IPTOS_ECN_MASK) { in tcp_ecn_input_parallel_syn()
297 switch (iptos & IPTOS_ECN_MASK) { in tcp_ecn_input_segment()
311 if ((iptos & IPTOS_ECN_MASK) == IPTOS_ECN_CE) in tcp_ecn_input_segment()
361 if ((iptos & IPTOS_ECN_MASK) == IPTOS_ECN_CE) in tcp_ecn_input_segment()
499 switch (iptos & IPTOS_ECN_MASK) { in tcp_ecn_syncache_add()
523 switch (iptos & IPTOS_ECN_MASK) { in tcp_ecn_syncache_add()
544 switch (iptos & IPTOS_ECN_MASK) { in tcp_ecn_syncache_add()
H A Dip.h133 #define IPTOS_ECN_MASK 0x03 /* ECN field mask */ macro
H A Dip_reass.c376 ecn = ip->ip_tos & IPTOS_ECN_MASK; in ip_reass()
377 ecn0 = GETIP(fp->ipq_frags)->ip_tos & IPTOS_ECN_MASK; in ip_reass()
H A Dtcp_output.c1213 ip6->ip6_flow &= ~htonl(IPTOS_ECN_MASK << IPV6_FLOWLABEL_LEN); in tcp_default_output()
1219 ip->ip_tos &= ~IPTOS_ECN_MASK; in tcp_default_output()
H A Dtcp_usrreq.c1655 inp->inp_ip_tos &= ~IPTOS_ECN_MASK; in tcp_ctloutput_set()
H A Dtcp_input.c522 switch (iptos & IPTOS_ECN_MASK) { in cc_ecnpkt_handler_flags()
H A Dtcp_subr.c2000 ip->ip_tos = inp->inp_ip_tos & ~IPTOS_ECN_MASK; in tcp_respond()
/freebsd/sys/net/altq/
H A Daltq_red.c471 if ((ip->ip_tos & IPTOS_ECN_MASK) == IPTOS_ECN_NOTECT) in mark_ecn()
473 if ((ip->ip_tos & IPTOS_ECN_MASK) == IPTOS_ECN_CE) in mark_ecn()
503 if ((flowlabel & (IPTOS_ECN_MASK << 20)) == in mark_ecn()
506 if ((flowlabel & (IPTOS_ECN_MASK << 20)) == in mark_ecn()
/freebsd/sys/netpfil/ipfw/
H A Dip_dn_io.c434 if ((ip->ip_tos & IPTOS_ECN_MASK) == IPTOS_ECN_NOTECT) in ecn_mark()
436 if ((ip->ip_tos & IPTOS_ECN_MASK) == IPTOS_ECN_CE) in ecn_mark()
457 if ((flowlabel & (IPTOS_ECN_MASK << 20)) == in ecn_mark()
460 if ((flowlabel & (IPTOS_ECN_MASK << 20)) == in ecn_mark()
/freebsd/usr.sbin/traceroute/
H A Dtraceroute.c760 outip->ip_tos &= ~IPTOS_ECN_MASK; in main()
1062 u_char ecn = hip->ip_tos & IPTOS_ECN_MASK; in main()
/freebsd/sys/net/
H A Dif_geneve.c2563 ecn = (tos & IPTOS_ECN_MASK); in geneve_encap4()
2566 ip->ip_tos |= (tos & ~IPTOS_ECN_MASK); in geneve_encap4()
2692 ecn = (tos & IPTOS_ECN_MASK); in geneve_encap6()
2986 info.ecn = (iphdr->ip_tos & IPTOS_ECN_MASK); in geneve_udp_input()
/freebsd/sys/netpfil/pf/
H A Dpf_norm.c2263 h->ip_tos = pd->act.set_tos | (h->ip_tos & IPTOS_ECN_MASK); in pf_scrub()
2264 pd->tos = h->ip_tos & ~IPTOS_ECN_MASK; in pf_scrub()
H A Dpf.c11154 pd->tos = h->ip_tos & ~IPTOS_ECN_MASK; in pf_setup_pdesc()
/freebsd/usr.sbin/traceroute6/
H A Dtraceroute6.c592 tclass &= ~IPTOS_ECN_MASK; in main()
/freebsd/sys/netinet/tcp_stacks/
H A Drack.c18552 ip6->ip6_flow &= ~htonl(IPTOS_ECN_MASK << 20); in rack_fast_rsm_output()
18558 ip->ip_tos &= ~IPTOS_ECN_MASK; in rack_fast_rsm_output()
19113 ip6->ip6_flow &= ~htonl(IPTOS_ECN_MASK << 20); in rack_fast_output()
19120 ip->ip_tos &= ~IPTOS_ECN_MASK; in rack_fast_output()
21589 ip6->ip6_flow &= ~htonl(IPTOS_ECN_MASK << 20); in rack_output()
21596 ip->ip_tos &= ~IPTOS_ECN_MASK; in rack_output()