Home
last modified time | relevance | path

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

/xnu-12377.61.12/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-12377.61.12/bsd/skywalk/nexus/
H A Dnexus_traffic_rule_inet.c181 uint8_t l4hlen = 0; /* TCP/UDP header length */ in fill_inet_td() local
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()
281 if (l4hlen > ulen) { in fill_inet_td()
282 SK_ERR("l4hlen > ulen (%d > %d)", l4hlen, ulen); in fill_inet_td()
298 l4hlen = sizeof(*udph); in fill_inet_td()
299 if (l4hlen > ulen) { in fill_inet_td()
300 SK_ERR("l4hlen > ulen (%d > %d)", l4hlen, ulen); in fill_inet_td()