| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_parse_tcp_hdr_opt_dynptr.c | 79 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 D | test_parse_tcp_hdr_opt.c | 88 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/drivers/net/ethernet/sfc/ |
| H A D | tx_tso.c | 161 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 D | ip6_checksum.h | 58 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/net/ipv6/ |
| H A D | tcp_ipv6.c | 111 tcp_hdr(skb)->dest, in tcp_v6_init_seq() 112 tcp_hdr(skb)->source); in tcp_v6_init_seq() 729 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_md5_hash_hdr() 830 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_route_req() 974 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_send_response() 1137 if (tcp_parse_auth_options(tcp_hdr(skb), NULL, &aoh)) in tcp_v6_send_reset() 1192 if (tcp_parse_auth_options(tcp_hdr(skb), NULL, &aoh)) 1210 ntohs(tcp_hdr(skb)->source), 1212 ntohs(tcp_hdr(skb)->dest)); 1258 const struct tcphdr *th = tcp_hdr(sk [all...] |
| H A D | tcp_ao.c | 57 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_ao_calc_key_skb()
|
| /linux/net/mptcp/ |
| H A D | syncookies.c | 41 struct tcphdr *th = tcp_hdr(skb); in mptcp_join_entry_hash()
|
| H A D | options.c | 38 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 D | tso.c | 71 tso->tcp_seq = (tlen != sizeof(struct udphdr)) ? ntohl(tcp_hdr(skb)->seq) : 0; in tso_start()
|
| /linux/net/tls/ |
| H A D | tls_device_fallback.c | 157 struct tcphdr *th = tcp_hdr(skb); in tls_enc_records() 225 u32 tcp_seq = ntohl(tcp_hdr(skb)->seq); in complete_skb()
|
| /linux/net/ipv4/ |
| H A D | tcp_ao.c | 418 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_ao_calc_key_skb() 461 const struct tcphdr *th = tcp_hdr(skb); in tcp_ao_hash_pseudoheader() 625 const struct tcphdr *th = tcp_hdr(skb); in tcp_ao_hash_skb() 728 const struct tcphdr *th = tcp_hdr(skb); in tcp_ao_prepare_reset() 868 const struct tcphdr *th = tcp_hdr(skb); in tcp_ao_syncookie() 905 const struct tcphdr *th = tcp_hdr(skb); in tcp_ao_verify_hash() 946 const struct tcphdr *th = tcp_hdr(skb); in tcp_inbound_ao_hash() 1182 WRITE_ONCE(ao->risn, tcp_hdr(skb)->seq); in tcp_ao_finish_connect()
|
| H A D | tcp_input.c | 293 !(tcp_flag_word(tcp_hdr(skb)) & TCP_REMNANT))) { in tcp_measure_rcv_mss() 497 const struct tcphdr *th = tcp_hdr(skb); in __tcp_accecn_process() 3752 u32 nwin = ntohs(tcp_hdr(skb)->window); in tcp_ack_update_window() 3754 if (likely(!tcp_hdr(skb)->syn)) in tcp_ack_update_window() 3821 !tcp_hdr(skb)->syn) in tcp_oow_rate_limited() 4091 if (tcp_ecn_rcv_ecn_echo(tp, tcp_hdr(skb))) in tcp_ack() 4290 const struct tcphdr *th = tcp_hdr(skb); in tcp_parse_options() 4568 const struct tcphdr *th = tcp_hdr(skb); in tcp_disordered_ack_check() 5394 __skb_pull(skb, tcp_hdr(skb)->doff * 4); in tcp_data_queue() 6940 const struct tcphdr *th = tcp_hdr(skb); in tcp_rcv_state_process() [all …]
|
| H A D | tcp_sigpool.c | 332 const struct tcphdr *tp = tcp_hdr(skb); in tcp_sigpool_hash_skb_data()
|
| H A D | ip_output.c | 1642 tcp_hdr(skb)->source, tcp_hdr(skb)->dest, in ip_send_unicast_reply()
|
| /linux/drivers/net/ethernet/fungible/funeth/ |
| H A D | funeth_tx.c | 119 seq = ntohl(tcp_hdr(skb)->seq); in fun_tls_tx() 246 th = tcp_hdr(skb); in write_pkt_desc()
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| H A D | tx_common.c | 324 (tcp_hdr(skb)->doff << 2u); in efx_tx_tso_header_length()
|
| /linux/net/openvswitch/ |
| H A D | actions.c | 331 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() 640 th = tcp_hdr(skb); in set_tcp()
|
| H A D | conntrack.c | 634 src = tcp_hdr(skb)->source; in ovs_nat_update_key() 656 dst = tcp_hdr(skb)->dest; in ovs_nat_update_key()
|
| /linux/drivers/net/ethernet/sun/ |
| H A D | sunvnet_common.c | 322 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 D | main.c | 1042 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 D | qede_fp.c | 896 th = tcp_hdr(skb); in qede_gro_ip_csum() 910 th = tcp_hdr(skb); in qede_gro_ipv6_csum()
|
| /linux/drivers/net/ethernet/broadcom/bnx2x/ |
| H A D | bnx2x_cmn.c | 716 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()
|
| H A D | bnx2x.h | 782 #define pbd_tcp_flags(tcp_hdr) (ntohl(tcp_flag_word(tcp_hdr))>>16 & 0xff) argument
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
| H A D | ktls_tx.c | 860 seq = ntohl(tcp_hdr(skb)->seq); in mlx5e_ktls_handle_tx_skb()
|
| /linux/drivers/net/ethernet/oki-semi/pch_gbe/ |
| H A D | pch_gbe_main.c | 1103 tcp_hdr(skb)->check = 0; in pch_gbe_tx_queue() 1106 tcp_hdr(skb)->check = in pch_gbe_tx_queue()
|