/openbmc/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()
|
/openbmc/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()
|
H A D | tx_common.c | 344 (tcp_hdr(skb)->doff << 2u); in efx_tx_tso_header_length()
|
/openbmc/linux/net/ipv4/ |
H A D | tcp_offload.c | 42 struct tcphdr *th = tcp_hdr(skb); in tcp4_gso_segment() 71 th = tcp_hdr(skb); in tcp_gso_segment() 120 th = tcp_hdr(skb); in tcp_gso_segment() 144 th = tcp_hdr(skb); in tcp_gso_segment() 225 th2 = tcp_hdr(p); in tcp_gro_receive() 304 struct tcphdr *th = tcp_hdr(skb); in tcp_gro_complete() 337 struct tcphdr *th = tcp_hdr(skb); in tcp4_gro_complete()
|
H A D | syncookies.c | 173 const struct tcphdr *th = tcp_hdr(skb); in cookie_v4_init_sequence() 326 const struct tcphdr *th = tcp_hdr(skb); in cookie_v4_check()
|
H A D | tcp_ipv4.c | 103 tcp_hdr(skb)->dest, in tcp_v4_init_seq() 104 tcp_hdr(skb)->source); in tcp_v4_init_seq() 649 struct tcphdr *th = tcp_hdr(skb); in __tcp_v4_send_check() 686 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_reset() 874 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_ack() 1449 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_md5_hash_skb() 1680 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_cookie_check() 1797 th = tcp_hdr(skb); in tcp_v4_early_demux()
|
H A D | tcp_input.c | 348 if (tcp_hdr(skb)->cwr) { in tcp_ecn_accept_cwr() 3649 u32 nwin = ntohs(tcp_hdr(skb)->window); in tcp_ack_update_window() 3651 if (likely(!tcp_hdr(skb)->syn)) in tcp_ack_update_window() 3718 !tcp_hdr(skb)->syn) in tcp_oow_rate_limited() 4143 const struct tcphdr *th = tcp_hdr(skb); in tcp_parse_options() 4367 const struct tcphdr *th = tcp_hdr(skb); in tcp_disordered_ack() 5146 __skb_pull(skb, tcp_hdr(skb)->doff * 4); in tcp_data_queue() 6598 const struct tcphdr *th = tcp_hdr(skb); in tcp_rcv_state_process() 6894 const struct tcphdr *th = tcp_hdr(skb); in tcp_ecn_create_request() 6932 ireq->ir_rmt_port = tcp_hdr(skb)->source; in tcp_openreq_init() [all …]
|
H A D | tcp_minisocks.c | 548 newtp->snd_wnd = ntohs(tcp_hdr(skb)->window) << newtp->rx_opt.snd_wscale; in tcp_create_openreq_child() 608 const struct tcphdr *th = tcp_hdr(skb); in tcp_check_req()
|
/openbmc/linux/net/ipv6/ |
H A D | tcpv6_offload.c | 33 struct tcphdr *th = tcp_hdr(skb); in tcp6_gro_complete() 56 struct tcphdr *th = tcp_hdr(skb); in tcp6_gso_segment()
|
H A D | syncookies.c | 112 const struct tcphdr *th = tcp_hdr(skb); in cookie_v6_init_sequence() 135 const struct tcphdr *th = tcp_hdr(skb); in cookie_v6_check()
|
H A D | tcp_ipv6.c | 116 tcp_hdr(skb)->dest, in tcp_v6_init_seq() 117 tcp_hdr(skb)->source); in tcp_v6_init_seq() 735 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_md5_hash_skb() 846 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_send_response() 974 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_send_reset() 1136 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_cookie_check() 1851 th = tcp_hdr(skb); in tcp_v6_early_demux()
|
/openbmc/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()
|
/openbmc/qemu/net/ |
H A D | filter-rewriter.c | 75 struct tcp_hdr *tcp_pkt; in handle_primary_tcp_pkt() 77 tcp_pkt = (struct tcp_hdr *)pkt->transport_header; in handle_primary_tcp_pkt() 181 struct tcp_hdr *tcp_pkt; in handle_secondary_tcp_pkt() 183 tcp_pkt = (struct tcp_hdr *)pkt->transport_header; in handle_secondary_tcp_pkt()
|
/openbmc/linux/include/linux/ |
H A D | tcp.h | 24 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()
|
/openbmc/qemu/hw/net/ |
H A D | net_tx_pkt.c | 327 struct tcp_hdr l4hdr; in net_tx_pkt_build_vheader() 367 if (pkt->payload_len < sizeof(struct tcp_hdr)) { in net_tx_pkt_build_vheader() 372 pkt->virt_hdr.csum_offset = offsetof(struct tcp_hdr, th_sum); in net_tx_pkt_build_vheader() 602 struct tcp_hdr *th; in net_tx_pkt_tcp_fragment_init() 676 struct tcp_hdr *th = l4hdr->iov_base; in net_tx_pkt_tcp_fragment_advance()
|
/openbmc/linux/net/mptcp/ |
H A D | syncookies.c | 41 struct tcphdr *th = tcp_hdr(skb); in mptcp_join_entry_hash()
|
/openbmc/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()
|
/openbmc/linux/net/tls/ |
H A D | tls_device_fallback.c | 181 struct tcphdr *th = tcp_hdr(skb); in update_chksum() 249 u32 tcp_seq = ntohl(tcp_hdr(skb)->seq); in fill_sg_in()
|
/openbmc/qemu/include/net/ |
H A D | eth.h | 159 struct tcp_hdr { struct
|
/openbmc/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()
|
/openbmc/linux/drivers/net/ethernet/sfc/siena/ |
H A D | tx_common.c | 325 (tcp_hdr(skb)->doff << 2u); in efx_tx_tso_header_length()
|
/openbmc/linux/security/ |
H A D | lsm_audit.c | 58 struct tcphdr *th = tcp_hdr(skb); in ipv4_skb_to_auditdata()
|
/openbmc/linux/net/openvswitch/ |
H A D | flow.c | 726 struct tcphdr *tcp = tcp_hdr(skb); in key_extract_l3l4() 850 struct tcphdr *tcp = tcp_hdr(skb); in key_extract_l3l4()
|
H A D | actions.c | 356 inet_proto_csum_replace4(&tcp_hdr(skb)->check, skb, in update_ip_l4_checksum() 389 inet_proto_csum_replace16(&tcp_hdr(skb)->check, skb, in update_ipv6_checksum() 728 th = tcp_hdr(skb); in set_tcp()
|