Home
last modified time | relevance | path

Searched refs:tcp_hdr (Results 1 – 25 of 61) sorted by relevance

123

/linux/net/ipv6/
H A Dtcpv6_offload.c77 struct tcphdr *th = tcp_hdr(skb); in tcp6_gro_complete()
101 struct tcphdr *th = tcp_hdr(seg); in __tcpv6_gso_segment_csum()
127 th = tcp_hdr(seg); in __tcpv6_gso_segment_list_csum()
129 th2 = tcp_hdr(seg->next); in __tcpv6_gso_segment_list_csum()
138 th2 = tcp_hdr(seg); in __tcpv6_gso_segment_list_csum()
172 struct tcphdr *th = tcp_hdr(skb); in tcp6_gso_segment()
182 struct tcphdr *th = tcp_hdr(skb); in tcp6_gso_segment()
H A Dtcp_ao.c57 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_ao_calc_key_skb()
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_parse_tcp_hdr_opt_dynptr.c79 struct tcphdr *tcp_hdr; in xdp_ingress_v6() local
90 tcp_hdr = bpf_dynptr_slice(&ptr, off, buffer, sizeof(buffer)); in xdp_ingress_v6()
91 if (!tcp_hdr) in xdp_ingress_v6()
94 tcp_hdr_opt_len = (tcp_hdr->doff * 4) - sizeof(struct tcphdr); in xdp_ingress_v6()
H A Dtest_parse_tcp_hdr_opt.c88 struct tcphdr *tcp_hdr; in xdp_ingress_v6() local
93 tcp_hdr = (struct tcphdr *)(data + tcp_offset); in xdp_ingress_v6()
94 if (tcp_hdr + 1 > data_end) in xdp_ingress_v6()
97 tcp_hdr_opt_len = (tcp_hdr->doff * 4) - sizeof(struct tcphdr); in xdp_ingress_v6()
/linux/net/ipv4/
H A Dtcp_offload.c44 th = tcp_hdr(seg); in __tcpv4_gso_segment_csum()
64 th = tcp_hdr(seg); in __tcpv4_gso_segment_list_csum()
66 th2 = tcp_hdr(seg->next); in __tcpv4_gso_segment_list_csum()
74 th2 = tcp_hdr(seg); in __tcpv4_gso_segment_list_csum()
108 struct tcphdr *th = tcp_hdr(skb); in tcp4_gso_segment()
118 struct tcphdr *th = tcp_hdr(skb); in tcp4_gso_segment()
148 th = tcp_hdr(skb); in tcp_gso_segment()
197 th = tcp_hdr(skb); in tcp_gso_segment()
223 th = tcp_hdr(skb); in tcp_gso_segment()
273 th2 = tcp_hdr(p); in tcp_gro_lookup()
[all …]
H A Dsyncookies.c174 const struct tcphdr *th = tcp_hdr(skb); in cookie_v4_init_sequence()
269 const struct tcphdr *th = tcp_hdr(skb); in cookie_tcp_reqsk_init()
367 mss = __cookie_v4_check(ip_hdr(skb), tcp_hdr(skb)); in cookie_tcp_check()
402 const struct tcphdr *th = tcp_hdr(skb); in cookie_v4_check()
H A Dtcp_ipv4.c109 tcp_hdr(skb)->dest, in tcp_v4_init_seq()
110 tcp_hdr(skb)->source); in tcp_v4_init_seq()
666 struct tcphdr *th = tcp_hdr(skb); in __tcp_v4_send_check()
744 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_reset()
795 if (tcp_parse_auth_options(tcp_hdr(skb), &md5_hash_location, &aoh)) in tcp_v4_send_reset()
943 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_ack()
1064 if (tcp_parse_auth_options(tcp_hdr(skb), NULL, &aoh)) {
1123 if (tcp_parse_auth_options(tcp_hdr(skb), NULL, &aoh))
1141 ntohs(tcp_hdr(skb)->source),
1143 ntohs(tcp_hdr(skb)->dest));
[all …]
H A Dtcp_ao.c419 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_ao_calc_key_skb()
462 const struct tcphdr *th = tcp_hdr(skb); in tcp_ao_hash_pseudoheader()
626 const struct tcphdr *th = tcp_hdr(skb); in tcp_ao_hash_skb()
729 const struct tcphdr *th = tcp_hdr(skb); in tcp_ao_prepare_reset()
869 const struct tcphdr *th = tcp_hdr(skb); in tcp_ao_syncookie()
906 const struct tcphdr *th = tcp_hdr(skb); in tcp_ao_verify_hash()
947 const struct tcphdr *th = tcp_hdr(skb); in tcp_inbound_ao_hash()
1181 WRITE_ONCE(ao->risn, tcp_hdr(skb)->seq); in tcp_ao_finish_connect()
H A Dtcp_input.c291 !(tcp_flag_word(tcp_hdr(skb)) & TCP_REMNANT))) { in tcp_measure_rcv_mss()
350 if (tcp_hdr(skb)->cwr) { in tcp_ecn_accept_cwr()
3573 u32 nwin = ntohs(tcp_hdr(skb)->window); in tcp_ack_update_window()
3575 if (likely(!tcp_hdr(skb)->syn)) in tcp_ack_update_window()
3642 !tcp_hdr(skb)->syn) in tcp_oow_rate_limited()
3895 if (tcp_ecn_rcv_ecn_echo(tp, tcp_hdr(skb))) in tcp_ack()
4081 const struct tcphdr *th = tcp_hdr(skb); in tcp_parse_options()
4349 const struct tcphdr *th = tcp_hdr(skb); in tcp_disordered_ack_check()
5164 __skb_pull(skb, tcp_hdr(skb)->doff * 4); in tcp_data_queue()
6680 const struct tcphdr *th = tcp_hdr(skb); in tcp_rcv_state_process()
[all …]
H A Dtcp_minisocks.c588 newtp->snd_wnd = ntohs(tcp_hdr(skb)->window) << newtp->rx_opt.snd_wscale; in tcp_create_openreq_child()
670 const struct tcphdr *th = tcp_hdr(skb); in tcp_check_req()
H A Dtcp_fastopen.c270 tp->snd_wnd = ntohs(tcp_hdr(skb)->window); in tcp_fastopen_create_child()
/linux/drivers/net/ethernet/sfc/
H A Dtx_tso.c161 EFX_WARN_ON_ONCE_PARANOID((PTR_DIFF(tcp_hdr(skb), skb->data) + in efx_tso_check_protocol()
162 (tcp_hdr(skb)->doff << 2u)) > in efx_tso_check_protocol()
179 header_len = st->tcp_off + (tcp_hdr(skb)->doff << 2u); in tso_start()
190 st->seqnum = ntohl(tcp_hdr(skb)->seq); in tso_start()
192 EFX_WARN_ON_ONCE_PARANOID(tcp_hdr(skb)->urg); in tso_start()
193 EFX_WARN_ON_ONCE_PARANOID(tcp_hdr(skb)->syn); in tso_start()
194 EFX_WARN_ON_ONCE_PARANOID(tcp_hdr(skb)->rst); in tso_start()
307 tcp_flags = ((u8 *)tcp_hdr(skb))[TCP_FLAGS_OFFSET] & ~tcp_flags_mask; in tso_start_new_packet()
/linux/include/net/
H A Dip6_checksum.h58 struct tcphdr *th = tcp_hdr(skb); in __tcp_v6_send_check()
68 struct tcphdr *th = tcp_hdr(skb); in tcp_v6_gso_csum_prep()
/linux/include/linux/
H A Dtcp.h24 static inline struct tcphdr *tcp_hdr(const struct sk_buff *skb) in tcp_hdr() function
36 return __tcp_hdrlen(tcp_hdr(skb)); in tcp_hdrlen()
81 return (tcp_hdr(skb)->doff - 5) * 4; in tcp_optlen()
/linux/net/mptcp/
H A Dsyncookies.c41 struct tcphdr *th = tcp_hdr(skb); in mptcp_join_entry_hash()
H A Doptions.c38 if (skb->len > tcp_hdr(skb)->doff << 2) in mptcp_parse_option()
362 const struct tcphdr *th = tcp_hdr(skb); in mptcp_get_options()
/linux/net/core/
H A Dtso.c71 tso->tcp_seq = (tlen != sizeof(struct udphdr)) ? ntohl(tcp_hdr(skb)->seq) : 0; in tso_start()
/linux/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_tx.c119 seq = ntohl(tcp_hdr(skb)->seq); in fun_tls_tx()
246 th = tcp_hdr(skb); in write_pkt_desc()
/linux/security/
H A Dlsm_audit.c57 struct tcphdr *th = tcp_hdr(skb); in ipv4_skb_to_auditdata()
/linux/net/openvswitch/
H A Dactions.c331 inet_proto_csum_replace4(&tcp_hdr(skb)->check, skb, in update_ip_l4_checksum()
364 inet_proto_csum_replace16(&tcp_hdr(skb)->check, skb, in update_ipv6_checksum()
703 th = tcp_hdr(skb); in set_tcp()
/linux/drivers/net/ethernet/wangxun/txgbe/
H A Dtxgbe_fdir.c254 th = tcp_hdr(first->skb); in txgbe_atr()
/linux/drivers/net/ethernet/sun/
H A Dsunvnet_common.c322 struct tcphdr *ptcp = tcp_hdr(skb); in vnet_fullcsum_ipv4()
355 struct tcphdr *ptcp = tcp_hdr(skb); in vnet_fullcsum_ipv6()
1240 hlen += tcp_hdr(skb)->doff * 4; in vnet_handle_offloads()
/linux/drivers/net/thunderbolt/
H A Dmain.c1042 tucso = dest + ((void *)&(tcp_hdr(skb)->check) - data); in tbnet_xmit_csum_and_map()
1052 tucso = dest + ((void *)&(tcp_hdr(skb)->check) - data); in tbnet_xmit_csum_and_map()
/linux/drivers/net/ethernet/qlogic/qede/
H A Dqede_fp.c895 th = tcp_hdr(skb); in qede_gro_ip_csum()
909 th = tcp_hdr(skb); in qede_gro_ipv6_csum()
/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_cmn.c716 th = tcp_hdr(skb); in bnx2x_gro_ip_csum()
728 th = tcp_hdr(skb); in bnx2x_gro_ipv6_csum()
3507 pbd->tcp_send_seq = bswab32(tcp_hdr(skb)->seq); in bnx2x_set_pbd_gso()
3508 pbd->tcp_flags = pbd_tcp_flags(tcp_hdr(skb)); in bnx2x_set_pbd_gso()
3638 pbd->tcp_pseudo_csum = bswab16(tcp_hdr(skb)->check); in bnx2x_set_pbd_csum()

123