/Linux-v4.19/net/ipv4/netfilter/ |
D | nf_reject_ipv4.c | 18 const struct tcphdr *nf_reject_ip_tcphdr_get(struct sk_buff *oldskb, in nf_reject_ip_tcphdr_get() 19 struct tcphdr *_oth, int hook) in nf_reject_ip_tcphdr_get() 21 const struct tcphdr *oth; in nf_reject_ip_tcphdr_get() 31 sizeof(struct tcphdr), _oth); in nf_reject_ip_tcphdr_get() 73 const struct tcphdr *oth) in nf_reject_ip_tcphdr_put() 76 struct tcphdr *tcph; in nf_reject_ip_tcphdr_put() 79 tcph = skb_put_zero(nskb, sizeof(struct tcphdr)); in nf_reject_ip_tcphdr_put() 82 tcph->doff = sizeof(struct tcphdr) / 4; in nf_reject_ip_tcphdr_put() 94 tcph->check = ~tcp_v4_check(sizeof(struct tcphdr), niph->saddr, in nf_reject_ip_tcphdr_put() 98 nskb->csum_offset = offsetof(struct tcphdr, check); in nf_reject_ip_tcphdr_put() [all …]
|
D | ipt_SYNPROXY.c | 47 struct iphdr *niph, struct tcphdr *nth, in synproxy_send_tcp() 53 nskb->csum_offset = offsetof(struct tcphdr, check); in synproxy_send_tcp() 74 const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_client_synack() 79 struct tcphdr *nth; in synproxy_send_client_synack() 116 const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_server_syn() 122 struct tcphdr *nth; in synproxy_send_server_syn() 162 const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_server_ack() 167 struct tcphdr *nth; in synproxy_send_server_ack() 200 const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_client_ack() 205 struct tcphdr *nth; in synproxy_send_client_ack() [all …]
|
D | nf_tproxy_ipv4.c | 27 struct tcphdr _hdr, *hp; in nf_tproxy_handle_time_wait4() 85 struct tcphdr _hdr, *hp; in nf_tproxy_get_sock_v4() 88 sizeof(struct tcphdr), &_hdr); in nf_tproxy_get_sock_v4()
|
/Linux-v4.19/net/ipv6/netfilter/ |
D | nf_reject_ipv6.c | 18 const struct tcphdr *nf_reject_ip6_tcphdr_get(struct sk_buff *oldskb, in nf_reject_ip6_tcphdr_get() 19 struct tcphdr *otcph, in nf_reject_ip6_tcphdr_get() 39 if (proto != IPPROTO_TCP || *otcplen < sizeof(struct tcphdr)) { in nf_reject_ip6_tcphdr_get() 45 otcph = skb_header_pointer(oldskb, tcphoff, sizeof(struct tcphdr), in nf_reject_ip6_tcphdr_get() 92 const struct tcphdr *oth, unsigned int otcplen) in nf_reject_ip6_tcphdr_put() 94 struct tcphdr *tcph; in nf_reject_ip6_tcphdr_put() 98 tcph = skb_put(nskb, sizeof(struct tcphdr)); in nf_reject_ip6_tcphdr_put() 100 tcph->doff = sizeof(struct tcphdr)/4; in nf_reject_ip6_tcphdr_put() 126 sizeof(struct tcphdr), IPPROTO_TCP, in nf_reject_ip6_tcphdr_put() 128 sizeof(struct tcphdr), 0)); in nf_reject_ip6_tcphdr_put() [all …]
|
D | ip6t_SYNPROXY.c | 45 struct ipv6hdr *niph, struct tcphdr *nth, in synproxy_send_tcp() 54 nskb->csum_offset = offsetof(struct tcphdr, check); in synproxy_send_tcp() 88 const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_client_synack() 93 struct tcphdr *nth; in synproxy_send_client_synack() 130 const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_server_syn() 136 struct tcphdr *nth; in synproxy_send_server_syn() 176 const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_server_ack() 181 struct tcphdr *nth; in synproxy_send_server_ack() 214 const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_client_ack() 219 struct tcphdr *nth; in synproxy_send_client_ack() [all …]
|
D | nf_tproxy_ipv6.c | 45 struct tcphdr _hdr, *hp; in nf_tproxy_handle_time_wait6() 86 struct tcphdr _hdr, *hp; in nf_tproxy_get_sock_v6() 89 sizeof(struct tcphdr), &_hdr); in nf_tproxy_get_sock_v6()
|
/Linux-v4.19/net/netfilter/ |
D | xt_TCPOPTSTRIP.c | 38 struct tcphdr *tcph; in tcpoptstrip_mangle_packet() 51 if (len < (int)sizeof(struct tcphdr)) in tcpoptstrip_mangle_packet() 54 tcph = (struct tcphdr *)(skb_network_header(skb) + tcphoff); in tcpoptstrip_mangle_packet() 66 for (i = sizeof(struct tcphdr); i < tcp_hdrlen - 1; i += optl) { in tcpoptstrip_mangle_packet() 95 sizeof(struct iphdr) + sizeof(struct tcphdr)); in tcpoptstrip_tg4() 113 sizeof(*ipv6h) + sizeof(struct tcphdr)); in tcpoptstrip_tg6()
|
D | xt_TCPMSS.c | 81 struct tcphdr *tcph; in tcpmss_mangle_packet() 96 if (len < (int)sizeof(struct tcphdr)) in tcpmss_mangle_packet() 99 tcph = (struct tcphdr *)(skb_network_header(skb) + tcphoff); in tcpmss_mangle_packet() 102 if (len < tcp_hdrlen || tcp_hdrlen < sizeof(struct tcphdr)) in tcpmss_mangle_packet() 120 for (i = sizeof(struct tcphdr); i <= tcp_hdrlen - TCPOLEN_MSS; i += optlen(opt, i)) { in tcpmss_mangle_packet() 162 tcph = (struct tcphdr *)(skb_network_header(skb) + tcphoff); in tcpmss_mangle_packet() 179 opt = (u_int8_t *)tcph + sizeof(struct tcphdr); in tcpmss_mangle_packet() 180 memmove(opt + TCPOLEN_MSS, opt, len - sizeof(struct tcphdr)); in tcpmss_mangle_packet() 208 sizeof(*iph) + sizeof(struct tcphdr)); in tcpmss_tg4() 237 sizeof(*ipv6h) + sizeof(struct tcphdr)); in tcpmss_tg6()
|
D | nf_nat_proto_tcp.c | 41 struct tcphdr *hdr; in tcp_manip_pkt() 48 if (skb->len >= hdroff + sizeof(struct tcphdr)) in tcp_manip_pkt() 49 hdrsize = sizeof(struct tcphdr); in tcp_manip_pkt() 54 hdr = (struct tcphdr *)(skb->data + hdroff); in tcp_manip_pkt()
|
D | nf_log_common.c | 60 struct tcphdr _tcph; in nf_log_dump_tcp_header() 61 const struct tcphdr *th; in nf_log_dump_tcp_header() 110 if ((logflags & NF_LOG_TCPOPT) && th->doff*4 > sizeof(struct tcphdr)) { in nf_log_dump_tcp_header() 111 u_int8_t _opt[60 - sizeof(struct tcphdr)]; in nf_log_dump_tcp_header() 114 unsigned int optsize = th->doff*4 - sizeof(struct tcphdr); in nf_log_dump_tcp_header() 116 op = skb_header_pointer(skb, offset + sizeof(struct tcphdr), in nf_log_dump_tcp_header()
|
D | nfnetlink_osf.c | 166 static const struct tcphdr *nf_osf_hdr_ctx_init(struct nf_osf_hdr_ctx *ctx, in nf_osf_hdr_ctx_init() 171 const struct tcphdr *tcp; in nf_osf_hdr_ctx_init() 172 struct tcphdr _tcph; in nf_osf_hdr_ctx_init() 174 tcp = skb_header_pointer(skb, ip_hdrlen(skb), sizeof(struct tcphdr), &_tcph); in nf_osf_hdr_ctx_init() 185 if (tcp->doff * 4 > sizeof(struct tcphdr)) { in nf_osf_hdr_ctx_init() 186 ctx->optsize = tcp->doff * 4 - sizeof(struct tcphdr); in nf_osf_hdr_ctx_init() 189 sizeof(struct tcphdr), ctx->optsize, opts); in nf_osf_hdr_ctx_init() 208 const struct tcphdr *tcp; in nf_osf_match() 267 const struct tcphdr *tcp; in nf_osf_find()
|
D | nf_conntrack_seqadj.c | 63 const struct tcphdr *th; in nf_ct_tcp_seqadj_set() 68 th = (struct tcphdr *)(skb_network_header(skb) + ip_hdrlen(skb)); in nf_ct_tcp_seqadj_set() 75 struct tcphdr *tcph, in nf_ct_sack_block_adjust() 118 struct tcphdr *tcph, in nf_ct_sack_adjust() 125 optoff = protoff + sizeof(struct tcphdr); in nf_ct_sack_adjust() 167 struct tcphdr *tcph; in nf_ct_seq_adjust()
|
D | nft_osf.c | 21 const struct tcphdr *tcp; in nft_osf_eval() 22 struct tcphdr _tcph; in nft_osf_eval() 26 sizeof(struct tcphdr), &_tcph); in nft_osf_eval()
|
D | xt_tcpudp.c | 40 u_int8_t _opt[60 - sizeof(struct tcphdr)]; in tcp_find_option() 49 op = skb_header_pointer(skb, protoff + sizeof(struct tcphdr), in tcp_find_option() 67 const struct tcphdr *th; in tcp_mt() 68 struct tcphdr _tcph; in tcp_mt()
|
D | nf_conntrack_proto_tcp.c | 291 static unsigned int get_conntrack_index(const struct tcphdr *tcph) in get_conntrack_index() 332 const struct tcphdr *tcph) in segment_seq_plus_len() 351 const struct tcphdr *tcph, in tcp_options() 354 unsigned char buff[(15 * 4) - sizeof(struct tcphdr)]; in tcp_options() 356 int length = (tcph->doff*4) - sizeof(struct tcphdr); in tcp_options() 361 ptr = skb_header_pointer(skb, dataoff + sizeof(struct tcphdr), in tcp_options() 407 const struct tcphdr *tcph, __u32 *sack) in tcp_sack() 409 unsigned char buff[(15 * 4) - sizeof(struct tcphdr)]; in tcp_sack() 411 int length = (tcph->doff*4) - sizeof(struct tcphdr); in tcp_sack() 417 ptr = skb_header_pointer(skb, dataoff + sizeof(struct tcphdr), in tcp_sack() [all …]
|
/Linux-v4.19/include/net/netfilter/ |
D | nf_conntrack_synproxy.h | 74 struct tcphdr; 77 const struct tcphdr *th, 80 void synproxy_build_options(struct tcphdr *th, 88 struct tcphdr *th, struct nf_conn *ct,
|
/Linux-v4.19/include/net/netfilter/ipv4/ |
D | nf_reject.h | 12 const struct tcphdr *nf_reject_ip_tcphdr_get(struct sk_buff *oldskb, 13 struct tcphdr *_oth, int hook); 18 const struct tcphdr *oth);
|
/Linux-v4.19/include/net/netfilter/ipv6/ |
D | nf_reject.h | 12 const struct tcphdr *nf_reject_ip6_tcphdr_get(struct sk_buff *oldskb, 13 struct tcphdr *otcph, 20 const struct tcphdr *oth, unsigned int otcplen);
|
/Linux-v4.19/tools/testing/selftests/bpf/ |
D | test_pkt_access.c | 29 struct tcphdr *tcp = NULL; in process() 43 tcp = (struct tcphdr *)((void *)(iph) + ihl_len); in process() 51 tcp = (struct tcphdr *)((void *)(ip6h) + ihl_len); in process()
|
/Linux-v4.19/net/ipv4/ |
D | tcp_offload.c | 38 if (!pskb_may_pull(skb, sizeof(struct tcphdr))) in tcp4_gso_segment() 43 struct tcphdr *th = tcp_hdr(skb); in tcp4_gso_segment() 62 struct tcphdr *th; in tcp_gso_segment() 187 struct tcphdr *th; in tcp_gro_receive() 188 struct tcphdr *th2; in tcp_gro_receive() 293 struct tcphdr *th = tcp_hdr(skb); in tcp_gro_complete() 296 skb->csum_offset = offsetof(struct tcphdr, check); in tcp_gro_complete() 324 struct tcphdr *th = tcp_hdr(skb); in tcp4_gro_complete()
|
D | tcp_ipv4.c | 92 __be32 daddr, __be32 saddr, const struct tcphdr *th); 429 struct tcphdr *th = (struct tcphdr *)(icmp_skb->data + (iph->ihl << 2)); in tcp_v4_err() 620 struct tcphdr *th = tcp_hdr(skb); in __tcp_v4_send_check() 624 skb->csum_offset = offsetof(struct tcphdr, check); in __tcp_v4_send_check() 651 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_reset() 653 struct tcphdr th; in tcp_v4_send_reset() 683 rep.th.doff = sizeof(struct tcphdr) / 4; in tcp_v4_send_reset() 751 arg.csumoffset = offsetof(struct tcphdr, check) / 2; in tcp_v4_send_reset() 800 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_ack() 802 struct tcphdr th; in tcp_v4_send_ack() [all …]
|
/Linux-v4.19/net/ipv6/ |
D | tcpv6_offload.c | 35 struct tcphdr *th = tcp_hdr(skb); in tcp6_gro_complete() 47 struct tcphdr *th; in tcp6_gso_segment() 57 struct tcphdr *th = tcp_hdr(skb); in tcp6_gso_segment()
|
D | tcp_ipv6.c | 294 tp->rx_opt.mss_clamp = IPV6_MIN_MTU - sizeof(struct tcphdr) - sizeof(struct ipv6hdr); in tcp_v6_connect() 356 const struct tcphdr *th = (struct tcphdr *)(skb->data+offset); in tcp_v6_err() 584 const struct tcphdr *th, int nbytes) in tcp_v6_md5_hash_headers() 588 struct tcphdr *_th; in tcp_v6_md5_hash_headers() 597 _th = (struct tcphdr *)(bp + 1); in tcp_v6_md5_hash_headers() 609 const struct tcphdr *th) in tcp_v6_md5_hash_hdr() 647 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_md5_hash_skb() 695 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_inbound_md5_hash() 776 .mss_clamp = IPV6_MIN_MTU - sizeof(struct tcphdr) - 797 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_send_response() [all …]
|
/Linux-v4.19/net/bridge/netfilter/ |
D | nft_reject_bridge.c | 73 const struct tcphdr *oth; in nft_reject_br_send_v4_tcp_reset() 74 struct tcphdr _oth; in nft_reject_br_send_v4_tcp_reset() 83 nskb = alloc_skb(sizeof(struct iphdr) + sizeof(struct tcphdr) + in nft_reject_br_send_v4_tcp_reset() 190 const struct tcphdr *oth; in nft_reject_br_send_v6_tcp_reset() 191 struct tcphdr _oth; in nft_reject_br_send_v6_tcp_reset() 202 nskb = alloc_skb(sizeof(struct ipv6hdr) + sizeof(struct tcphdr) + in nft_reject_br_send_v6_tcp_reset()
|
/Linux-v4.19/net/ipv6/ila/ |
D | ila_common.c | 83 if (likely(pskb_may_pull(skb, nhoff + sizeof(struct tcphdr)))) { in ila_csum_adjust_transport() 84 struct tcphdr *th = (struct tcphdr *) in ila_csum_adjust_transport()
|