/linux-4.4.14/net/ipv4/netfilter/ |
D | nf_reject_ipv4.c | 19 const struct tcphdr *nf_reject_ip_tcphdr_get(struct sk_buff *oldskb, in nf_reject_ip_tcphdr_get() 20 struct tcphdr *_oth, int hook) in nf_reject_ip_tcphdr_get() 22 const struct tcphdr *oth; in nf_reject_ip_tcphdr_get() 29 sizeof(struct tcphdr), _oth); in nf_reject_ip_tcphdr_get() 71 const struct tcphdr *oth) in nf_reject_ip_tcphdr_put() 74 struct tcphdr *tcph; in nf_reject_ip_tcphdr_put() 77 tcph = (struct tcphdr *)skb_put(nskb, sizeof(struct tcphdr)); in nf_reject_ip_tcphdr_put() 81 tcph->doff = sizeof(struct tcphdr) / 4; in nf_reject_ip_tcphdr_put() 93 tcph->check = ~tcp_v4_check(sizeof(struct tcphdr), niph->saddr, in nf_reject_ip_tcphdr_put() 97 nskb->csum_offset = offsetof(struct tcphdr, check); in nf_reject_ip_tcphdr_put() [all …]
|
D | ipt_SYNPROXY.c | 45 struct iphdr *niph, struct tcphdr *nth, in synproxy_send_tcp() 53 nskb->csum_offset = offsetof(struct tcphdr, check); in synproxy_send_tcp() 75 const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_client_synack() 80 struct tcphdr *nth; in synproxy_send_client_synack() 96 nth = (struct tcphdr *)skb_put(nskb, tcp_hdr_size); in synproxy_send_client_synack() 117 const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_server_syn() 122 struct tcphdr *nth; in synproxy_send_server_syn() 137 nth = (struct tcphdr *)skb_put(nskb, tcp_hdr_size); 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() [all …]
|
D | ipt_ECN.c | 50 struct tcphdr _tcph, *tcph; in set_ect_tcp()
|
D | nf_nat_h323.c | 34 const struct tcphdr *th; in set_addr() 35 struct tcphdr _tcph; in set_addr()
|
/linux-4.4.14/net/ipv6/netfilter/ |
D | nf_reject_ipv6.c | 19 const struct tcphdr *nf_reject_ip6_tcphdr_get(struct sk_buff *oldskb, in nf_reject_ip6_tcphdr_get() 20 struct tcphdr *otcph, in nf_reject_ip6_tcphdr_get() 40 if (proto != IPPROTO_TCP || *otcplen < sizeof(struct tcphdr)) { in nf_reject_ip6_tcphdr_get() 46 otcph = skb_header_pointer(oldskb, tcphoff, sizeof(struct tcphdr), in nf_reject_ip6_tcphdr_get() 93 const struct tcphdr *oth, unsigned int otcplen) in nf_reject_ip6_tcphdr_put() 95 struct tcphdr *tcph; in nf_reject_ip6_tcphdr_put() 99 tcph = (struct tcphdr *)skb_put(nskb, sizeof(struct tcphdr)); in nf_reject_ip6_tcphdr_put() 101 tcph->doff = sizeof(struct tcphdr)/4; in nf_reject_ip6_tcphdr_put() 127 sizeof(struct tcphdr), IPPROTO_TCP, in nf_reject_ip6_tcphdr_put() 129 sizeof(struct tcphdr), 0)); in nf_reject_ip6_tcphdr_put() [all …]
|
D | ip6t_SYNPROXY.c | 43 struct ipv6hdr *niph, struct tcphdr *nth, in synproxy_send_tcp() 53 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() 109 nth = (struct tcphdr *)skb_put(nskb, tcp_hdr_size); in synproxy_send_client_synack() 130 const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_server_syn() 135 struct tcphdr *nth; in synproxy_send_server_syn() 150 nth = (struct tcphdr *)skb_put(nskb, tcp_hdr_size); in synproxy_send_server_syn() 175 const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_server_ack() 180 struct tcphdr *nth; in synproxy_send_server_ack() [all …]
|
/linux-4.4.14/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 | 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 | xt_TCPMSS.c | 86 struct tcphdr *tcph; in tcpmss_mangle_packet() 101 if (len < (int)sizeof(struct tcphdr)) in tcpmss_mangle_packet() 104 tcph = (struct tcphdr *)(skb_network_header(skb) + tcphoff); in tcpmss_mangle_packet() 129 for (i = sizeof(struct tcphdr); i <= tcp_hdrlen - TCPOLEN_MSS; i += optlen(opt, i)) { in tcpmss_mangle_packet() 167 tcph = (struct tcphdr *)(skb_network_header(skb) + tcphoff); in tcpmss_mangle_packet() 184 opt = (u_int8_t *)tcph + sizeof(struct tcphdr); in tcpmss_mangle_packet() 185 memmove(opt + TCPOLEN_MSS, opt, len - sizeof(struct tcphdr)); in tcpmss_mangle_packet() 213 sizeof(*iph) + sizeof(struct tcphdr)); in tcpmss_tg4() 242 sizeof(*ipv6h) + sizeof(struct tcphdr)); in tcpmss_tg6()
|
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 & XT_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 | 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 | 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 | xt_osf.c | 193 const struct tcphdr *tcp; in xt_osf_match_packet() 194 struct tcphdr _tcph; in xt_osf_match_packet() 208 tcp = skb_header_pointer(skb, ip_hdrlen(skb), sizeof(struct tcphdr), &_tcph); in xt_osf_match_packet() 219 if (tcp->doff * 4 > sizeof(struct tcphdr)) { in xt_osf_match_packet() 220 optsize = tcp->doff * 4 - sizeof(struct tcphdr); in xt_osf_match_packet() 223 sizeof(struct tcphdr), optsize, opts); in xt_osf_match_packet()
|
D | nf_conntrack_proto_tcp.c | 282 const struct tcphdr *hp; in tcp_pkt_to_tuple() 283 struct tcphdr _hdr; in tcp_pkt_to_tuple() 325 static unsigned int get_conntrack_index(const struct tcphdr *tcph) in get_conntrack_index() 366 const struct tcphdr *tcph) in segment_seq_plus_len() 385 const struct tcphdr *tcph, in tcp_options() 388 unsigned char buff[(15 * 4) - sizeof(struct tcphdr)]; in tcp_options() 390 int length = (tcph->doff*4) - sizeof(struct tcphdr); in tcp_options() 395 ptr = skb_header_pointer(skb, dataoff + sizeof(struct tcphdr), in tcp_options() 440 const struct tcphdr *tcph, __u32 *sack) in tcp_sack() 442 unsigned char buff[(15 * 4) - sizeof(struct tcphdr)]; in tcp_sack() [all …]
|
D | xt_tcpmss.c | 31 const struct tcphdr *th; in tcpmss_mt() 32 struct tcphdr _tcph; in tcpmss_mt()
|
D | nf_synproxy_core.c | 32 const struct tcphdr *th, struct synproxy_options *opts) in synproxy_parse_options() 113 synproxy_build_options(struct tcphdr *th, const struct synproxy_options *opts) in synproxy_build_options() 185 struct tcphdr *th, in synproxy_tstamp_adjust() 196 optoff = protoff + sizeof(struct tcphdr); in synproxy_tstamp_adjust()
|
D | xt_ecn.c | 33 struct tcphdr _tcph; in match_tcp() 34 const struct tcphdr *th; in match_tcp()
|
D | nf_conntrack_sane.c | 67 const struct tcphdr *th; in help() 68 struct tcphdr _tcph; in help()
|
D | nf_conntrack_irc.c | 111 const struct tcphdr *th; in help() 112 struct tcphdr _tcph; in help()
|
D | nf_nat_sip.c | 40 struct tcphdr *th; in mangle_packet() 44 th = (struct tcphdr *)(skb->data + protoff); in mangle_packet() 306 const struct tcphdr *th; in nf_nat_sip_seq_adjust() 311 th = (struct tcphdr *)(skb->data + protoff); in nf_nat_sip_seq_adjust()
|
D | nf_nat_helper.c | 102 struct tcphdr *tcph; in __nf_nat_mangle_tcp_packet()
|
D | xt_TPROXY.c | 257 struct tcphdr _hdr, *hp; in tproxy_handle_time_wait4() 418 struct tcphdr _hdr, *hp; in tproxy_handle_time_wait6()
|
D | nf_conntrack_pptp.c | 515 const struct tcphdr *tcph; in conntrack_pptp_help() 516 struct tcphdr _tcph; in conntrack_pptp_help()
|
D | nf_conntrack_ftp.c | 391 const struct tcphdr *th; in help() 392 struct tcphdr _tcph; in help()
|
D | nf_conntrack_h323_main.c | 125 const struct tcphdr *th; in get_tpkt_data() 126 struct tcphdr _tcph; in get_tpkt_data()
|
D | nf_conntrack_sip.c | 1485 struct tcphdr *th, _tcph; in sip_help_tcp()
|
/linux-4.4.14/include/net/netfilter/ |
D | nf_conntrack_synproxy.h | 57 struct tcphdr; 60 const struct tcphdr *th, 63 void synproxy_build_options(struct tcphdr *th, 71 struct tcphdr *th, struct nf_conn *ct,
|
/linux-4.4.14/include/net/netfilter/ipv4/ |
D | nf_reject.h | 11 const struct tcphdr *nf_reject_ip_tcphdr_get(struct sk_buff *oldskb, 12 struct tcphdr *_oth, int hook); 17 const struct tcphdr *oth);
|
/linux-4.4.14/include/net/netfilter/ipv6/ |
D | nf_reject.h | 11 const struct tcphdr *nf_reject_ip6_tcphdr_get(struct sk_buff *oldskb, 12 struct tcphdr *otcph, 19 const struct tcphdr *oth, unsigned int otcplen);
|
/linux-4.4.14/net/ipv4/ |
D | inet_lro.c | 55 static int lro_tcp_ip_check(const struct iphdr *iph, const struct tcphdr *tcph, in lro_tcp_ip_check() 106 struct tcphdr *tcph = lro_desc->tcph; in lro_update_tcp_ip_header() 130 static __wsum lro_tcp_data_csum(struct iphdr *iph, struct tcphdr *tcph, int len) in lro_tcp_data_csum() 148 struct iphdr *iph, struct tcphdr *tcph) in lro_init_desc() 186 struct tcphdr *tcph, int tcp_data_len) in lro_add_common() 215 struct iphdr *iph, struct tcphdr *tcph) in lro_add_packet() 236 struct tcphdr *tcph) in lro_check_tcp_conn() 249 struct tcphdr *tcph) in lro_get_desc() 299 struct tcphdr *tcph; in __lro_proc_skb()
|
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() 182 struct tcphdr *th; in tcp_gro_receive() 183 struct tcphdr *th2; in tcp_gro_receive() 276 struct tcphdr *th = tcp_hdr(skb); in tcp_gro_complete() 279 skb->csum_offset = offsetof(struct tcphdr, check); in tcp_gro_complete() 307 struct tcphdr *th = tcp_hdr(skb); in tcp4_gro_complete()
|
D | tcp_ipv4.c | 94 __be32 daddr, __be32 saddr, const struct tcphdr *th); 358 struct tcphdr *th = (struct tcphdr *)(icmp_skb->data + (iph->ihl << 2)); in tcp_v4_err() 546 struct tcphdr *th = tcp_hdr(skb); in __tcp_v4_send_check() 551 skb->csum_offset = offsetof(struct tcphdr, check); in __tcp_v4_send_check() 584 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_reset() 586 struct tcphdr th; in tcp_v4_send_reset() 615 rep.th.doff = sizeof(struct tcphdr) / 4; in tcp_v4_send_reset() 680 arg.csumoffset = offsetof(struct tcphdr, check) / 2; in tcp_v4_send_reset() 717 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_ack() 719 struct tcphdr th; in tcp_v4_send_ack() [all …]
|
D | syncookies.c | 178 u32 __cookie_v4_init_sequence(const struct iphdr *iph, const struct tcphdr *th, in __cookie_v4_init_sequence() 198 const struct tcphdr *th = tcp_hdr(skb); in cookie_v4_init_sequence() 207 int __cookie_v4_check(const struct iphdr *iph, const struct tcphdr *th, in __cookie_v4_check() 301 const struct tcphdr *th = tcp_hdr(skb); in cookie_v4_check()
|
D | tcp_minisocks.c | 101 const struct tcphdr *th) in tcp_timewait_state_process() 534 newtp->tcp_header_len = sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED; in tcp_create_openreq_child() 537 newtp->tcp_header_len = sizeof(struct tcphdr); in tcp_create_openreq_child() 577 const struct tcphdr *th = tcp_hdr(skb); in tcp_check_req() 583 if (th->doff > (sizeof(struct tcphdr)>>2)) { in tcp_check_req()
|
D | tcp_input.c | 153 if (len >= TCP_MSS_DEFAULT + sizeof(struct tcphdr) || in tcp_measure_rcv_mss() 159 (len >= TCP_MIN_MSS + sizeof(struct tcphdr) && in tcp_measure_rcv_mss() 263 static void tcp_ecn_rcv_synack(struct tcp_sock *tp, const struct tcphdr *th) in tcp_ecn_rcv_synack() 269 static void tcp_ecn_rcv_syn(struct tcp_sock *tp, const struct tcphdr *th) in tcp_ecn_rcv_syn() 275 static bool tcp_ecn_rcv_ecn_echo(const struct tcp_sock *tp, const struct tcphdr *th) in tcp_ecn_rcv_ecn_echo() 3702 const struct tcphdr *th = tcp_hdr(skb); in tcp_parse_options() 3703 int length = (th->doff * 4) - sizeof(struct tcphdr); in tcp_parse_options() 3808 static bool tcp_parse_aligned_timestamp(struct tcp_sock *tp, const struct tcphdr *th) in tcp_parse_aligned_timestamp() 3831 const struct tcphdr *th, struct tcp_sock *tp) in tcp_fast_parse_options() 3856 const u8 *tcp_parse_md5sig_option(const struct tcphdr *th) in tcp_parse_md5sig_option() [all …]
|
D | tcp_output.c | 360 tcp_ecn_make_synack(const struct request_sock *req, struct tcphdr *th) in tcp_ecn_make_synack() 913 struct tcphdr *th; in tcp_transmit_skb() 939 tcp_header_size = tcp_options_size + sizeof(struct tcphdr); in tcp_transmit_skb() 1294 mss_now = pmtu - icsk->icsk_af_ops->net_header_len - sizeof(struct tcphdr); in __tcp_mtu_to_mss() 1322 (tcp_sk(sk)->tcp_header_len - sizeof(struct tcphdr)); in tcp_mtu_to_mss() 1355 icsk->icsk_mtup.search_high = tp->rx_opt.mss_clamp + sizeof(struct tcphdr) + in tcp_mtup_init() 1429 sizeof(struct tcphdr); in tcp_current_mss() 1850 sizeof(struct tcphdr) + in tcp_mtu_check_reprobe() 2955 struct tcphdr *th; in tcp_make_synack() 3003 memset(th, 0, sizeof(struct tcphdr)); in tcp_make_synack() [all …]
|
D | tcp_probe.c | 108 const struct tcphdr *th, unsigned int len) in jtcp_rcv_established()
|
D | tcp.c | 3001 const struct tcphdr *th) in tcp_md5_hash_header() 3004 struct tcphdr hdr; in tcp_md5_hash_header() 3022 const struct tcphdr *tp = tcp_hdr(skb); in tcp_md5_hash_skb_data()
|
/linux-4.4.14/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() 54 struct tcphdr *th = tcp_hdr(skb); in tcp6_gso_segment()
|
D | syncookies.c | 101 const struct tcphdr *th, __u16 *mssp) in __cookie_v6_init_sequence() 120 const struct tcphdr *th = tcp_hdr(skb); in cookie_v6_init_sequence() 125 int __cookie_v6_check(const struct ipv6hdr *iph, const struct tcphdr *th, in __cookie_v6_check() 143 const struct tcphdr *th = tcp_hdr(skb); in cookie_v6_check()
|
D | tcp_ipv6.c | 271 tp->rx_opt.mss_clamp = IPV6_MIN_MTU - sizeof(struct tcphdr) - sizeof(struct ipv6hdr); in tcp_v6_connect() 324 const struct tcphdr *th = (struct tcphdr *)(skb->data+offset); in tcp_v6_err() 550 const struct tcphdr *th) in tcp_v6_md5_hash_hdr() 589 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_md5_hash_skb() 638 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_inbound_md5_hash() 721 .mss_clamp = IPV6_MIN_MTU - sizeof(struct tcphdr) - 741 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_send_response() 742 struct tcphdr *t1; in tcp_v6_send_response() 747 unsigned int tot_len = sizeof(struct tcphdr); in tcp_v6_send_response() 765 t1 = (struct tcphdr *) skb_push(buff, tot_len); in tcp_v6_send_response() [all …]
|
D | ila.c | 54 if (likely(pskb_may_pull(skb, nhoff + sizeof(struct tcphdr)))) { in update_ipv6_locator() 55 struct tcphdr *th = (struct tcphdr *) in update_ipv6_locator()
|
D | route.c | 1545 mtu -= sizeof(struct ipv6hdr) + sizeof(struct tcphdr); in ip6_default_advmss() 1556 if (mtu > IPV6_MAXPLEN - sizeof(struct tcphdr)) in ip6_default_advmss()
|
/linux-4.4.14/net/bridge/netfilter/ |
D | nft_reject_bridge.c | 49 const struct tcphdr *oth; in nft_reject_br_send_v4_tcp_reset() 50 struct tcphdr _oth; in nft_reject_br_send_v4_tcp_reset() 59 nskb = alloc_skb(sizeof(struct iphdr) + sizeof(struct tcphdr) + in nft_reject_br_send_v4_tcp_reset() 150 const struct tcphdr *oth; in nft_reject_br_send_v6_tcp_reset() 151 struct tcphdr _oth; in nft_reject_br_send_v6_tcp_reset() 162 nskb = alloc_skb(sizeof(struct ipv6hdr) + sizeof(struct tcphdr) + in nft_reject_br_send_v6_tcp_reset()
|
/linux-4.4.14/include/linux/ |
D | tcp.h | 27 static inline struct tcphdr *tcp_hdr(const struct sk_buff *skb) in tcp_hdr() 29 return (struct tcphdr *)skb_transport_header(skb); in tcp_hdr() 37 static inline struct tcphdr *inner_tcp_hdr(const struct sk_buff *skb) in inner_tcp_hdr() 39 return (struct tcphdr *)skb_inner_transport_header(skb); in inner_tcp_hdr()
|
D | inet_lro.h | 52 struct tcphdr *tcph;
|
/linux-4.4.14/net/netfilter/ipvs/ |
D | ip_vs_app.c | 285 static inline void vs_fix_seq(const struct ip_vs_seq *vseq, struct tcphdr *th) in vs_fix_seq() 312 vs_fix_ack_seq(const struct ip_vs_seq *vseq, struct tcphdr *th) in vs_fix_ack_seq() 362 struct tcphdr *th; in app_tcp_pkt_out() 368 th = (struct tcphdr *)(skb_network_header(skb) + tcp_offset); in app_tcp_pkt_out() 437 struct tcphdr *th; in app_tcp_pkt_in() 443 th = (struct tcphdr *)(skb_network_header(skb) + tcp_offset); in app_tcp_pkt_in()
|
D | ip_vs_ftp.c | 173 struct tcphdr *th; in ip_vs_ftp_out() 205 th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]); in ip_vs_ftp_out() 315 struct tcphdr *th; in ip_vs_ftp_in() 345 th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]); in ip_vs_ftp_in()
|
D | ip_vs_proto_tcp.c | 41 struct tcphdr _tcph, *th; in tcp_conn_schedule() 109 tcp_fast_csum_update(int af, struct tcphdr *tcph, in tcp_fast_csum_update() 130 tcp_partial_csum_update(int af, struct tcphdr *tcph, in tcp_partial_csum_update() 154 struct tcphdr *tcph; in tcp_snat_handler() 232 struct tcphdr *tcph; in tcp_dnat_handler() 480 static inline int tcp_state_idx(struct tcphdr *th) in tcp_state_idx() 495 int direction, struct tcphdr *th) in set_tcp_state() 570 struct tcphdr _tcph, *th; in tcp_state_transition()
|
D | ip_vs_core.c | 1048 struct tcphdr _tcph, *th; in is_tcp_reset() 1061 struct tcphdr _tcph, *th; in is_new_conn()
|
/linux-4.4.14/include/net/ |
D | ip6_checksum.h | 71 struct tcphdr *th = tcp_hdr(skb); in __tcp_v6_send_check() 76 skb->csum_offset = offsetof(struct tcphdr, check); in __tcp_v6_send_check()
|
D | slhc_vj.h | 132 struct tcphdr cs_tcp;
|
D | tcp.h | 371 const struct tcphdr *th, unsigned int len); 409 const struct tcphdr *th); 444 const u8 *tcp_parse_md5sig_option(const struct tcphdr *th); 480 int __cookie_v4_check(const struct iphdr *iph, const struct tcphdr *th, 525 u32 __cookie_v4_init_sequence(const struct iphdr *iph, const struct tcphdr *th, 534 int __cookie_v6_check(const struct ipv6hdr *iph, const struct tcphdr *th, 539 const struct tcphdr *th, u16 *mssp); 1410 int tcp_md5_hash_header(struct tcp_md5sig_pool *, const struct tcphdr *);
|
/linux-4.4.14/samples/bpf/ |
D | tcbpf1_kern.c | 30 #define TCP_CSUM_OFF (ETH_HLEN + sizeof(struct iphdr) + offsetof(struct tcphdr, check)) 44 #define TCP_DPORT_OFF (ETH_HLEN + sizeof(struct iphdr) + offsetof(struct tcphdr, dest))
|
/linux-4.4.14/net/core/ |
D | tso.c | 18 struct tcphdr *tcph; in tso_build_hdr() 34 tcph = (struct tcphdr *)(hdr + skb_transport_offset(skb)); in tso_build_hdr()
|
D | flow_dissector.c | 754 poff += max_t(u32, sizeof(struct tcphdr), (*doff & 0xF0) >> 2); in __skb_get_poff()
|
D | skbuff.c | 3836 err = skb_maybe_pull_tail(skb, off + sizeof(struct tcphdr), in skb_checksum_setup_ip() 3839 offsetof(struct tcphdr, in skb_checksum_setup_ip()
|
/linux-4.4.14/net/netfilter/ipset/ |
D | ip_set_getport.c | 29 struct tcphdr _tcph; in get_port() 30 const struct tcphdr *th; in get_port()
|
/linux-4.4.14/include/uapi/linux/ |
D | tcp.h | 24 struct tcphdr { struct 65 struct tcphdr hdr; argument
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_rx.c | 102 struct tcphdr *tcp; in mlx5e_lro_update_hdr() 111 tcp = (struct tcphdr *)(skb->data + ETH_HLEN + in mlx5e_lro_update_hdr() 116 tcp = (struct tcphdr *)(skb->data + ETH_HLEN + in mlx5e_lro_update_hdr()
|
/linux-4.4.14/drivers/net/slip/ |
D | slhc.c | 239 struct tcphdr *th, *oth; in slhc_compress() 263 th = (struct tcphdr *)(((unsigned char *)ip) + ip->ihl*4); in slhc_compress() 491 register struct tcphdr *thp; in slhc_uncompress() 674 memcpy(cs->cs_tcpopt, icp + ihl*4 + sizeof(struct tcphdr), (cs->cs_tcp.doff - 5) * 4); in slhc_remember()
|
/linux-4.4.14/include/uapi/linux/netfilter/ |
D | xt_osf.h | 84 struct tcphdr tcp;
|
/linux-4.4.14/drivers/infiniband/hw/nes/ |
D | nes_mgt.c | 178 struct tcphdr *tcph = (struct tcphdr *)(((char *)iph) + (4 * iph->ihl)); in nes_get_seq() 246 struct tcphdr *tcph; in get_fpdu_info() 338 tcph = (struct tcphdr *)(((char *)iph) + (4 * iph->ihl)); in get_fpdu_info() 358 tcph = (struct tcphdr *)(((char *)iph) + (4 * iph->ihl)); in get_fpdu_info() 387 tcph = (struct tcphdr *)(((char *)iph) + (4 * iph->ihl)); in get_fpdu_info() 512 struct tcphdr *tcph; in queue_fpdus() 523 tcph = (struct tcphdr *)(((char *)iph) + (4 * iph->ihl)); in queue_fpdus()
|
D | nes_cm.c | 115 static int handle_tcp_options(struct nes_cm_node *cm_node, struct tcphdr *tcph, struct sk_buff *skb… 439 struct tcphdr *tcph; in form_cm_frame() 458 tcph = (struct tcphdr *)buf; in form_cm_frame() 1642 sizeof(struct tcphdr) - ETH_HLEN - VLAN_HLEN; in make_cm_node() 1857 struct tcphdr *tcph) in handle_rst_pkt() 1994 static int check_syn(struct nes_cm_node *cm_node, struct tcphdr *tcph, in check_syn() 2006 static int check_seq(struct nes_cm_node *cm_node, struct tcphdr *tcph, in check_seq() 2041 struct tcphdr *tcph) in handle_syn_pkt() 2047 optionsize = (tcph->doff << 2) - sizeof(struct tcphdr); in handle_syn_pkt() 2102 struct tcphdr *tcph) in handle_synack_pkt() [all …]
|
D | nes_nic.c | 365 struct tcphdr *tcph; in nes_nic_send() 471 struct tcphdr *tcph; in nes_netdev_start_xmit() 571 original_first_length = hoffset + ((((struct tcphdr *)skb_transport_header(skb))->doff)<<2); in nes_netdev_start_xmit() 606 tcph = (struct tcphdr *) in nes_netdev_start_xmit()
|
/linux-4.4.14/net/openvswitch/ |
D | flow.c | 221 if (unlikely(!pskb_may_pull(skb, th_ofs + sizeof(struct tcphdr)))) in tcphdr_ok() 225 if (unlikely(tcp_len < sizeof(struct tcphdr) || in tcphdr_ok() 536 struct tcphdr *tcp = tcp_hdr(skb); in key_extract() 655 struct tcphdr *tcp = tcp_hdr(skb); in key_extract()
|
D | actions.c | 297 if (likely(transport_len >= sizeof(struct tcphdr))) in update_ip_l4_checksum() 329 if (likely(transport_len >= sizeof(struct tcphdr))) in update_ipv6_checksum() 564 struct tcphdr *th; in set_tcp() 569 sizeof(struct tcphdr)); in set_tcp()
|
/linux-4.4.14/security/ |
D | lsm_audit.c | 63 struct tcphdr *th = tcp_hdr(skb); in ipv4_skb_to_auditdata() 137 struct tcphdr _tcph, *th; in ipv6_skb_to_auditdata()
|
/linux-4.4.14/net/sched/ |
D | act_csum.c | 177 struct tcphdr *tcph; in tcf_csum_ipv4_tcp() 198 struct tcphdr *tcph; in tcf_csum_ipv6_tcp()
|
D | act_nat.c | 156 struct tcphdr *tcph; in tcf_nat()
|
/linux-4.4.14/drivers/staging/gdm72xx/ |
D | gdm_qos.c | 259 struct tcphdr *tcph; in gdm_qos_send_hci_pkt() 264 tcph = (struct tcphdr *)iph + iph->ihl*4; in gdm_qos_send_hci_pkt()
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_io.c | 1269 struct tcphdr *th; in qlcnic_process_lro() 1321 th = (struct tcphdr *)(skb->data + sizeof(struct ipv6hdr)); in qlcnic_process_lro() 1326 th = (struct tcphdr *)(skb->data + (iph->ihl << 2)); in qlcnic_process_lro() 1791 struct tcphdr *th; in qlcnic_83xx_process_lro() 1843 th = (struct tcphdr *)(skb->data + sizeof(struct ipv6hdr)); in qlcnic_83xx_process_lro() 1849 th = (struct tcphdr *)(skb->data + (iph->ihl << 2)); in qlcnic_83xx_process_lro()
|
/linux-4.4.14/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.c | 255 struct tcphdr *tcp; in i40e_add_del_fdir_tcpv4() 272 tcp = (struct tcphdr *)(raw_packet + IP_HEADER_OFFSET in i40e_add_del_fdir_tcpv4() 1977 struct tcphdr *th; in i40e_atr() 2025 th = (struct tcphdr *)(hdr.network + hlen); in i40e_atr() 2201 struct tcphdr *tcph; in i40e_tso()
|
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/ |
D | d3.c | 397 struct tcphdr tcp; in iwl_mvm_build_tcp_packet() 400 u16 ip_tot_len = sizeof(struct iphdr) + sizeof(struct tcphdr); in iwl_mvm_build_tcp_packet() 420 pkt->tcp.doff = sizeof(struct tcphdr) / 4; in iwl_mvm_build_tcp_packet() 443 pkt->tcp.doff = (sizeof(struct tcphdr) + 8) / 4; in iwl_mvm_build_tcp_packet()
|
D | mac80211.c | 129 sizeof(struct tcphdr), 134 sizeof(struct tcphdr),
|
/linux-4.4.14/drivers/net/ethernet/neterion/ |
D | s2io.c | 4053 struct tcphdr *th; in s2io_xmit() 4057 th = (struct tcphdr *)(((unsigned char *)ip) + in s2io_xmit() 8230 struct tcphdr **tcp, struct RxD_t *rxdp, in check_L2_lro_capable() 8261 *tcp = (struct tcphdr *)((unsigned long)*ip + ip_len); in check_L2_lro_capable() 8267 struct tcphdr *tcp) in check_for_socket_match() 8278 static inline int get_l4_pyld_length(struct iphdr *ip, struct tcphdr *tcp) in get_l4_pyld_length() 8284 struct iphdr *ip, struct tcphdr *tcp, in initiate_new_session() 8314 struct tcphdr *tcp = lro->tcph; in update_L3L4_header() 8341 struct tcphdr *tcp, u32 l4_pyld) in aggregate_new_rx() 8363 struct tcphdr *tcp, u32 tcp_pyld_len) in verify_l3_l4_lro_capable() [all …]
|
D | s2io.h | 676 struct tcphdr *tcph;
|
/linux-4.4.14/drivers/infiniband/hw/cxgb4/ |
D | cm.c | 242 sizeof(struct tcphdr); in set_emss() 625 sizeof(struct tcphdr) + in best_mtu() 2300 const struct tcphdr *tcph; in accept_cr() 2355 struct tcphdr *tcp = (struct tcphdr *) in get_4tuple() 2453 hdrs = sizeof(struct iphdr) + sizeof(struct tcphdr) + in pass_accept_req() 3781 struct tcphdr *tcph; in rx_pkt() 3846 tcph = (struct tcphdr *)(iph + 1); in rx_pkt()
|
/linux-4.4.14/drivers/net/ethernet/sfc/ |
D | tx.c | 1165 struct tcphdr *tsoh_th; in tso_start_new_packet() 1174 tsoh_th = (struct tcphdr *)(header + st->tcp_off); in tso_start_new_packet()
|
/linux-4.4.14/drivers/net/ethernet/tile/ |
D | tilepro.c | 1690 struct tcphdr *th = (struct tcphdr *)(nh + ih_len); in tile_net_tx_tso()
|
D | tilegx.c | 1727 struct tcphdr *th; in tso_headers_prepare() 1786 th = (struct tcphdr *)(buf + th_off); in tso_headers_prepare()
|
/linux-4.4.14/drivers/net/vmxnet3/ |
D | vmxnet3_drv.c | 912 struct tcphdr *tcph = tcp_hdr(skb); in vmxnet3_prepare_tso() 1194 struct tcphdr *tcp; in vmxnet3_get_hdr_len() 1199 if (unlikely(sizeof(struct iphdr) + sizeof(struct tcphdr) > maplen)) in vmxnet3_get_hdr_len() 1216 return sizeof(struct ipv6hdr) + sizeof(struct tcphdr); in vmxnet3_get_hdr_len() 1224 if (hlen + sizeof(struct tcphdr) > maplen) in vmxnet3_get_hdr_len()
|
/linux-4.4.14/drivers/net/ethernet/hisilicon/hns/ |
D | hns_enet.c | 285 (max_size - sizeof(struct tcphdr))) in hns_nic_get_headlen() 292 if (hlen < sizeof(struct tcphdr)) in hns_nic_get_headlen()
|
/linux-4.4.14/drivers/net/ |
D | vxlan.c | 532 offsetof(struct tcphdr, check)); in vxlan_gro_remcsum() 1136 offsetof(struct tcphdr, check)); in vxlan_remcsum() 1705 skb->csum_offset == offsetof(struct tcphdr, check))) { in vxlan6_xmit_skb() 1790 skb->csum_offset == offsetof(struct tcphdr, check))) { in vxlan_xmit_skb()
|
/linux-4.4.14/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_init.c | 1599 struct tcphdr *th; in netxen_process_lro() 1642 th = (struct tcphdr *)((skb->data + vhdr_len) + (iph->ihl << 2)); in netxen_process_lro()
|
/linux-4.4.14/drivers/net/ethernet/sun/ |
D | sunvnet.c | 331 struct tcphdr *ptcp = tcp_hdr(skb); in vnet_fullcsum() 1229 curr->csum_offset = offsetof(struct tcphdr, check); in vnet_handle_offloads()
|
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_main.c | 808 hdrlen = (th - skb->data) + (((struct tcphdr *)th)->doff << 2); in fm10k_tso()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_cmn.c | 519 u16 hdrs_len = ETH_HLEN + sizeof(struct tcphdr); in bnx2x_set_gro_params() 707 struct tcphdr *th; in bnx2x_gro_ip_csum() 719 struct tcphdr *th; in bnx2x_gro_ipv6_csum()
|
D | bnx2x.h | 882 #define SKB_CS_OFF(skb) (offsetof(struct tcphdr, check) - \
|
/linux-4.4.14/drivers/net/ethernet/sgi/ |
D | ioc3-eth.c | 1451 csoff += offsetof(struct tcphdr, check); in ioc3_start_xmit()
|
/linux-4.4.14/drivers/net/ethernet/intel/i40evf/ |
D | i40e_txrx.c | 1450 struct tcphdr *tcph; in i40e_tso()
|
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_main.c | 7024 struct tcphdr *tcphdr; in ixgbe_tx_csum() member 7062 mss_l4len_idx = (transport_hdr.tcphdr->doff * 4) << in ixgbe_tx_csum() 7341 struct tcphdr *th; in ixgbe_atr()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt.c | 847 #define BNXT_IPV4_HDR_SIZE (sizeof(struct iphdr) + sizeof(struct tcphdr)) 848 #define BNXT_IPV6_HDR_SIZE (sizeof(struct ipv6hdr) + sizeof(struct tcphdr)) 856 struct tcphdr *th; in bnxt_gro_skb()
|
/linux-4.4.14/drivers/net/ethernet/neterion/vxge/ |
D | vxge-main.c | 636 struct tcphdr *th; in vxge_get_vpath_no() 641 th = (struct tcphdr *)(((unsigned char *)ip) + in vxge_get_vpath_no()
|
/linux-4.4.14/security/selinux/ |
D | hooks.c | 3779 struct tcphdr _tcph, *th; in selinux_parse_skb_ipv4() 3864 struct tcphdr _tcph, *th; in selinux_parse_skb_ipv6()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/ |
D | cnic.c | 3515 sizeof(struct tcphdr); in cnic_cm_conn_req() 3519 sizeof(struct tcphdr); in cnic_cm_conn_req()
|
D | tg3.c | 7901 struct tcphdr *tcph = NULL; in tg3_start_xmit() 13422 struct tcphdr *th; in tg3_run_loopback() 13424 th = (struct tcphdr *)&tx_data[val]; in tg3_run_loopback()
|
/linux-4.4.14/security/smack/ |
D | smack_lsm.c | 3872 struct tcphdr _tcph, *th; in smk_skb_to_addr_ipv6()
|
/linux-4.4.14/drivers/net/ethernet/ibm/ehea/ |
D | ehea_main.c | 2020 offsetof(struct tcphdr, check); in xmit_common()
|
/linux-4.4.14/drivers/s390/net/ |
D | qeth_l3_main.c | 2785 struct tcphdr *tcph = tcp_hdr(skb); in qeth_tso_fill_header()
|
/linux-4.4.14/drivers/net/usb/ |
D | r8152.c | 1428 struct tcphdr *th; in msdn_giant_send_check()
|
/linux-4.4.14/drivers/net/ethernet/realtek/ |
D | r8169.c | 6980 struct tcphdr *th; in msdn_giant_send_check()
|