Home
last modified time | relevance | path

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

/xnu-10063.101.15/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_classifier.c110 uint8_t l4hlen = 0; /* TCP/UDP header length */ in flow_pkt_classify() local
316 l4hlen = (uint8_t)(tcph->th_off << 2); in flow_pkt_classify()
317 CL_SKIP_ON(l4hlen < sizeof(*tcph)); in flow_pkt_classify()
318 CL_SKIP_ON(l4hlen > ulen); in flow_pkt_classify()
319 pkt->pkt_flow_tcp_hlen = l4hlen; in flow_pkt_classify()
324 l4hlen = sizeof(*udph); in flow_pkt_classify()
325 CL_SKIP_ON(l4hlen > ulen); in flow_pkt_classify()
326 pkt->pkt_flow_udp_hlen = l4hlen; in flow_pkt_classify()
331 ulen -= l4hlen; in flow_pkt_classify()
/xnu-10063.101.15/bsd/skywalk/nexus/
H A Dnexus_traffic_rule.c358 uint8_t l4hlen = 0; /* TCP/UDP header length */ in fill_inet_td() local
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()
458 if (l4hlen > ulen) { in fill_inet_td()
459 SK_ERR("l4hlen > ulen (%d > %d)", l4hlen, ulen); in fill_inet_td()
475 l4hlen = sizeof(*udph); in fill_inet_td()
476 if (l4hlen > ulen) { in fill_inet_td()
477 SK_ERR("l4hlen > ulen (%d > %d)", l4hlen, ulen); in fill_inet_td()