Searched refs:tcph (Results 1 – 2 of 2) sorted by relevance
| /xnu-10063.141.1/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_classifier.c | 97 #define tcph _l4._tcph in flow_pkt_classify() macro 310 tcph = __DECONST(volatile struct tcphdr *, in flow_pkt_classify() 314 CL_SKIP_ON((cls_len < l3hlen + sizeof(*tcph)) || in flow_pkt_classify() 315 (ulen < sizeof(*tcph))); in flow_pkt_classify() 316 l4hlen = (uint8_t)(tcph->th_off << 2); in flow_pkt_classify() 317 CL_SKIP_ON(l4hlen < sizeof(*tcph)); in flow_pkt_classify() 320 pkt->pkt_flow_tcp_hdr = (mach_vm_address_t)tcph; in flow_pkt_classify() 341 if (__probable(IS_P2ALIGNED(&tcph->th_sport, 4))) { in flow_pkt_classify() 343 sk_copy32_16(__DECONST(uint32_t *, &tcph->th_sport), in flow_pkt_classify() 351 bcopy(__DECONST(void *, &tcph->th_sport), in flow_pkt_classify()
|
| /xnu-10063.141.1/bsd/skywalk/nexus/ |
| H A D | nexus_traffic_rule.c | 351 #define tcph _l4._tcph in fill_inet_td() macro 442 tcph = __DECONST(volatile struct tcphdr *, (volatile uint8_t *)iph + l3hlen); in fill_inet_td() 445 if (cls_len < l3hlen + sizeof(*tcph) || ulen < sizeof(*tcph)) { in fill_inet_td() 447 "(%d < %d + %d || %d < %d)", cls_len, l3hlen, sizeof(*tcph), in fill_inet_td() 448 ulen, sizeof(*tcph)); in fill_inet_td() 452 l4hlen = (uint8_t)(tcph->th_off << 2); in fill_inet_td() 453 if (l4hlen < sizeof(*tcph)) { in fill_inet_td() 454 SK_ERR("l4hlen < sizeof(*tcph) (%d < %d)", l4hlen, sizeof(*tcph)); in fill_inet_td() 463 bcopy(__DECONST(void *, &tcph->th_sport), &td->inet_lport, in fill_inet_td() 465 bcopy(__DECONST(void *, &tcph->th_dport), &td->inet_rport, in fill_inet_td() [all …]
|