Home
last modified time | relevance | path

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

/xnu-12377.61.12/bsd/netinet/
H A Dip_ecn.c165 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 Din_gif.c109 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 Draw_ip.c396 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 Din_tclass.c1026 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 Dudp_usrreq.c1631 int tos = IPTOS_UNSPEC; in udp_output() local
1672 tos = ip_tos_from_control(control); in udp_output()
1971 if (tos != IPTOS_UNSPEC) { in udp_output()
1972 ((struct ip *)ui)->ip_tos = (uint8_t)(tos & IPTOS_MASK); in udp_output()
/xnu-12377.61.12/bsd/net/
H A Dif_stf.c511 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 Dnat464_utils.c635 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 Ddlil_subr.c850 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 Dpf.c4831 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 Dpfvar.h813 u_int8_t tos; member
1459 u_int8_t tos; member
H A Dpf_ioctl.c1106 PF_MD5_UPD(rule, tos); in pf_hash_rule()
/xnu-12377.61.12/bsd/sys/
H A Dgmon.h207 tostruct_t *tos; member
/xnu-12377.61.12/bsd/netinet6/
H A Dah_input.c378 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 Desp_input.c581 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 Dip6_output.c2694 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.61.12/osfmk/mach/i386/
H A D_structs.h185 tos :3, variable