Home
last modified time | relevance | path

Searched refs:th_off (Results 1 – 24 of 24) sorted by relevance

/xnu-12377.61.12/bsd/netinet/
H A Dtcp.h100 th_off:4; /* data offset */ member
103 unsigned int th_off:4, /* data offset */ member
H A Dtcpip.h96 #define ti_off ti_t.th_off
H A Dip_compat.h542 __u8 th_off:4;
544 __u8 th_off:4;
H A Dip_icmp.c298 ((th->th_off << 2) > UINT16_MAX)) { in icmp_error()
301 tcphlen = (uint16_t)(th->th_off << 2); in icmp_error()
H A Dtcp_output.c2971 th->th_off = (sizeof(struct tcphdr) + optlen) >> 2; in tcp_output()
3594 if (pkt->m_pkthdr.len <= th_offset + (th->th_off << 2)) { in tcp_set_rto_deadline()
H A Dtcp_subr.c856 tcp_hdr->th_off = 5; in tcp_fillheaders()
1075 nth->th_off = (sizeof(struct tcphdr) + optlen) >> 2; in tcp_respond()
H A Dtcp_input.c2917 off = th->th_off << 2; in tcp_input()
/xnu-12377.61.12/bsd/net/
H A Dpf_osfp.c96 (tcp->th_off << 2) < (int)sizeof(*tcp)) { in pf_osfp_fingerprint()
107 if (!pf_pull_hdr(pbuf, off, hdr, sizeof(hdr), tcp->th_off << 2, NULL, NULL, in pf_osfp_fingerprint()
124 int tcpopt_cnt = (tcp->th_off << 2) + sizeof(struct tcphdr); in pf_osfp_fingerprint_hdr()
H A Dpf_norm.c2694 if (th->th_off < (sizeof(struct tcphdr) >> 2)) { in pf_normalize_tcp()
2796 if (th->th_off > (sizeof(struct tcphdr) >> 2) && src->scrub && in pf_normalize_tcp_init()
2797 pf_pull_hdr(pbuf, off, hdr, sizeof(hdr), th->th_off << 2, NULL, NULL, pd->af)) { in pf_normalize_tcp_init()
2799 int hlen = (th->th_off << 2) - sizeof(struct tcphdr); in pf_normalize_tcp_init()
2895 if (th->th_off > (sizeof(struct tcphdr) >> 2) && in pf_normalize_tcp_stateful()
2898 pf_pull_hdr(pbuf, off, hdr, sizeof(hdr), th->th_off << 2, NULL, NULL, pd->af)) { in pf_normalize_tcp_stateful()
2902 hlen = (th->th_off << 2) - sizeof(struct tcphdr); in pf_normalize_tcp_stateful()
2967 int optlen = (th->th_off << 2) - sizeof(*th); in pf_normalize_tcp_stateful()
3267 thoff = th->th_off << 2; in pf_normalize_tcpopt()
H A Dif_ports_used.c1896 pkt_data_len < (th.th_off << 2)) { in if_ports_used_match_mbuf()
1899 pkt_data_len -= th.th_off << 2; in if_ports_used_match_mbuf()
2035 pkt_data_len < (th.th_off << 2)) { in if_ports_used_match_mbuf()
2038 pkt_data_len -= th.th_off << 2; in if_ports_used_match_mbuf()
H A Dpf.c2598 int hlen = (th->th_off << 2) - sizeof(*th), thoptlen = hlen; in pf_modulate_sack()
2781 th->th_off = tlen >> 2; in pf_send_tcp()
4238 pf_get_wscale(pbuf_t *pbuf, int off, u_int16_t th_off, sa_family_t af) in pf_get_wscale() argument
4245 hlen = th_off << 2; /* hlen <= sizeof (hdr) */ in pf_get_wscale()
4282 pf_get_mss(pbuf_t *pbuf, int off, u_int16_t th_off, sa_family_t af) in pf_get_mss() argument
4289 hlen = th_off << 2; /* hlen <= sizeof (hdr) */ in pf_get_mss()
5897 th->th_off, af); in pf_test_rule()
6121 mss = pf_get_mss(pbuf, off, th->th_off, af); in pf_test_rule()
6137 offx += th->th_off << 2; in pf_test_rule()
7228 th->th_off, pd->af); in pf_test_state_tcp()
[all …]
H A Dpacket_mangler.c904 off = (tcp.th_off << 2); in pktmnglr_ipfilter_input()
H A Dif_bridge.c5136 tcp_hlen = tcp->th_off << 2;
5315 hdr_len = info.ip_hlen + info.ip_opt_len + (tcp->th_off << 2);
10429 state->tcp_hlen = state->tcp->th_off << 2;
H A Dbpf.c3784 trunc_len = (uint16_t)(tcphdr.th_off << 2); in get_tcp_trunc_len()
/xnu-12377.61.12/bsd/dev/dtrace/scripts/
H A Dtcp.d135 tcp_offset = T->th_off << 2;
/xnu-12377.61.12/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_classifier.c340 l4hlen = (uint8_t)(tcph->th_off << 2); in flow_pkt_classify()
H A Dflow_agg.c146 .th_off = 0xf,
197 .th_off = 0xf,
1152 uint16_t sl4hlen = (stcp->th_off << 2); in can_agg_slowpath()
1403 VERIFY(stcp->th_off << 2 == pkt->pkt_flow_tcp_hlen); in flow_agg_merge_hdr()
H A Dflow_track.c857 th->th_off = (tlen >> 2); in flow_track_abort_tcp()
/xnu-12377.61.12/bsd/netinet6/
H A Desp_output.c439 inner_payload_len = m->m_pkthdr.len - m->m_len - iphlen - (th.th_off << 2); in esp_output()
455 inner_payload_len = m->m_pkthdr.len - iphlen - (th.th_off << 2); in esp_output()
H A Desp_input.c199 proto_len = m->m_pkthdr.len - iphlen - (th.th_off << 2); in esp_input_log()
/xnu-12377.61.12/bsd/skywalk/nexus/netif/
H A Dnx_netif_gso.c607 state->tcp_hlen = (uint8_t)(state->tcp->th_off << 2); in netif_gso_ip_tcp_init_state()
/xnu-12377.61.12/bsd/skywalk/nexus/
H A Dnexus_traffic_rule_inet.c275 l4hlen = (uint8_t)(tcph->th_off << 2); in fill_inet_td()
/xnu-12377.61.12/tests/skywalk/
H A Dskt_xfer.c495 ip_tcp->tcp.th_off, in ip_frame_dump()
559 ip_tcp->tcp.th_off = (sizeof(struct tcphdr)) >> 2; in tcp_frame_populate()
H A Dskywalk_test_utils.c2474 tcp->th_off = (sizeof(struct tcphdr)) >> 2; in sktu_create_tcp_frames()