Home
last modified time | relevance | path

Searched refs:tcph (Results 1 – 2 of 2) sorted by relevance

/xnu-12377.61.12/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_classifier.c97 #define tcph _l4._tcph in flow_pkt_classify() macro
338 tcph = __DECONST(volatile struct tcphdr *, in flow_pkt_classify()
340 l4hlen = (uint8_t)(tcph->th_off << 2); in flow_pkt_classify()
341 CL_SKIP_ON(l4hlen < sizeof(*tcph)); in flow_pkt_classify()
344 pkt->pkt_flow_tcp_hdr = (mach_vm_address_t)tcph; in flow_pkt_classify()
367 if (__probable(IS_P2ALIGNED(&tcph->th_sport, 4))) { in flow_pkt_classify()
373 __DECONST(uint32_t *, &tcph->th_sport), in flow_pkt_classify()
390 bcopy(__DECONST(struct __flow_l4_tcp *__single, tcph), in flow_pkt_classify()
/xnu-12377.61.12/bsd/skywalk/nexus/
H A Dnexus_traffic_rule_inet.c174 #define tcph _l4._tcph in fill_inet_td() macro
265 tcph = __DECONST(volatile struct tcphdr *, (volatile uint8_t *)iph + l3hlen); in fill_inet_td()
268 if (cls_len < l3hlen + sizeof(*tcph) || ulen < sizeof(*tcph)) { in fill_inet_td()
270 "(%d < %d + %lu || %d < %lu)", cls_len, l3hlen, sizeof(*tcph), in fill_inet_td()
271 ulen, sizeof(*tcph)); in fill_inet_td()
275 l4hlen = (uint8_t)(tcph->th_off << 2); in fill_inet_td()
276 if (l4hlen < sizeof(*tcph)) { in fill_inet_td()
277 SK_ERR("l4hlen < sizeof(*tcph) (%d < %lu)", l4hlen, sizeof(*tcph)); in fill_inet_td()
286 bcopy(__DECONST(void *, &tcph->th_sport), &td->inet_lport, in fill_inet_td()
288 bcopy(__DECONST(void *, &tcph->th_dport), &td->inet_rport, in fill_inet_td()
[all …]