Lines Matching refs:th
327 const struct tcphdr *th = (struct tcphdr *)(skb->data+offset); in tcp_v6_err() local
337 &hdr->daddr, th->dest, in tcp_v6_err()
338 &hdr->saddr, ntohs(th->source), in tcp_v6_err()
351 seq = ntohl(th->seq); in tcp_v6_err()
552 const struct tcphdr *th) in tcp_v6_md5_hash_hdr() argument
564 if (tcp_v6_md5_hash_pseudoheader(hp, daddr, saddr, th->doff << 2)) in tcp_v6_md5_hash_hdr()
566 if (tcp_md5_hash_header(hp, th)) in tcp_v6_md5_hash_hdr()
591 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_md5_hash_skb() local
612 if (tcp_md5_hash_header(hp, th)) in tcp_v6_md5_hash_skb()
614 if (tcp_md5_hash_skb_data(hp, skb, th->doff << 2)) in tcp_v6_md5_hash_skb()
636 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_inbound_md5_hash() local
641 hash_location = tcp_parse_md5sig_option(th); in tcp_v6_inbound_md5_hash()
665 &ip6h->saddr, ntohs(th->source), in tcp_v6_inbound_md5_hash()
666 &ip6h->daddr, ntohs(th->dest)); in tcp_v6_inbound_md5_hash()
738 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_send_response() local
767 t1->dest = th->source; in tcp_v6_send_response()
768 t1->source = th->dest; in tcp_v6_send_response()
772 t1->ack = !rst || !th->ack; in tcp_v6_send_response()
834 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_send_reset() local
846 if (th->rst) in tcp_v6_send_reset()
856 hash_location = tcp_parse_md5sig_option(th); in tcp_v6_send_reset()
867 th->source, &ipv6h->daddr, in tcp_v6_send_reset()
868 ntohs(th->source), tcp_v6_iif(skb)); in tcp_v6_send_reset()
885 if (th->ack) in tcp_v6_send_reset()
886 seq = ntohl(th->ack_seq); in tcp_v6_send_reset()
888 ack_seq = ntohl(th->seq) + th->syn + th->fin + skb->len - in tcp_v6_send_reset()
889 (th->doff << 2); in tcp_v6_send_reset()
943 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_hnd_req() local
948 req = inet6_csk_search_req(sk, th->source, in tcp_v6_hnd_req()
958 &ipv6_hdr(skb)->saddr, th->source, in tcp_v6_hnd_req()
959 &ipv6_hdr(skb)->daddr, ntohs(th->dest), in tcp_v6_hnd_req()
972 if (!th->syn) in tcp_v6_hnd_req()
1338 const struct tcphdr *th) in tcp_v6_fill_cb() argument
1349 TCP_SKB_CB(skb)->seq = ntohl(th->seq); in tcp_v6_fill_cb()
1350 TCP_SKB_CB(skb)->end_seq = (TCP_SKB_CB(skb)->seq + th->syn + th->fin + in tcp_v6_fill_cb()
1351 skb->len - th->doff*4); in tcp_v6_fill_cb()
1352 TCP_SKB_CB(skb)->ack_seq = ntohl(th->ack_seq); in tcp_v6_fill_cb()
1353 TCP_SKB_CB(skb)->tcp_flags = tcp_flag_byte(th); in tcp_v6_fill_cb()
1370 const struct tcphdr *th; in tcp_v6_rcv() local
1387 th = tcp_hdr(skb); in tcp_v6_rcv()
1389 if (th->doff < sizeof(struct tcphdr)/4) in tcp_v6_rcv()
1391 if (!pskb_may_pull(skb, th->doff*4)) in tcp_v6_rcv()
1397 th = tcp_hdr(skb); in tcp_v6_rcv()
1400 sk = __inet6_lookup_skb(&tcp_hashinfo, skb, th->source, th->dest, in tcp_v6_rcv()
1417 tcp_v6_fill_cb(skb, hdr, th); in tcp_v6_rcv()
1450 tcp_v6_fill_cb(skb, hdr, th); in tcp_v6_rcv()
1452 if (skb->len < (th->doff<<2) || tcp_checksum_complete(skb)) { in tcp_v6_rcv()
1475 tcp_v6_fill_cb(skb, hdr, th); in tcp_v6_rcv()
1477 if (skb->len < (th->doff<<2)) { in tcp_v6_rcv()
1486 switch (tcp_timewait_state_process(inet_twsk(sk), skb, th)) { in tcp_v6_rcv()
1492 &ipv6_hdr(skb)->saddr, th->source, in tcp_v6_rcv()
1494 ntohs(th->dest), tcp_v6_iif(skb)); in tcp_v6_rcv()
1520 const struct tcphdr *th; in tcp_v6_early_demux() local
1530 th = tcp_hdr(skb); in tcp_v6_early_demux()
1532 if (th->doff < sizeof(struct tcphdr) / 4) in tcp_v6_early_demux()
1537 &hdr->saddr, th->source, in tcp_v6_early_demux()
1538 &hdr->daddr, ntohs(th->dest), in tcp_v6_early_demux()