Home
last modified time | relevance | path

Searched refs:tcphdr (Results 1 – 99 of 99) sorted by relevance

/linux-4.1.27/net/ipv4/netfilter/
Dnf_reject_ipv4.c19 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 …]
Dipt_SYNPROXY.c44 struct iphdr *niph, struct tcphdr *nth, in synproxy_send_tcp()
50 nskb->csum_offset = offsetof(struct tcphdr, check); in synproxy_send_tcp()
71 synproxy_send_client_synack(const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_client_synack()
76 struct tcphdr *nth; in synproxy_send_client_synack()
92 nth = (struct tcphdr *)skb_put(nskb, tcp_hdr_size); in synproxy_send_client_synack()
113 const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_server_syn()
118 struct tcphdr *nth; in synproxy_send_server_syn()
133 nth = (struct tcphdr *)skb_put(nskb, tcp_hdr_size); in synproxy_send_server_syn()
158 const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_server_ack()
163 struct tcphdr *nth; in synproxy_send_server_ack()
[all …]
Dipt_ECN.c50 struct tcphdr _tcph, *tcph; in set_ect_tcp()
Dnf_nat_h323.c34 const struct tcphdr *th; in set_addr()
35 struct tcphdr _tcph; in set_addr()
/linux-4.1.27/net/ipv6/netfilter/
Dnf_reject_ipv6.c19 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 …]
Dip6t_SYNPROXY.c42 struct ipv6hdr *niph, struct tcphdr *nth, in synproxy_send_tcp()
52 nskb->csum_offset = offsetof(struct tcphdr, check); in synproxy_send_tcp()
86 synproxy_send_client_synack(const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_client_synack()
91 struct tcphdr *nth; in synproxy_send_client_synack()
107 nth = (struct tcphdr *)skb_put(nskb, tcp_hdr_size); in synproxy_send_client_synack()
128 const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_server_syn()
133 struct tcphdr *nth; in synproxy_send_server_syn()
148 nth = (struct tcphdr *)skb_put(nskb, tcp_hdr_size); in synproxy_send_server_syn()
173 const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_server_ack()
178 struct tcphdr *nth; in synproxy_send_server_ack()
[all …]
/linux-4.1.27/net/netfilter/
Dxt_TCPOPTSTRIP.c38 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()
Dnf_nat_proto_tcp.c41 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()
Dxt_TCPMSS.c86 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()
Dnf_log_common.c60 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()
Dnf_conntrack_seqadj.c63 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()
Dxt_tcpudp.c40 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()
Dxt_osf.c193 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()
Dnf_conntrack_proto_tcp.c282 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 …]
Dxt_tcpmss.c31 const struct tcphdr *th; in tcpmss_mt()
32 struct tcphdr _tcph; in tcpmss_mt()
Dnf_synproxy_core.c29 const struct tcphdr *th, struct synproxy_options *opts) in synproxy_parse_options()
110 synproxy_build_options(struct tcphdr *th, const struct synproxy_options *opts) in synproxy_build_options()
182 struct tcphdr *th, in synproxy_tstamp_adjust()
193 optoff = protoff + sizeof(struct tcphdr); in synproxy_tstamp_adjust()
Dxt_ecn.c33 struct tcphdr _tcph; in match_tcp()
34 const struct tcphdr *th; in match_tcp()
Dnf_conntrack_sane.c67 const struct tcphdr *th; in help()
68 struct tcphdr _tcph; in help()
Dnf_conntrack_irc.c111 const struct tcphdr *th; in help()
112 struct tcphdr _tcph; in help()
Dnf_nat_sip.c40 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()
Dnf_nat_helper.c102 struct tcphdr *tcph; in __nf_nat_mangle_tcp_packet()
Dxt_TPROXY.c257 struct tcphdr _hdr, *hp; in tproxy_handle_time_wait4()
419 struct tcphdr _hdr, *hp; in tproxy_handle_time_wait6()
Dnf_conntrack_ftp.c391 const struct tcphdr *th; in help()
392 struct tcphdr _tcph; in help()
Dnf_conntrack_pptp.c514 const struct tcphdr *tcph; in conntrack_pptp_help()
515 struct tcphdr _tcph; in conntrack_pptp_help()
Dnf_conntrack_h323_main.c125 const struct tcphdr *th; in get_tpkt_data()
126 struct tcphdr _tcph; in get_tpkt_data()
Dnf_conntrack_sip.c1485 struct tcphdr *th, _tcph; in sip_help_tcp()
/linux-4.1.27/include/net/netfilter/
Dnf_conntrack_synproxy.h57 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.1.27/include/net/netfilter/ipv4/
Dnf_reject.h11 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.1.27/include/net/netfilter/ipv6/
Dnf_reject.h11 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.1.27/net/ipv4/
Dinet_lro.c55 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()
Dtcp_offload.c35 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()
Dtcp_ipv4.c94 __be32 daddr, __be32 saddr, const struct tcphdr *th);
360 struct tcphdr *th = (struct tcphdr *)(icmp_skb->data + (iph->ihl << 2)); in tcp_v4_err()
543 struct tcphdr *th = tcp_hdr(skb); in __tcp_v4_send_check()
548 skb->csum_offset = offsetof(struct tcphdr, check); in __tcp_v4_send_check()
581 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_reset()
583 struct tcphdr th; in tcp_v4_send_reset()
612 rep.th.doff = sizeof(struct tcphdr) / 4; in tcp_v4_send_reset()
677 arg.csumoffset = offsetof(struct tcphdr, check) / 2; in tcp_v4_send_reset()
714 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_ack()
716 struct tcphdr th; in tcp_v4_send_ack()
[all …]
Dsyncookies.c178 u32 __cookie_v4_init_sequence(const struct iphdr *iph, const struct tcphdr *th, in __cookie_v4_init_sequence()
199 const struct tcphdr *th = tcp_hdr(skb); in cookie_v4_init_sequence()
211 int __cookie_v4_check(const struct iphdr *iph, const struct tcphdr *th, in __cookie_v4_check()
298 const struct tcphdr *th = tcp_hdr(skb); in cookie_v4_check()
Dtcp_minisocks.c101 const struct tcphdr *th) in tcp_timewait_state_process()
523 newtp->tcp_header_len = sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED; in tcp_create_openreq_child()
526 newtp->tcp_header_len = sizeof(struct tcphdr); in tcp_create_openreq_child()
564 const struct tcphdr *th = tcp_hdr(skb); in tcp_check_req()
571 if (th->doff > (sizeof(struct tcphdr)>>2)) { in tcp_check_req()
Dtcp_input.c151 if (len >= TCP_MSS_DEFAULT + sizeof(struct tcphdr) || in tcp_measure_rcv_mss()
157 (len >= TCP_MIN_MSS + sizeof(struct tcphdr) && in tcp_measure_rcv_mss()
259 static void tcp_ecn_rcv_synack(struct tcp_sock *tp, const struct tcphdr *th) in tcp_ecn_rcv_synack()
265 static void tcp_ecn_rcv_syn(struct tcp_sock *tp, const struct tcphdr *th) in tcp_ecn_rcv_syn()
271 static bool tcp_ecn_rcv_ecn_echo(const struct tcp_sock *tp, const struct tcphdr *th) in tcp_ecn_rcv_ecn_echo()
3653 const struct tcphdr *th = tcp_hdr(skb); in tcp_parse_options()
3654 int length = (th->doff * 4) - sizeof(struct tcphdr); in tcp_parse_options()
3759 static bool tcp_parse_aligned_timestamp(struct tcp_sock *tp, const struct tcphdr *th) in tcp_parse_aligned_timestamp()
3782 const struct tcphdr *th, struct tcp_sock *tp) in tcp_fast_parse_options()
3807 const u8 *tcp_parse_md5sig_option(const struct tcphdr *th) in tcp_parse_md5sig_option()
[all …]
Dtcp_output.c354 tcp_ecn_make_synack(const struct request_sock *req, struct tcphdr *th, in tcp_ecn_make_synack()
916 struct tcphdr *th; in tcp_transmit_skb()
942 tcp_header_size = tcp_options_size + sizeof(struct tcphdr); in tcp_transmit_skb()
1305 mss_now = pmtu - icsk->icsk_af_ops->net_header_len - sizeof(struct tcphdr); in __tcp_mtu_to_mss()
1333 (tcp_sk(sk)->tcp_header_len - sizeof(struct tcphdr)); in tcp_mtu_to_mss()
1366 icsk->icsk_mtup.search_high = tp->rx_opt.mss_clamp + sizeof(struct tcphdr) + in tcp_mtup_init()
1440 sizeof(struct tcphdr); in tcp_current_mss()
1862 sizeof(struct tcphdr) + in tcp_mtu_check_reprobe()
2955 struct tcphdr *th; in tcp_make_synack()
2994 memset(th, 0, sizeof(struct tcphdr)); in tcp_make_synack()
[all …]
Dtcp_probe.c108 const struct tcphdr *th, unsigned int len) in jtcp_rcv_established()
Dtcp.c2929 const struct tcphdr *th) in tcp_md5_hash_header()
2932 struct tcphdr hdr; in tcp_md5_hash_header()
2950 const struct tcphdr *tp = tcp_hdr(skb); in tcp_md5_hash_skb_data()
/linux-4.1.27/net/ipv6/
Dtcpv6_offload.c35 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()
Dtcp_ipv6.c274 tp->rx_opt.mss_clamp = IPV6_MIN_MTU - sizeof(struct tcphdr) - sizeof(struct ipv6hdr); in tcp_v6_connect()
327 const struct tcphdr *th = (struct tcphdr *)(skb->data+offset); in tcp_v6_err()
552 const struct tcphdr *th) in tcp_v6_md5_hash_hdr()
591 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_md5_hash_skb()
636 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_inbound_md5_hash()
717 .mss_clamp = IPV6_MIN_MTU - sizeof(struct tcphdr) -
738 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_send_response()
739 struct tcphdr *t1; in tcp_v6_send_response()
744 unsigned int tot_len = sizeof(struct tcphdr); in tcp_v6_send_response()
762 t1 = (struct tcphdr *) skb_push(buff, tot_len); in tcp_v6_send_response()
[all …]
Dsyncookies.c118 const struct tcphdr *th, __u16 *mssp) in __cookie_v6_init_sequence()
137 const struct tcphdr *th = tcp_hdr(skb); in cookie_v6_init_sequence()
145 int __cookie_v6_check(const struct ipv6hdr *iph, const struct tcphdr *th, in __cookie_v6_check()
163 const struct tcphdr *th = tcp_hdr(skb); in cookie_v6_check()
Droute.c1324 mtu -= sizeof(struct ipv6hdr) + sizeof(struct tcphdr); in ip6_default_advmss()
1335 if (mtu > IPV6_MAXPLEN - sizeof(struct tcphdr)) in ip6_default_advmss()
/linux-4.1.27/include/linux/
Dtcp.h27 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()
Dinet_lro.h52 struct tcphdr *tcph;
/linux-4.1.27/net/bridge/netfilter/
Dnft_reject_bridge.c49 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.1.27/net/netfilter/ipvs/
Dip_vs_app.c293 static inline void vs_fix_seq(const struct ip_vs_seq *vseq, struct tcphdr *th) in vs_fix_seq()
320 vs_fix_ack_seq(const struct ip_vs_seq *vseq, struct tcphdr *th) in vs_fix_ack_seq()
370 struct tcphdr *th; in app_tcp_pkt_out()
376 th = (struct tcphdr *)(skb_network_header(skb) + tcp_offset); in app_tcp_pkt_out()
445 struct tcphdr *th; in app_tcp_pkt_in()
451 th = (struct tcphdr *)(skb_network_header(skb) + tcp_offset); in app_tcp_pkt_in()
Dip_vs_ftp.c173 struct tcphdr *th; in ip_vs_ftp_out()
206 th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]); in ip_vs_ftp_out()
317 struct tcphdr *th; in ip_vs_ftp_in()
348 th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]); in ip_vs_ftp_in()
Dip_vs_proto_tcp.c41 struct tcphdr _tcph, *th; in tcp_conn_schedule()
89 tcp_fast_csum_update(int af, struct tcphdr *tcph, in tcp_fast_csum_update()
110 tcp_partial_csum_update(int af, struct tcphdr *tcph, in tcp_partial_csum_update()
134 struct tcphdr *tcph; in tcp_snat_handler()
212 struct tcphdr *tcph; in tcp_dnat_handler()
460 static inline int tcp_state_idx(struct tcphdr *th) in tcp_state_idx()
475 int direction, struct tcphdr *th) in set_tcp_state()
550 struct tcphdr _tcph, *th; in tcp_state_transition()
Dip_vs_sh.c284 struct tcphdr _tcph, *th; in ip_vs_sh_get_port()
Dip_vs_core.c1033 struct tcphdr _tcph, *th; in is_tcp_reset()
1046 struct tcphdr _tcph, *th; in is_new_conn()
/linux-4.1.27/samples/bpf/
Dtcbpf1_kern.c30 #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.1.27/include/net/
Dip6_checksum.h71 struct tcphdr *th = tcp_hdr(skb); in __tcp_v6_send_check()
76 skb->csum_offset = offsetof(struct tcphdr, check); in __tcp_v6_send_check()
Dtcp.h369 const struct tcphdr *th, unsigned int len);
371 const struct tcphdr *th, unsigned int len);
409 const struct tcphdr *th);
444 const u8 *tcp_parse_md5sig_option(const struct tcphdr *th);
474 int __cookie_v4_check(const struct iphdr *iph, const struct tcphdr *th,
496 u32 __cookie_v4_init_sequence(const struct iphdr *iph, const struct tcphdr *th,
506 int __cookie_v6_check(const struct ipv6hdr *iph, const struct tcphdr *th,
511 const struct tcphdr *th, u16 *mssp);
1334 int tcp_md5_hash_header(struct tcp_md5sig_pool *, const struct tcphdr *);
Dslhc_vj.h132 struct tcphdr cs_tcp;
/linux-4.1.27/net/core/
Dtso.c18 struct tcphdr *tcph; in tso_build_hdr()
26 tcph = (struct tcphdr *)(hdr + skb_transport_offset(skb)); in tso_build_hdr()
Dflow_dissector.c376 poff += max_t(u32, sizeof(struct tcphdr), (*doff & 0xF0) >> 2); in __skb_get_poff()
Dskbuff.c3836 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.1.27/net/netfilter/ipset/
Dip_set_getport.c29 struct tcphdr _tcph; in get_port()
30 const struct tcphdr *th; in get_port()
/linux-4.1.27/include/uapi/linux/
Dtcp.h24 struct tcphdr { struct
65 struct tcphdr hdr; argument
/linux-4.1.27/drivers/net/slip/
Dslhc.c239 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.1.27/include/uapi/linux/netfilter/
Dxt_osf.h84 struct tcphdr tcp;
/linux-4.1.27/drivers/infiniband/hw/nes/
Dnes_mgt.c178 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()
Dnes_cm.c115 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()
1639 sizeof(struct tcphdr) - ETH_HLEN - VLAN_HLEN; in make_cm_node()
1854 struct tcphdr *tcph) in handle_rst_pkt()
1991 static int check_syn(struct nes_cm_node *cm_node, struct tcphdr *tcph, in check_syn()
2003 static int check_seq(struct nes_cm_node *cm_node, struct tcphdr *tcph, in check_seq()
2038 struct tcphdr *tcph) in handle_syn_pkt()
2044 optionsize = (tcph->doff << 2) - sizeof(struct tcphdr); in handle_syn_pkt()
2099 struct tcphdr *tcph) in handle_synack_pkt()
[all …]
Dnes_nic.c365 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.1.27/net/openvswitch/
Dflow.c219 if (unlikely(!pskb_may_pull(skb, th_ofs + sizeof(struct tcphdr)))) in tcphdr_ok()
223 if (unlikely(tcp_len < sizeof(struct tcphdr) || in tcphdr_ok()
529 struct tcphdr *tcp = tcp_hdr(skb); in key_extract()
644 struct tcphdr *tcp = tcp_hdr(skb); in key_extract()
Dactions.c282 if (likely(transport_len >= sizeof(struct tcphdr))) in set_ip_addr()
309 if (likely(transport_len >= sizeof(struct tcphdr))) in update_ipv6_checksum()
543 struct tcphdr *th; in set_tcp()
548 sizeof(struct tcphdr)); in set_tcp()
/linux-4.1.27/security/
Dlsm_audit.c63 struct tcphdr *th = tcp_hdr(skb); in ipv4_skb_to_auditdata()
137 struct tcphdr _tcph, *th; in ipv6_skb_to_auditdata()
/linux-4.1.27/net/sched/
Dact_csum.c176 struct tcphdr *tcph; in tcf_csum_ipv4_tcp()
197 struct tcphdr *tcph; in tcf_csum_ipv6_tcp()
Dact_nat.c155 struct tcphdr *tcph; in tcf_nat()
/linux-4.1.27/drivers/staging/gdm72xx/
Dgdm_qos.c259 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.1.27/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c1269 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.1.27/drivers/net/ethernet/intel/i40e/
Di40e_txrx.c258 struct tcphdr *tcp; in i40e_add_del_fdir_tcpv4()
275 tcp = (struct tcphdr *)(raw_packet + IP_HEADER_OFFSET in i40e_add_del_fdir_tcpv4()
1941 struct tcphdr *th; in i40e_atr()
1976 th = (struct tcphdr *)(hdr.network + hlen); in i40e_atr()
2135 struct tcphdr *tcph; in i40e_tso()
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Dd3.c403 struct tcphdr tcp; in iwl_mvm_build_tcp_packet()
406 u16 ip_tot_len = sizeof(struct iphdr) + sizeof(struct tcphdr); in iwl_mvm_build_tcp_packet()
426 pkt->tcp.doff = sizeof(struct tcphdr) / 4; in iwl_mvm_build_tcp_packet()
449 pkt->tcp.doff = (sizeof(struct tcphdr) + 8) / 4; in iwl_mvm_build_tcp_packet()
Dmac80211.c130 sizeof(struct tcphdr),
135 sizeof(struct tcphdr),
/linux-4.1.27/drivers/net/ethernet/neterion/
Ds2io.c4053 struct tcphdr *th; in s2io_xmit()
4057 th = (struct tcphdr *)(((unsigned char *)ip) + in s2io_xmit()
8254 struct tcphdr **tcp, struct RxD_t *rxdp, in check_L2_lro_capable()
8285 *tcp = (struct tcphdr *)((unsigned long)*ip + ip_len); in check_L2_lro_capable()
8291 struct tcphdr *tcp) in check_for_socket_match()
8302 static inline int get_l4_pyld_length(struct iphdr *ip, struct tcphdr *tcp) in get_l4_pyld_length()
8308 struct iphdr *ip, struct tcphdr *tcp, in initiate_new_session()
8338 struct tcphdr *tcp = lro->tcph; in update_L3L4_header()
8365 struct tcphdr *tcp, u32 l4_pyld) in aggregate_new_rx()
8387 struct tcphdr *tcp, u32 tcp_pyld_len) in verify_l3_l4_lro_capable()
[all …]
Ds2io.h676 struct tcphdr *tcph;
/linux-4.1.27/drivers/infiniband/hw/cxgb4/
Dcm.c241 sizeof(struct tcphdr); in set_emss()
608 sizeof(struct tcphdr) + in best_mtu()
2224 const struct tcphdr *tcph; in accept_cr()
2271 struct tcphdr *tcp = (struct tcphdr *) in get_4tuple()
2366 hdrs = sizeof(struct iphdr) + sizeof(struct tcphdr) + in pass_accept_req()
3653 struct tcphdr *tcph; in rx_pkt()
3705 tcph = (struct tcphdr *)(iph + 1); in rx_pkt()
/linux-4.1.27/drivers/net/ethernet/sfc/
Dtx.c1164 struct tcphdr *tsoh_th; in tso_start_new_packet()
1173 tsoh_th = (struct tcphdr *)(header + st->tcp_off); in tso_start_new_packet()
/linux-4.1.27/drivers/net/ethernet/tile/
Dtilepro.c1693 struct tcphdr *th = (struct tcphdr *)(nh + ih_len); in tile_net_tx_tso()
Dtilegx.c1726 struct tcphdr *th; in tso_headers_prepare()
1785 th = (struct tcphdr *)(buf + th_off); in tso_headers_prepare()
/linux-4.1.27/drivers/net/
Dvxlan.c566 offsetof(struct tcphdr, check)); in vxlan_gro_remcsum()
1149 offsetof(struct tcphdr, check)); in vxlan_remcsum()
1692 skb->csum_offset == offsetof(struct tcphdr, check))) { in vxlan6_xmit_skb()
1777 skb->csum_offset == offsetof(struct tcphdr, check))) { in vxlan_xmit_skb()
/linux-4.1.27/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_init.c1599 struct tcphdr *th; in netxen_process_lro()
1642 th = (struct tcphdr *)((skb->data + vhdr_len) + (iph->ihl << 2)); in netxen_process_lro()
/linux-4.1.27/drivers/net/ethernet/sun/
Dsunvnet.c331 struct tcphdr *ptcp = tcp_hdr(skb); in vnet_fullcsum()
1229 curr->csum_offset = offsetof(struct tcphdr, check); in vnet_handle_offloads()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c517 u16 hdrs_len = ETH_HLEN + sizeof(struct tcphdr); in bnx2x_set_gro_params()
687 struct tcphdr *th; in bnx2x_gro_ip_csum()
699 struct tcphdr *th; in bnx2x_gro_ipv6_csum()
Dbnx2x.h871 #define SKB_CS_OFF(skb) (offsetof(struct tcphdr, check) - \
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c817 hdrlen = (th - skb->data) + (((struct tcphdr *)th)->doff << 2); in fm10k_tso()
/linux-4.1.27/drivers/net/ethernet/sgi/
Dioc3-eth.c1451 csoff += offsetof(struct tcphdr, check); in ioc3_start_xmit()
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/
Di40e_txrx.c1424 struct tcphdr *tcph; in i40e_tso()
/linux-4.1.27/drivers/net/ethernet/neterion/vxge/
Dvxge-main.c636 struct tcphdr *th; in vxge_get_vpath_no()
641 th = (struct tcphdr *)(((unsigned char *)ip) + in vxge_get_vpath_no()
/linux-4.1.27/security/selinux/
Dhooks.c3763 struct tcphdr _tcph, *th; in selinux_parse_skb_ipv4()
3848 struct tcphdr _tcph, *th; in selinux_parse_skb_ipv6()
/linux-4.1.27/security/smack/
Dsmack_lsm.c3564 struct tcphdr _tcph, *th; in smk_skb_to_addr_ipv6()
/linux-4.1.27/drivers/net/ethernet/broadcom/
Dcnic.c3504 sizeof(struct tcphdr); in cnic_cm_conn_req()
3508 sizeof(struct tcphdr); in cnic_cm_conn_req()
Dtg3.c7901 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.1.27/drivers/net/ethernet/ibm/ehea/
Dehea_main.c2020 offsetof(struct tcphdr, check); in xmit_common()
/linux-4.1.27/drivers/net/vmxnet3/
Dvmxnet3_drv.c892 struct tcphdr *tcph = tcp_hdr(skb); in vmxnet3_prepare_tso()
/linux-4.1.27/drivers/s390/net/
Dqeth_l3_main.c2895 struct tcphdr *tcph = tcp_hdr(skb); in qeth_tso_fill_header()
/linux-4.1.27/drivers/net/usb/
Dr8152.c1414 struct tcphdr *th; in msdn_giant_send_check()
/linux-4.1.27/drivers/net/ethernet/realtek/
Dr8169.c6910 struct tcphdr *th; in msdn_giant_send_check()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
Dixgbe_main.c7160 struct tcphdr *th; in ixgbe_atr()