| /xnu-12377.1.9/bsd/netinet/ |
| H A D | ip_ecn.c | 165 ip46_ecn_ingress(int mode, u_int32_t *outer, const u_int8_t *tos) in ip46_ecn_ingress() argument 169 if (!outer || !tos) { in ip46_ecn_ingress() 173 ip_ecn_ingress(mode, &outer8, tos); in ip46_ecn_ingress() 183 ip46_ecn_egress(int mode, const u_int32_t *outer, u_int8_t *tos) in ip46_ecn_egress() argument 187 if (!outer || !tos) { in ip46_ecn_egress() 192 return ip_ecn_egress(mode, &outer8, tos); in ip46_ecn_egress()
|
| H A D | in_gif.c | 109 u_int8_t tos; in in_gif_output() local 141 tos = ip->ip_tos; in in_gif_output() 156 tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff; in in_gif_output() 182 ip_ecn_ingress(ECN_NORMAL, &iphdr.ip_tos, &tos); in in_gif_output() 184 ip_ecn_ingress(ECN_NOCARE, &iphdr.ip_tos, &tos); in in_gif_output()
|
| H A D | raw_ip.c | 396 int tos = IPTOS_UNSPEC; in rip_output() local 471 tos = ip_tos_from_control(control); in rip_output() 535 if (tos != IPTOS_UNSPEC) { in rip_output() 536 ip->ip_tos = (uint8_t)(tos & IPTOS_MASK); in rip_output()
|
| H A D | in_tclass.c | 1026 int tos = IPTOS_UNSPEC; in ip_tos_from_control() local 1039 tos = *(int *)(void *)CMSG_DATA(cm) & IPTOS_MASK; in ip_tos_from_control() 1045 return tos; in ip_tos_from_control()
|
| H A D | udp_usrreq.c | 1594 int tos = IPTOS_UNSPEC; in udp_output() local 1635 tos = ip_tos_from_control(control); in udp_output() 1934 if (tos != IPTOS_UNSPEC) { in udp_output() 1935 ((struct ip *)ui)->ip_tos = (uint8_t)(tos & IPTOS_MASK); in udp_output()
|
| /xnu-12377.1.9/bsd/net/ |
| H A D | if_stf.c | 511 u_int8_t tos; in stf_pre_output() local 554 tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff; in stf_pre_output() 600 ip_ecn_ingress(ECN_NORMAL, &ip->ip_tos, &tos); in stf_pre_output() 602 ip_ecn_ingress(ECN_NOCARE, &ip->ip_tos, &tos); in stf_pre_output()
|
| H A D | nat464_utils.c | 635 nat464_translate_64(pbuf_t *pbuf, int off, uint8_t tos, in nat464_translate_64() argument 682 ip4->ip_tos = tos; in nat464_translate_64() 740 nat464_translate_46(pbuf_t *pbuf, uint16_t off, uint8_t tos, in nat464_translate_46() argument 758 ip6->ip6_flow = htonl((6 << 28) | (tos << 20)); in nat464_translate_46()
|
| H A D | dlil_subr.c | 850 uint8_t tos = 0; in dlil_clat64() local 928 tos = (ntohl(ip6h->ip6_flow) >> 20) & 0xff; in dlil_clat64() 935 error = (nat464_translate_64(pbuf, off, tos, &proto, in dlil_clat64()
|
| H A D | pf.c | 4831 ip4->ip_tos = pd->tos & htonl(0x0ff00000); in pf_nat64_ipv6() 4880 ip6->ip6_vfc = htonl((6 << 28) | (pd->tos << 20)); in pf_nat64_ipv4() 5312 } else if ((r->rule_flag & PFRULE_TOS) && r->tos && in pf_test_rule() 5313 !(r->tos & pd->tos)) { in pf_test_rule() 5315 } else if ((r->rule_flag & PFRULE_DSCP) && r->tos && in pf_test_rule() 5316 !(r->tos & (pd->tos & DSCP_MASK))) { in pf_test_rule() 5318 } else if ((r->rule_flag & PFRULE_SC) && r->tos && in pf_test_rule() 5319 ((r->tos & SCIDX_MASK) != pd->sc)) { in pf_test_rule() 6349 } else if (r->tos && !(r->tos == pd->tos)) { in pf_test_dummynet() 6527 } else if ((r->rule_flag & PFRULE_TOS) && r->tos && in pf_test_fragment() [all …]
|
| H A D | pfvar.h | 813 u_int8_t tos; member 1459 u_int8_t tos; member
|
| H A D | pf_ioctl.c | 1106 PF_MD5_UPD(rule, tos); in pf_hash_rule()
|
| /xnu-12377.1.9/bsd/sys/ |
| H A D | gmon.h | 207 tostruct_t *tos; member
|
| /xnu-12377.1.9/bsd/netinet6/ |
| H A D | ah_input.c | 378 u_int8_t tos, otos; in ah4_input() local 386 tos = ip->ip_tos; in ah4_input() 398 if (ip_ecn_egress(ip4_ipsec_ecn, &tos, &ip->ip_tos) == 0) { in ah4_input()
|
| H A D | esp_input.c | 581 u_int8_t tos, otos; in esp4_input_extended() local 585 tos = ip->ip_tos; in esp4_input_extended() 601 if (ip_ecn_egress(ip4_ipsec_ecn, &tos, &ip->ip_tos) == 0) { in esp4_input_extended() 654 if (ip64_ecn_egress(ip4_ipsec_ecn, &tos, &ip6->ip6_flow) == 0) { in esp4_input_extended()
|
| H A D | ip6_output.c | 2694 u_int8_t tos = (in6p->inp_ip_tos & ~IPTOS_ECN_MASK); in ip6_ctloutput() local 2696 in6p->inp_ip_tos = tos | ecn; in ip6_ctloutput()
|
| /xnu-12377.1.9/osfmk/mach/i386/ |
| H A D | _structs.h | 185 tos :3, variable
|