Home
last modified time | relevance | path

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

/xnu-10002.1.13/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.c295 ((th->th_off << 2) > UINT16_MAX)) { in icmp_error()
298 tcphlen = (uint16_t)(th->th_off << 2); in icmp_error()
H A Dtcp_subr.c692 tcp_hdr->th_off = 5; in tcp_fillheaders()
865 nth->th_off = sizeof(struct tcphdr) >> 2; in tcp_respond()
H A Dtcp_output.c2595 th->th_off = (sizeof(struct tcphdr) + optlen) >> 2; in tcp_output()
H A Dtcp_input.c2120 off = th->th_off << 2; in tcp_input()
/xnu-10002.1.13/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, tcp->th_off << 2, NULL, NULL, in pf_osfp_fingerprint()
157 cnt = (tcp->th_off << 2) - sizeof(*tcp); in pf_osfp_fingerprint_hdr()
H A Dpf_norm.c2692 if (th->th_off < (sizeof(struct tcphdr) >> 2)) { in pf_normalize_tcp()
2793 if (th->th_off > (sizeof(struct tcphdr) >> 2) && src->scrub && in pf_normalize_tcp_init()
2794 pf_pull_hdr(pbuf, off, hdr, th->th_off << 2, NULL, NULL, pd->af)) { in pf_normalize_tcp_init()
2798 hlen = (th->th_off << 2) - sizeof(struct tcphdr); in pf_normalize_tcp_init()
2893 if (th->th_off > (sizeof(struct tcphdr) >> 2) && in pf_normalize_tcp_stateful()
2896 pf_pull_hdr(pbuf, off, hdr, th->th_off << 2, NULL, NULL, pd->af)) { in pf_normalize_tcp_stateful()
2900 hlen = (th->th_off << 2) - sizeof(struct tcphdr); in pf_normalize_tcp_stateful()
2965 int optlen = (th->th_off << 2) - sizeof(*th); in pf_normalize_tcp_stateful()
3265 thoff = th->th_off << 2; in pf_normalize_tcpopt()
H A Dif_ports_used.c1439 pkt_data_len < (th.th_off << 2)) { in if_ports_used_match_mbuf()
1442 pkt_data_len -= th.th_off << 2; in if_ports_used_match_mbuf()
1578 pkt_data_len < (th.th_off << 2)) { in if_ports_used_match_mbuf()
1581 pkt_data_len -= th.th_off << 2; in if_ports_used_match_mbuf()
H A Dpf.c2614 int hlen = (th->th_off << 2) - sizeof(*th), thoptlen = hlen; in pf_modulate_sack()
2797 th->th_off = tlen >> 2; in pf_send_tcp()
4254 pf_get_wscale(pbuf_t *pbuf, int off, u_int16_t th_off, sa_family_t af) in pf_get_wscale() argument
4261 hlen = th_off << 2; /* hlen <= sizeof (hdr) */ in pf_get_wscale()
4298 pf_get_mss(pbuf_t *pbuf, int off, u_int16_t th_off, sa_family_t af) in pf_get_mss() argument
4305 hlen = th_off << 2; /* hlen <= sizeof (hdr) */ in pf_get_mss()
5914 th->th_off, af); in pf_test_rule()
6138 mss = pf_get_mss(pbuf, off, th->th_off, af); in pf_test_rule()
6154 offx += th->th_off << 2; in pf_test_rule()
7245 th->th_off, pd->af); in pf_test_state_tcp()
[all …]
H A Dpacket_mangler.c902 off = (tcp.th_off << 2); in pktmnglr_ipfilter_input()
H A Dif_bridge.c4860 tcp_hlen = tcp->th_off << 2;
5073 - (tcp->th_off << 2) - if_bridge_tso_reduce_mss_tx;
9695 state->tcp_hlen = state->tcp->th_off << 2;
H A Dbpf.c3435 trunc_len = (uint16_t)(tcphdr.th_off << 2); in get_tcp_trunc_len()
/xnu-10002.1.13/bsd/dev/dtrace/scripts/
H A Dtcp.d135 tcp_offset = T->th_off << 2;
/xnu-10002.1.13/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_classifier.c316 l4hlen = (uint8_t)(tcph->th_off << 2); in flow_pkt_classify()
H A Dflow_agg.c137 .th_off = 0xf,
188 .th_off = 0xf,
1117 uint16_t sl4hlen = (stcp->th_off << 2); in can_agg_slowpath()
1365 VERIFY(stcp->th_off << 2 == pkt->pkt_flow_tcp_hlen); in flow_agg_merge_hdr()
H A Dflow_track.c837 th->th_off = (tlen >> 2); in flow_track_abort_tcp()
/xnu-10002.1.13/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-10002.1.13/bsd/skywalk/nexus/netif/
H A Dnx_netif_gso.c592 state->tcp_hlen = (uint8_t)(state->tcp->th_off << 2); in netif_gso_ip_tcp_init_state()
/xnu-10002.1.13/bsd/skywalk/nexus/
H A Dnexus_traffic_rule.c452 l4hlen = (uint8_t)(tcph->th_off << 2); in fill_inet_td()