• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/ipv4/

Lines Matching defs:th

98 			       __be32 daddr, __be32 saddr, struct tcphdr *th);
343 struct tcphdr *th = (struct tcphdr *)(icmp_skb->data + (iph->ihl << 2));
361 sk = inet_lookup(net, &tcp_hashinfo, iph->daddr, th->dest,
362 iph->saddr, th->source, inet_iif(icmp_skb));
389 seq = ntohl(th->seq);
459 req = inet_csk_search_req(sk, &prev, th->dest,
531 struct tcphdr *th = tcp_hdr(skb);
534 th->check = ~tcp_v4_check(skb->len, saddr, daddr, 0);
538 th->check = tcp_v4_check(skb->len, saddr, daddr,
539 csum_partial(th,
540 th->doff << 2,
557 struct tcphdr *th;
559 if (!pskb_may_pull(skb, sizeof(*th)))
563 th = tcp_hdr(skb);
565 th->check = 0;
586 struct tcphdr *th = tcp_hdr(skb);
588 struct tcphdr th;
600 if (th->rst)
608 rep.th.dest = th->source;
609 rep.th.source = th->dest;
610 rep.th.doff = sizeof(struct tcphdr) / 4;
611 rep.th.rst = 1;
613 if (th->ack) {
614 rep.th.seq = th->ack_seq;
616 rep.th.ack = 1;
617 rep.th.ack_seq = htonl(ntohl(th->seq) + th->syn + th->fin +
618 skb->len - (th->doff << 2));
623 arg.iov[0].iov_len = sizeof(rep.th);
634 rep.th.doff = arg.iov[0].iov_len / 4;
638 ip_hdr(skb)->daddr, &rep.th);
664 struct tcphdr *th = tcp_hdr(skb);
666 struct tcphdr th;
676 memset(&rep.th, 0, sizeof(struct tcphdr));
680 arg.iov[0].iov_len = sizeof(rep.th);
691 rep.th.dest = th->source;
692 rep.th.source = th->dest;
693 rep.th.doff = arg.iov[0].iov_len / 4;
694 rep.th.seq = htonl(seq);
695 rep.th.ack_seq = htonl(ack);
696 rep.th.ack = 1;
697 rep.th.window = htons(win);
708 rep.th.doff = arg.iov[0].iov_len/4;
712 ip_hdr(skb)->daddr, &rep.th);
1063 __be32 daddr, __be32 saddr, struct tcphdr *th)
1075 if (tcp_v4_md5_hash_pseudoheader(hp, daddr, saddr, th->doff << 2))
1077 if (tcp_md5_hash_header(hp, th))
1100 struct tcphdr *th = tcp_hdr(skb);
1125 if (tcp_md5_hash_header(hp, th))
1127 if (tcp_md5_hash_skb_data(hp, skb, th->doff << 2))
1158 struct tcphdr *th = tcp_hdr(skb);
1163 hash_location = tcp_parse_md5sig_option(th);
1189 &iph->saddr, ntohs(th->source),
1190 &iph->daddr, ntohs(th->dest),
1490 struct tcphdr *th = tcp_hdr(skb);
1495 struct request_sock *req = inet_csk_search_req(sk, &prev, th->source,
1501 th->source, iph->daddr, th->dest, inet_iif(skb));
1513 if (!th->syn)
1625 struct tcphdr *th;
1639 th = tcp_hdr(skb);
1641 if (th->doff < sizeof(struct tcphdr) / 4)
1643 if (!pskb_may_pull(skb, th->doff * 4))
1648 * provided case of th->doff==0 is eliminated.
1653 th = tcp_hdr(skb);
1655 TCP_SKB_CB(skb)->seq = ntohl(th->seq);
1656 TCP_SKB_CB(skb)->end_seq = (TCP_SKB_CB(skb)->seq + th->syn + th->fin +
1657 skb->len - th->doff * 4);
1658 TCP_SKB_CB(skb)->ack_seq = ntohl(th->ack_seq);
1663 sk = __inet_lookup_skb(&tcp_hashinfo, skb, th->source, th->dest);
1715 if (skb->len < (th->doff << 2) || tcp_checksum_complete(skb)) {
1737 if (skb->len < (th->doff << 2) || tcp_checksum_complete(skb)) {
1742 switch (tcp_timewait_state_process(inet_twsk(sk), skb, th)) {
1746 iph->daddr, th->dest,
2591 struct tcphdr *th = tcp_hdr(skb);
2593 th->check = ~tcp_v4_check(skb->len - skb_transport_offset(skb),