• Home
  • Raw
  • Download

Lines Matching refs:th

323 	const struct tcphdr *th = (struct tcphdr *)(skb->data+offset);  in tcp_v6_err()  local
332 th->dest, &hdr->saddr, th->source, skb->dev->ifindex); in tcp_v6_err()
353 seq = ntohl(th->seq); in tcp_v6_err()
420 req = inet6_csk_search_req(sk, &prev, th->dest, &hdr->daddr, in tcp_v6_err()
502 struct tcphdr *th = tcp_hdr(skb); in tcp_v6_send_synack() local
504 th->check = tcp_v6_check(skb->len, in tcp_v6_send_synack()
506 csum_partial(th, skb->len, skb->csum)); in tcp_v6_send_synack()
763 struct tcphdr *th) in tcp_v6_md5_hash_hdr() argument
775 if (tcp_v6_md5_hash_pseudoheader(hp, daddr, saddr, th->doff << 2)) in tcp_v6_md5_hash_hdr()
777 if (tcp_md5_hash_header(hp, th)) in tcp_v6_md5_hash_hdr()
801 struct tcphdr *th = tcp_hdr(skb); in tcp_v6_md5_hash_skb() local
825 if (tcp_md5_hash_header(hp, th)) in tcp_v6_md5_hash_skb()
827 if (tcp_md5_hash_skb_data(hp, skb, th->doff << 2)) in tcp_v6_md5_hash_skb()
849 struct tcphdr *th = tcp_hdr(skb); in tcp_v6_inbound_md5_hash() local
854 hash_location = tcp_parse_md5sig_option(th); in tcp_v6_inbound_md5_hash()
879 &ip6h->saddr, ntohs(th->source), in tcp_v6_inbound_md5_hash()
880 &ip6h->daddr, ntohs(th->dest)); in tcp_v6_inbound_md5_hash()
912 struct tcphdr *th = tcp_hdr(skb); in tcp_v6_send_check() local
915 th->check = ~csum_ipv6_magic(&np->saddr, &np->daddr, len, IPPROTO_TCP, 0); in tcp_v6_send_check()
919 th->check = csum_ipv6_magic(&np->saddr, &np->daddr, len, IPPROTO_TCP, in tcp_v6_send_check()
920 csum_partial(th, th->doff<<2, in tcp_v6_send_check()
928 struct tcphdr *th; in tcp_v6_gso_send_check() local
930 if (!pskb_may_pull(skb, sizeof(*th))) in tcp_v6_gso_send_check()
934 th = tcp_hdr(skb); in tcp_v6_gso_send_check()
936 th->check = 0; in tcp_v6_gso_send_check()
937 th->check = ~csum_ipv6_magic(&ipv6h->saddr, &ipv6h->daddr, skb->len, in tcp_v6_gso_send_check()
970 struct tcphdr *th = tcp_hdr(skb); in tcp6_gro_complete() local
972 th->check = ~tcp_v6_check(skb->len - skb_transport_offset(skb), in tcp6_gro_complete()
983 struct tcphdr *th = tcp_hdr(skb), *t1; in tcp_v6_send_response() local
1009 t1->dest = th->source; in tcp_v6_send_response()
1010 t1->source = th->dest; in tcp_v6_send_response()
1014 t1->ack = !rst || !th->ack; in tcp_v6_send_response()
1072 struct tcphdr *th = tcp_hdr(skb); in tcp_v6_send_reset() local
1076 if (th->rst) in tcp_v6_send_reset()
1087 if (th->ack) in tcp_v6_send_reset()
1088 seq = ntohl(th->ack_seq); in tcp_v6_send_reset()
1090 ack_seq = ntohl(th->seq) + th->syn + th->fin + skb->len - in tcp_v6_send_reset()
1091 (th->doff << 2); in tcp_v6_send_reset()
1125 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_hnd_req() local
1129 req = inet6_csk_search_req(sk, &prev, th->source, in tcp_v6_hnd_req()
1136 &ipv6_hdr(skb)->saddr, th->source, in tcp_v6_hnd_req()
1137 &ipv6_hdr(skb)->daddr, ntohs(th->dest), inet6_iif(skb)); in tcp_v6_hnd_req()
1149 if (!th->rst && !th->syn && th->ack) in tcp_v6_hnd_req()
1621 struct tcphdr *th; in tcp_v6_rcv() local
1637 th = tcp_hdr(skb); in tcp_v6_rcv()
1639 if (th->doff < sizeof(struct tcphdr)/4) in tcp_v6_rcv()
1641 if (!pskb_may_pull(skb, th->doff*4)) in tcp_v6_rcv()
1647 th = tcp_hdr(skb); in tcp_v6_rcv()
1648 TCP_SKB_CB(skb)->seq = ntohl(th->seq); in tcp_v6_rcv()
1649 TCP_SKB_CB(skb)->end_seq = (TCP_SKB_CB(skb)->seq + th->syn + th->fin + in tcp_v6_rcv()
1650 skb->len - th->doff*4); in tcp_v6_rcv()
1651 TCP_SKB_CB(skb)->ack_seq = ntohl(th->ack_seq); in tcp_v6_rcv()
1656 sk = __inet6_lookup_skb(&tcp_hashinfo, skb, th->source, th->dest); in tcp_v6_rcv()
1698 if (skb->len < (th->doff<<2) || tcp_checksum_complete(skb)) { in tcp_v6_rcv()
1724 if (skb->len < (th->doff<<2) || tcp_checksum_complete(skb)) { in tcp_v6_rcv()
1730 switch (tcp_timewait_state_process(inet_twsk(sk), skb, th)) { in tcp_v6_rcv()
1737 ntohs(th->dest), inet6_iif(skb)); in tcp_v6_rcv()