Searched refs:th (Results 1 - 25 of 31) sorted by relevance

12

/net/netfilter/
H A Dxt_tcpmss.c31 const struct tcphdr *th; local
39 th = skb_header_pointer(skb, par->thoff, sizeof(_tcph), &_tcph);
40 if (th == NULL)
44 if (th->doff*4 < sizeof(*th))
47 optlen = th->doff*4 - sizeof(*th);
52 op = skb_header_pointer(skb, par->thoff + sizeof(*th), optlen, _opt);
H A Dxt_ecn.c34 const struct tcphdr *th; local
39 th = skb_header_pointer(skb, par->thoff, sizeof(_tcph), &_tcph);
40 if (th == NULL)
45 if (th->ece == 1)
48 if (th->ece == 0)
55 if (th->cwr == 1)
58 if (th->cwr == 0)
H A Dxt_tcpudp.c67 const struct tcphdr *th; local
88 th = skb_header_pointer(skb, par->thoff, sizeof(_tcph), &_tcph);
89 if (th == NULL) {
98 ntohs(th->source),
102 ntohs(th->dest),
105 if (!FWINVTCP((((unsigned char *)th)[13] & tcpinfo->flg_mask)
110 if (th->doff * 4 < sizeof(_tcph)) {
115 th->doff*4 - sizeof(_tcph),
H A Dnf_conntrack_irc.c111 const struct tcphdr *th; local
134 th = skb_header_pointer(skb, protoff, sizeof(_tcph), &_tcph);
135 if (th == NULL)
139 dataoff = protoff + th->doff*4;
163 &iph->saddr, ntohs(th->source),
164 &iph->daddr, ntohs(th->dest));
H A Dnf_conntrack_proto_tcp.c768 const struct tcphdr *th; local
774 th = skb_header_pointer(skb, dataoff, sizeof(_tcph), &_tcph);
775 if (th == NULL) {
783 if (th->doff*4 < sizeof(struct tcphdr) || tcplen < th->doff*4) {
804 tcpflags = (tcp_flag_byte(th) & ~(TCPHDR_ECE|TCPHDR_CWR|TCPHDR_PSH));
834 const struct tcphdr *th; local
839 th = skb_header_pointer(skb, dataoff, sizeof(_tcph), &_tcph);
840 BUG_ON(th == NULL);
845 index = get_conntrack_index(th);
1066 const struct tcphdr *th; local
[all...]
H A Dxt_LOG.c78 const struct tcphdr *th; local
87 th = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph);
88 if (th == NULL) {
94 sb_add(m, "SPT=%u DPT=%u ", ntohs(th->source), ntohs(th->dest));
97 sb_add(m, "SEQ=%u ACK=%u ", ntohl(th->seq), ntohl(th->ack_seq));
100 sb_add(m, "WINDOW=%u ", ntohs(th->window));
102 sb_add(m, "RES=0x%02x ", (u_int8_t)(ntohl(tcp_flag_word(th) &
105 if (th
[all...]
H A Dnf_conntrack_sane.c67 const struct tcphdr *th; local
84 th = skb_header_pointer(skb, protoff, sizeof(_tcph), &_tcph);
85 if (th == NULL)
89 dataoff = protoff + th->doff * 4;
H A Dnf_conntrack_ftp.c356 const struct tcphdr *th; local
378 th = skb_header_pointer(skb, protoff, sizeof(_tcph), &_tcph);
379 if (th == NULL)
382 dataoff = protoff + th->doff * 4;
396 seq = ntohl(th->seq) + datalen;
399 if (!find_nl_seq(ntohl(th->seq), ct_ftp_info, dir)) {
450 matchlen, ntohl(th->seq) + matchoff);
H A Dnf_nat_helper.c159 const struct tcphdr *th; local
164 th = (struct tcphdr *)(skb_network_header(skb)+ ip_hdrlen(skb));
165 nf_nat_set_seq_adjust(ct, ctinfo, th->seq, off);
H A Dnf_nat_sip.c39 struct tcphdr *th; local
43 th = (struct tcphdr *)(skb->data + protoff);
44 baseoff = protoff + th->doff * 4;
305 const struct tcphdr *th; local
310 th = (struct tcphdr *)(skb->data + protoff);
311 nf_nat_set_seq_adjust(ct, ctinfo, th->seq, off);
/net/ceph/
H A Dauth_x.c94 struct ceph_x_ticket_handler *th; local
100 th = rb_entry(parent, struct ceph_x_ticket_handler, node);
101 if (service < th->service)
103 else if (service > th->service)
106 return th;
110 th = kzalloc(sizeof(*th), GFP_NOFS);
111 if (!th)
113 th->service = service;
114 rb_link_node(&th
119 remove_ticket_handler(struct ceph_auth_client *ac, struct ceph_x_ticket_handler *th) argument
162 struct ceph_x_ticket_handler *th; local
273 ceph_x_build_authorizer(struct ceph_auth_client *ac, struct ceph_x_ticket_handler *th, struct ceph_x_authorizer *au) argument
341 ceph_x_encode_ticket(struct ceph_x_ticket_handler *th, void **p, void *end) argument
371 struct ceph_x_ticket_handler *th; local
401 struct ceph_x_ticket_handler *th = local
478 struct ceph_x_ticket_handler *th; local
533 struct ceph_x_ticket_handler *th; local
564 struct ceph_x_ticket_handler *th; local
583 struct ceph_x_ticket_handler *th; local
635 struct ceph_x_ticket_handler *th = local
650 struct ceph_x_ticket_handler *th; local
[all...]
/net/ipv6/
H A Dtcpv6_offload.c21 struct tcphdr *th; local
23 if (!pskb_may_pull(skb, sizeof(*th)))
27 th = tcp_hdr(skb);
29 th->check = 0;
74 struct tcphdr *th = tcp_hdr(skb); local
76 th->check = ~tcp_v6_check(skb->len - skb_transport_offset(skb),
H A Dsyncookies.c118 const struct tcphdr *th = tcp_hdr(skb); local
132 return secure_tcp_syn_cookie(&iph->saddr, &iph->daddr, th->source,
133 th->dest, ntohl(th->seq),
140 const struct tcphdr *th = tcp_hdr(skb); local
141 __u32 seq = ntohl(th->seq) - 1;
143 th->source, th->dest, seq,
157 const struct tcphdr *th = tcp_hdr(skb); local
158 __u32 cookie = ntohl(th
[all...]
H A Dtcp_ipv6.c341 const struct tcphdr *th = (struct tcphdr *)(skb->data+offset); local
350 th->dest, &hdr->saddr, th->source, skb->dev->ifindex);
376 seq = ntohl(th->seq);
419 req = inet6_csk_search_req(sk, &prev, th->dest, &hdr->daddr,
581 const struct tcphdr *th)
593 if (tcp_v6_md5_hash_pseudoheader(hp, daddr, saddr, th->doff << 2))
595 if (tcp_md5_hash_header(hp, th))
620 const struct tcphdr *th = tcp_hdr(skb); local
644 if (tcp_md5_hash_header(hp, th))
579 tcp_v6_md5_hash_hdr(char *md5_hash, struct tcp_md5sig_key *key, const struct in6_addr *daddr, struct in6_addr *saddr, const struct tcphdr *th) argument
668 const struct tcphdr *th = tcp_hdr(skb); local
726 const struct tcphdr *th = tcp_hdr(skb); local
819 const struct tcphdr *th = tcp_hdr(skb); local
916 const struct tcphdr *th = tcp_hdr(skb); local
1448 const struct tcphdr *th; local
1599 const struct tcphdr *th; local
[all...]
/net/ipv4/
H A Dsyncookies.c166 const struct tcphdr *th = tcp_hdr(skb); local
180 th->source, th->dest, ntohl(th->seq),
198 const struct tcphdr *th = tcp_hdr(skb); local
199 __u32 seq = ntohl(th->seq) - 1;
201 th->source, th->dest, seq,
273 const struct tcphdr *th = tcp_hdr(skb); local
274 __u32 cookie = ntohl(th
[all...]
H A Dtcp_ipv4.c95 __be32 daddr, __be32 saddr, const struct tcphdr *th);
329 struct tcphdr *th = (struct tcphdr *)(icmp_skb->data + (iph->ihl << 2)); local
348 sk = inet_lookup(net, &tcp_hashinfo, iph->daddr, th->dest,
349 iph->saddr, th->source, inet_iif(icmp_skb));
380 seq = ntohl(th->seq);
477 req = inet_csk_search_req(sk, &prev, th->dest,
551 struct tcphdr *th = tcp_hdr(skb); local
554 th->check = ~tcp_v4_check(skb->len, saddr, daddr, 0);
558 th->check = tcp_v4_check(skb->len, saddr, daddr,
559 csum_partial(th,
577 struct tcphdr *th; local
606 const struct tcphdr *th = tcp_hdr(skb); local
608 struct tcphdr th; member in struct:__anon53
733 const struct tcphdr *th = tcp_hdr(skb); local
735 struct tcphdr th; member in struct:__anon54
1133 tcp_v4_md5_hash_hdr(char *md5_hash, const struct tcp_md5sig_key *key, __be32 daddr, __be32 saddr, const struct tcphdr *th) argument
1171 const struct tcphdr *th = tcp_hdr(skb); local
1229 const struct tcphdr *th = tcp_hdr(skb); local
1742 struct tcphdr *th = tcp_hdr(skb); local
1879 const struct tcphdr *th; local
1965 const struct tcphdr *th; local
2844 struct tcphdr *th = tcp_hdr(skb); local
[all...]
H A Dtcp_minisocks.c93 const struct tcphdr *th)
100 if (th->doff > (sizeof(*th) >> 2) && tcptw->tw_ts_recent_stamp) {
107 paws_reject = tcp_paws_reject(&tmp_opt, th->rst);
121 if (th->rst)
124 if (th->syn && !before(TCP_SKB_CB(skb)->seq, tcptw->tw_rcv_nxt))
128 if (!th->ack ||
138 if (!th->fin ||
184 (TCP_SKB_CB(skb)->seq == TCP_SKB_CB(skb)->end_seq || th->rst))) {
187 if (th
92 tcp_timewait_state_process(struct inet_timewait_sock *tw, struct sk_buff *skb, const struct tcphdr *th) argument
510 const struct tcphdr *th = tcp_hdr(skb); local
[all...]
H A Dtcp_input.c247 static inline void TCP_ECN_rcv_synack(struct tcp_sock *tp, const struct tcphdr *th) argument
249 if ((tp->ecn_flags & TCP_ECN_OK) && (!th->ece || th->cwr))
253 static inline void TCP_ECN_rcv_syn(struct tcp_sock *tp, const struct tcphdr *th) argument
255 if ((tp->ecn_flags & TCP_ECN_OK) && (!th->ece || !th->cwr))
259 static bool TCP_ECN_rcv_ecn_echo(const struct tcp_sock *tp, const struct tcphdr *th) argument
261 if (th->ece && !th->syn && (tp->ecn_flags & TCP_ECN_OK))
3487 const struct tcphdr *th local
3592 tcp_parse_aligned_timestamp(struct tcp_sock *tp, const struct tcphdr *th) argument
3611 tcp_fast_parse_options(const struct sk_buff *skb, const struct tcphdr *th, struct tcp_sock *tp) argument
3637 tcp_parse_md5sig_option(const struct tcphdr *th) argument
3697 const struct tcphdr *th = tcp_hdr(skb); local
4262 struct tcphdr *th; local
4300 const struct tcphdr *th = tcp_hdr(skb); local
4797 tcp_check_urg(struct sock *sk, const struct tcphdr *th) argument
4863 tcp_urg(struct sock *sk, struct sk_buff *skb, const struct tcphdr *th) argument
4983 tcp_validate_incoming(struct sock *sk, struct sk_buff *skb, const struct tcphdr *th, int syn_inerr) argument
5074 tcp_rcv_established(struct sock *sk, struct sk_buff *skb, const struct tcphdr *th, unsigned int len) argument
5371 tcp_rcv_synsent_state_process(struct sock *sk, struct sk_buff *skb, const struct tcphdr *th, unsigned int len) argument
5598 tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb, const struct tcphdr *th, unsigned int len) argument
[all...]
H A Dtcp.c2895 struct tcphdr *th; local
2905 if (!pskb_may_pull(skb, sizeof(*th)))
2908 th = tcp_hdr(skb);
2909 thlen = th->doff * 4;
2910 if (thlen < sizeof(*th))
2959 th = tcp_hdr(skb);
2960 seq = ntohl(th->seq);
2962 newcheck = ~csum_fold((__force __wsum)((__force u32)th->check +
2966 th->fin = th
3021 struct tcphdr *th; local
3115 struct tcphdr *th = tcp_hdr(skb); local
3267 tcp_md5_hash_header(struct tcp_md5sig_pool *hp, const struct tcphdr *th) argument
[all...]
H A Dtcp_output.c257 * value can be stuffed directly into th->window for an outgoing
319 TCP_ECN_make_synack(const struct request_sock *req, struct tcphdr *th) argument
322 th->ece = 1;
837 struct tcphdr *th; local
894 th = tcp_hdr(skb);
895 th->source = inet->inet_sport;
896 th->dest = inet->inet_dport;
897 th->seq = htonl(tcb->seq);
898 th->ack_seq = htonl(tp->rcv_nxt);
899 *(((__be16 *)th)
2660 struct tcphdr *th; local
[all...]
/net/netfilter/ipvs/
H A Dip_vs_app.c291 * Fixes th->seq based on ip_vs_seq info.
293 static inline void vs_fix_seq(const struct ip_vs_seq *vseq, struct tcphdr *th) argument
295 __u32 seq = ntohl(th->seq);
304 th->seq = htonl(seq + vseq->delta);
308 th->seq = htonl(seq + vseq->previous_delta);
317 * Fixes th->ack_seq based on ip_vs_seq info.
320 vs_fix_ack_seq(const struct ip_vs_seq *vseq, struct tcphdr *th) argument
322 __u32 ack_seq = ntohl(th->ack_seq);
333 th->ack_seq = htonl(ack_seq - vseq->delta);
338 th
370 struct tcphdr *th; local
445 struct tcphdr *th; local
[all...]
H A Dip_vs_ftp.c173 struct tcphdr *th; local
206 th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]);
207 data = (char *)th + (th->doff << 2);
316 struct tcphdr *th; local
347 th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]);
351 to calculate data address by th+HLEN*4 */
352 data = data_start = (char *)th + (th->doff << 2);
H A Dip_vs_proto_tcp.c41 struct tcphdr _tcph, *th; local
43 th = skb_header_pointer(skb, iph->len, sizeof(_tcph), &_tcph);
44 if (th == NULL) {
49 /* No !th->ack check to allow scheduling on SYN+ACK for Active FTP */
51 if (th->syn &&
53 &iph->daddr, th->dest))) {
458 static inline int tcp_state_idx(struct tcphdr *th) argument
460 if (th->rst)
462 if (th->syn)
464 if (th
472 set_tcp_state(struct ip_vs_proto_data *pd, struct ip_vs_conn *cp, int direction, struct tcphdr *th) argument
548 struct tcphdr _tcph, *th; local
[all...]
/net/netfilter/ipset/
H A Dip_set_getport.c30 const struct tcphdr *th; local
32 th = skb_header_pointer(skb, protooff, sizeof(_tcph), &_tcph);
33 if (th == NULL)
37 *port = src ? th->source : th->dest;
/net/openvswitch/
H A Dactions.c333 struct tcphdr *th; local
341 th = tcp_hdr(skb);
342 if (tcp_port_key->tcp_src != th->source)
343 set_tp_port(skb, &th->source, tcp_port_key->tcp_src, &th->check);
345 if (tcp_port_key->tcp_dst != th->dest)
346 set_tp_port(skb, &th->dest, tcp_port_key->tcp_dst, &th->check);

Completed in 247 milliseconds

12