Home
last modified time | relevance | path

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

/xnu-11417.121.6/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_classifier.c110 uint8_t l4hlen = 0; /* TCP/UDP header length */ in flow_pkt_classify() local
340 l4hlen = (uint8_t)(tcph->th_off << 2); in flow_pkt_classify()
341 CL_SKIP_ON(l4hlen < sizeof(*tcph)); in flow_pkt_classify()
342 CL_SKIP_ON(l4hlen > ulen); in flow_pkt_classify()
343 pkt->pkt_flow_tcp_hlen = l4hlen; in flow_pkt_classify()
350 l4hlen = sizeof(*udph); in flow_pkt_classify()
351 CL_SKIP_ON(l4hlen > ulen); in flow_pkt_classify()
352 pkt->pkt_flow_udp_hlen = l4hlen; in flow_pkt_classify()
357 ulen -= l4hlen; in flow_pkt_classify()
/xnu-11417.121.6/bsd/skywalk/nexus/
H A Dnexus_traffic_rule.c363 uint8_t l4hlen = 0; /* TCP/UDP header length */ in fill_inet_td() local
457 l4hlen = (uint8_t)(tcph->th_off << 2); in fill_inet_td()
458 if (l4hlen < sizeof(*tcph)) { in fill_inet_td()
459 SK_ERR("l4hlen < sizeof(*tcph) (%d < %d)", l4hlen, sizeof(*tcph)); in fill_inet_td()
463 if (l4hlen > ulen) { in fill_inet_td()
464 SK_ERR("l4hlen > ulen (%d > %d)", l4hlen, ulen); in fill_inet_td()
480 l4hlen = sizeof(*udph); in fill_inet_td()
481 if (l4hlen > ulen) { in fill_inet_td()
482 SK_ERR("l4hlen > ulen (%d > %d)", l4hlen, ulen); in fill_inet_td()