/net/ipv4/netfilter/ |
D | nf_reject_ipv4.c | 44 const struct tcphdr *oth; in nf_reject_skb_v4_tcp_reset() 47 struct tcphdr _oth; in nf_reject_skb_v4_tcp_reset() 56 nskb = alloc_skb(sizeof(struct iphdr) + sizeof(struct tcphdr) + in nf_reject_skb_v4_tcp_reset() 137 const struct tcphdr *nf_reject_ip_tcphdr_get(struct sk_buff *oldskb, in nf_reject_ip_tcphdr_get() 138 struct tcphdr *_oth, int hook) in nf_reject_ip_tcphdr_get() 140 const struct tcphdr *oth; in nf_reject_ip_tcphdr_get() 150 sizeof(struct tcphdr), _oth); in nf_reject_ip_tcphdr_get() 192 const struct tcphdr *oth) in nf_reject_ip_tcphdr_put() 195 struct tcphdr *tcph; in nf_reject_ip_tcphdr_put() 198 tcph = skb_put_zero(nskb, sizeof(struct tcphdr)); in nf_reject_ip_tcphdr_put() [all …]
|
D | nf_tproxy_ipv4.c | 23 struct tcphdr _hdr, *hp; in nf_tproxy_handle_time_wait4() 86 struct tcphdr _hdr, *hp; in nf_tproxy_get_sock_v4() 89 sizeof(struct tcphdr), &_hdr); in nf_tproxy_get_sock_v4()
|
/net/ipv6/netfilter/ |
D | nf_reject_ipv6.c | 65 const struct tcphdr *oth; in nf_reject_skb_v6_tcp_reset() 66 struct tcphdr _oth; in nf_reject_skb_v6_tcp_reset() 77 nskb = alloc_skb(sizeof(struct ipv6hdr) + sizeof(struct tcphdr) + in nf_reject_skb_v6_tcp_reset() 149 const struct tcphdr *nf_reject_ip6_tcphdr_get(struct sk_buff *oldskb, in nf_reject_ip6_tcphdr_get() 150 struct tcphdr *otcph, in nf_reject_ip6_tcphdr_get() 170 if (proto != IPPROTO_TCP || *otcplen < sizeof(struct tcphdr)) { in nf_reject_ip6_tcphdr_get() 176 otcph = skb_header_pointer(oldskb, tcphoff, sizeof(struct tcphdr), in nf_reject_ip6_tcphdr_get() 223 const struct tcphdr *oth, unsigned int otcplen) in nf_reject_ip6_tcphdr_put() 225 struct tcphdr *tcph; in nf_reject_ip6_tcphdr_put() 229 tcph = skb_put(nskb, sizeof(struct tcphdr)); in nf_reject_ip6_tcphdr_put() [all …]
|
D | nf_tproxy_ipv6.c | 46 struct tcphdr _hdr, *hp; in nf_tproxy_handle_time_wait6() 87 struct tcphdr _hdr, *hp; in nf_tproxy_get_sock_v6() 90 sizeof(struct tcphdr), &_hdr); in nf_tproxy_get_sock_v6()
|
/net/netfilter/ |
D | xt_TCPMSS.c | 78 struct tcphdr *tcph; in tcpmss_mangle_packet() 93 if (len < (int)sizeof(struct tcphdr)) in tcpmss_mangle_packet() 96 tcph = (struct tcphdr *)(skb_network_header(skb) + tcphoff); in tcpmss_mangle_packet() 99 if (len < tcp_hdrlen || tcp_hdrlen < sizeof(struct tcphdr)) in tcpmss_mangle_packet() 117 for (i = sizeof(struct tcphdr); i <= tcp_hdrlen - TCPOLEN_MSS; i += optlen(opt, i)) { in tcpmss_mangle_packet() 159 tcph = (struct tcphdr *)(skb_network_header(skb) + tcphoff); in tcpmss_mangle_packet() 176 opt = (u_int8_t *)tcph + sizeof(struct tcphdr); in tcpmss_mangle_packet() 177 memmove(opt + TCPOLEN_MSS, opt, len - sizeof(struct tcphdr)); in tcpmss_mangle_packet() 205 sizeof(*iph) + sizeof(struct tcphdr)); in tcpmss_tg4() 234 sizeof(*ipv6h) + sizeof(struct tcphdr)); in tcpmss_tg6()
|
D | nf_synproxy_core.c | 29 const struct tcphdr *th, struct synproxy_options *opts) in synproxy_parse_options() 115 synproxy_build_options(struct tcphdr *th, const struct synproxy_options *opts) in synproxy_build_options() 186 struct tcphdr *th, struct nf_conn *ct, in synproxy_tstamp_adjust() 196 optoff = protoff + sizeof(struct tcphdr); in synproxy_tstamp_adjust() 443 struct iphdr *niph, struct tcphdr *nth, in synproxy_send_tcp() 449 nskb->csum_offset = offsetof(struct tcphdr, check); in synproxy_send_tcp() 470 const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_client_synack() 475 struct tcphdr *nth; in synproxy_send_client_synack() 513 const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_server_syn() 519 struct tcphdr *nth; in synproxy_send_server_syn() [all …]
|
D | nfnetlink_osf.c | 165 static const struct tcphdr *nf_osf_hdr_ctx_init(struct nf_osf_hdr_ctx *ctx, in nf_osf_hdr_ctx_init() 169 struct tcphdr *_tcph) in nf_osf_hdr_ctx_init() 171 const struct tcphdr *tcp; in nf_osf_hdr_ctx_init() 173 tcp = skb_header_pointer(skb, ip_hdrlen(skb), sizeof(struct tcphdr), _tcph); in nf_osf_hdr_ctx_init() 184 if (tcp->doff * 4 > sizeof(struct tcphdr)) { in nf_osf_hdr_ctx_init() 185 ctx->optsize = tcp->doff * 4 - sizeof(struct tcphdr); in nf_osf_hdr_ctx_init() 188 sizeof(struct tcphdr), ctx->optsize, opts); in nf_osf_hdr_ctx_init() 209 const struct tcphdr *tcp; in nf_osf_match() 210 struct tcphdr _tcph; in nf_osf_match() 270 const struct tcphdr *tcp; in nf_osf_find() [all …]
|
D | nft_synproxy.c | 24 const struct tcphdr *tcp, in nft_synproxy_tcp_options() 47 const struct tcphdr *tcp, in nft_synproxy_eval_v4() 48 struct tcphdr *_tcph, in nft_synproxy_eval_v4() 78 const struct tcphdr *tcp, in nft_synproxy_eval_v6() 79 struct tcphdr *_tcph, in nft_synproxy_eval_v6() 113 const struct tcphdr *tcp; in nft_synproxy_do_eval() 114 struct tcphdr _tcph; in nft_synproxy_do_eval() 127 sizeof(struct tcphdr), in nft_synproxy_do_eval()
|
D | nf_conntrack_seqadj.c | 64 const struct tcphdr *th; in nf_ct_tcp_seqadj_set() 69 th = (struct tcphdr *)(skb_network_header(skb) + ip_hdrlen(skb)); in nf_ct_tcp_seqadj_set() 76 struct tcphdr *tcph, in nf_ct_sack_block_adjust() 122 struct tcphdr *tcph = (void *)skb->data + protoff; in nf_ct_sack_adjust() 126 optoff = protoff + sizeof(struct tcphdr); in nf_ct_sack_adjust() 169 struct tcphdr *tcph; in nf_ct_seq_adjust()
|
D | xt_TCPOPTSTRIP.c | 34 struct tcphdr *tcph, _th; in tcpoptstrip_mangle_packet() 49 if (tcp_hdrlen < sizeof(struct tcphdr)) in tcpoptstrip_mangle_packet() 56 tcph = (struct tcphdr *)(skb_network_header(skb) + tcphoff); in tcpoptstrip_mangle_packet() 63 for (i = sizeof(struct tcphdr); i < tcp_hdrlen - 1; i += optl) { in tcpoptstrip_mangle_packet()
|
D | xt_tcpudp.c | 41 u_int8_t _opt[60 - sizeof(struct tcphdr)]; in tcp_find_option() 50 op = skb_header_pointer(skb, protoff + sizeof(struct tcphdr), in tcp_find_option() 68 const struct tcphdr *th; in tcp_mt() 69 struct tcphdr _tcph; in tcp_mt()
|
D | nf_conntrack_proto_tcp.c | 269 static unsigned int get_conntrack_index(const struct tcphdr *tcph) in get_conntrack_index() 310 const struct tcphdr *tcph) in segment_seq_plus_len() 329 const struct tcphdr *tcph, in tcp_options() 332 unsigned char buff[(15 * 4) - sizeof(struct tcphdr)]; in tcp_options() 334 int length = (tcph->doff*4) - sizeof(struct tcphdr); in tcp_options() 339 ptr = skb_header_pointer(skb, dataoff + sizeof(struct tcphdr), in tcp_options() 386 const struct tcphdr *tcph, __u32 *sack) in tcp_sack() 388 unsigned char buff[(15 * 4) - sizeof(struct tcphdr)]; in tcp_sack() 390 int length = (tcph->doff*4) - sizeof(struct tcphdr); in tcp_sack() 396 ptr = skb_header_pointer(skb, dataoff + sizeof(struct tcphdr), in tcp_sack() [all …]
|
D | nft_exthdr.c | 174 struct tcphdr *tcph; in nft_tcp_header_pointer() 194 u8 buff[sizeof(struct tcphdr) + MAX_TCP_OPTION_SPACE]; in nft_exthdr_tcp_eval() 198 struct tcphdr *tcph; in nft_exthdr_tcp_eval() 238 u8 buff[sizeof(struct tcphdr) + MAX_TCP_OPTION_SPACE]; in nft_exthdr_tcp_set_eval() 241 struct tcphdr *tcph; in nft_exthdr_tcp_set_eval() 251 tcph = (struct tcphdr *)(pkt->skb->data + nft_thoff(pkt)); in nft_exthdr_tcp_set_eval() 318 u8 buff[sizeof(struct tcphdr) + MAX_TCP_OPTION_SPACE]; in nft_exthdr_tcp_strip_eval() 321 struct tcphdr *tcph; in nft_exthdr_tcp_strip_eval() 331 tcph = (struct tcphdr *)(pkt->skb->data + nft_thoff(pkt)); in nft_exthdr_tcp_strip_eval()
|
D | nft_osf.c | 27 const struct tcphdr *tcp; in nft_osf_eval() 29 struct tcphdr _tcph; in nft_osf_eval() 37 sizeof(struct tcphdr), &_tcph); in nft_osf_eval()
|
D | xt_tcpmss.c | 28 const struct tcphdr *th; in tcpmss_mt() 29 struct tcphdr _tcph; in tcpmss_mt()
|
/net/ipv4/ |
D | tcp_offload.c | 35 if (!pskb_may_pull(skb, sizeof(struct tcphdr))) in tcp4_gso_segment() 40 struct tcphdr *th = tcp_hdr(skb); in tcp4_gso_segment() 59 struct tcphdr *th; in tcp_gso_segment() 184 struct tcphdr *th; in tcp_gro_receive() 185 struct tcphdr *th2; in tcp_gro_receive() 290 struct tcphdr *th = tcp_hdr(skb); in tcp_gro_complete() 293 skb->csum_offset = offsetof(struct tcphdr, check); in tcp_gro_complete() 325 struct tcphdr *th = tcp_hdr(skb); in tcp4_gro_complete()
|
D | tcp_ipv4.c | 88 __be32 daddr, __be32 saddr, const struct tcphdr *th); 470 struct tcphdr *th = (struct tcphdr *)(skb->data + (iph->ihl << 2)); in tcp_v4_err() 633 struct tcphdr *th = tcp_hdr(skb); in __tcp_v4_send_check() 637 skb->csum_offset = offsetof(struct tcphdr, check); in __tcp_v4_send_check() 670 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_reset() 672 struct tcphdr th; in tcp_v4_send_reset() 701 rep.th.doff = sizeof(struct tcphdr) / 4; in tcp_v4_send_reset() 795 arg.csumoffset = offsetof(struct tcphdr, check) / 2; in tcp_v4_send_reset() 855 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_ack() 857 struct tcphdr th; in tcp_v4_send_ack() [all …]
|
/net/ipv6/ |
D | tcpv6_offload.c | 32 struct tcphdr *th = tcp_hdr(skb); in tcp6_gro_complete() 44 struct tcphdr *th; in tcp6_gso_segment() 54 struct tcphdr *th = tcp_hdr(skb); in tcp6_gso_segment()
|
D | tcp_ipv6.c | 307 tp->rx_opt.mss_clamp = IPV6_MIN_MTU - sizeof(struct tcphdr) - sizeof(struct ipv6hdr); in tcp_v6_connect() 381 const struct tcphdr *th = (struct tcphdr *)(skb->data+offset); in tcp_v6_err() 671 const struct tcphdr *th, int nbytes) in tcp_v6_md5_hash_headers() 675 struct tcphdr *_th; in tcp_v6_md5_hash_headers() 684 _th = (struct tcphdr *)(bp + 1); in tcp_v6_md5_hash_headers() 696 const struct tcphdr *th) in tcp_v6_md5_hash_hdr() 734 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_md5_hash_skb() 783 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_inbound_md5_hash() 876 .mss_clamp = IPV6_MIN_MTU - sizeof(struct tcphdr) - 896 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_send_response() [all …]
|
D | syncookies.c | 93 const struct tcphdr *th, __u16 *mssp) in __cookie_v6_init_sequence() 112 const struct tcphdr *th = tcp_hdr(skb); in cookie_v6_init_sequence() 117 int __cookie_v6_check(const struct ipv6hdr *iph, const struct tcphdr *th, in __cookie_v6_check() 135 const struct tcphdr *th = tcp_hdr(skb); in cookie_v6_check()
|
/net/core/ |
D | selftests.c | 59 struct tcphdr *thdr = NULL; in net_test_get_skb() 68 size += sizeof(struct tcphdr); in net_test_get_skb() 105 thdr->doff = sizeof(struct tcphdr) / 4; in net_test_get_skb() 158 skb->csum_offset = offsetof(struct tcphdr, check); in net_test_get_skb() 181 struct tcphdr *thdr; in net_test_loopback_validate() 212 thdr = (struct tcphdr *)((u8 *)ihdr + 4 * ihdr->ihl); in net_test_loopback_validate()
|
/net/netfilter/ipvs/ |
D | ip_vs_app.c | 288 static inline void vs_fix_seq(const struct ip_vs_seq *vseq, struct tcphdr *th) in vs_fix_seq() 315 vs_fix_ack_seq(const struct ip_vs_seq *vseq, struct tcphdr *th) in vs_fix_ack_seq() 366 struct tcphdr *th; in app_tcp_pkt_out() 372 th = (struct tcphdr *)(skb_network_header(skb) + tcp_offset); in app_tcp_pkt_out() 443 struct tcphdr *th; in app_tcp_pkt_in() 449 th = (struct tcphdr *)(skb_network_header(skb) + tcp_offset); in app_tcp_pkt_in()
|
D | ip_vs_proto_tcp.c | 41 struct tcphdr _tcph, *th; in tcp_conn_schedule() 105 tcp_fast_csum_update(int af, struct tcphdr *tcph, in tcp_fast_csum_update() 126 tcp_partial_csum_update(int af, struct tcphdr *tcph, in tcp_partial_csum_update() 150 struct tcphdr *tcph; in tcp_snat_handler() 228 struct tcphdr *tcph; in tcp_dnat_handler() 498 static inline int tcp_state_idx(struct tcphdr *th) in tcp_state_idx() 513 int direction, struct tcphdr *th) in set_tcp_state() 592 struct tcphdr _tcph, *th; in tcp_state_transition()
|
/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()
|
/net/netfilter/ipset/ |
D | ip_set_getport.c | 30 struct tcphdr _tcph; in get_port() 31 const struct tcphdr *th; in get_port()
|