Lines Matching refs:th

324 	const struct tcphdr *th = (struct tcphdr *)(skb->data+offset);  in tcp_v6_err()  local
335 &hdr->daddr, th->dest, in tcp_v6_err()
336 &hdr->saddr, ntohs(th->source), in tcp_v6_err()
349 seq = ntohl(th->seq); in tcp_v6_err()
550 const struct tcphdr *th) in tcp_v6_md5_hash_hdr() argument
562 if (tcp_v6_md5_hash_pseudoheader(hp, daddr, saddr, th->doff << 2)) in tcp_v6_md5_hash_hdr()
564 if (tcp_md5_hash_header(hp, th)) in tcp_v6_md5_hash_hdr()
589 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_md5_hash_skb() local
610 if (tcp_md5_hash_header(hp, th)) in tcp_v6_md5_hash_skb()
612 if (tcp_md5_hash_skb_data(hp, skb, th->doff << 2)) in tcp_v6_md5_hash_skb()
638 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_inbound_md5_hash() local
643 hash_location = tcp_parse_md5sig_option(th); in tcp_v6_inbound_md5_hash()
667 &ip6h->saddr, ntohs(th->source), in tcp_v6_inbound_md5_hash()
668 &ip6h->daddr, ntohs(th->dest)); in tcp_v6_inbound_md5_hash()
741 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_send_response() local
770 t1->dest = th->source; in tcp_v6_send_response()
771 t1->source = th->dest; in tcp_v6_send_response()
775 t1->ack = !rst || !th->ack; in tcp_v6_send_response()
837 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_send_reset() local
849 if (th->rst) in tcp_v6_send_reset()
859 hash_location = tcp_parse_md5sig_option(th); in tcp_v6_send_reset()
870 th->source, &ipv6h->daddr, in tcp_v6_send_reset()
871 ntohs(th->source), tcp_v6_iif(skb)); in tcp_v6_send_reset()
888 if (th->ack) in tcp_v6_send_reset()
889 seq = ntohl(th->ack_seq); in tcp_v6_send_reset()
891 ack_seq = ntohl(th->seq) + th->syn + th->fin + skb->len - in tcp_v6_send_reset()
892 (th->doff << 2); in tcp_v6_send_reset()
947 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_cookie_check() local
949 if (!th->syn) in tcp_v6_cookie_check()
1317 const struct tcphdr *th) in tcp_v6_fill_cb() argument
1328 TCP_SKB_CB(skb)->seq = ntohl(th->seq); in tcp_v6_fill_cb()
1329 TCP_SKB_CB(skb)->end_seq = (TCP_SKB_CB(skb)->seq + th->syn + th->fin + in tcp_v6_fill_cb()
1330 skb->len - th->doff*4); in tcp_v6_fill_cb()
1331 TCP_SKB_CB(skb)->ack_seq = ntohl(th->ack_seq); in tcp_v6_fill_cb()
1332 TCP_SKB_CB(skb)->tcp_flags = tcp_flag_byte(th); in tcp_v6_fill_cb()
1349 const struct tcphdr *th; in tcp_v6_rcv() local
1366 th = tcp_hdr(skb); in tcp_v6_rcv()
1368 if (th->doff < sizeof(struct tcphdr)/4) in tcp_v6_rcv()
1370 if (!pskb_may_pull(skb, th->doff*4)) in tcp_v6_rcv()
1376 th = tcp_hdr(skb); in tcp_v6_rcv()
1380 sk = __inet6_lookup_skb(&tcp_hashinfo, skb, th->source, th->dest, in tcp_v6_rcv()
1394 tcp_v6_fill_cb(skb, hdr, th); in tcp_v6_rcv()
1428 tcp_v6_fill_cb(skb, hdr, th); in tcp_v6_rcv()
1467 tcp_v6_fill_cb(skb, hdr, th); in tcp_v6_rcv()
1492 tcp_v6_fill_cb(skb, hdr, th); in tcp_v6_rcv()
1499 switch (tcp_timewait_state_process(inet_twsk(sk), skb, th)) { in tcp_v6_rcv()
1505 &ipv6_hdr(skb)->saddr, th->source, in tcp_v6_rcv()
1507 ntohs(th->dest), tcp_v6_iif(skb)); in tcp_v6_rcv()
1532 const struct tcphdr *th; in tcp_v6_early_demux() local
1542 th = tcp_hdr(skb); in tcp_v6_early_demux()
1544 if (th->doff < sizeof(struct tcphdr) / 4) in tcp_v6_early_demux()
1549 &hdr->saddr, th->source, in tcp_v6_early_demux()
1550 &hdr->daddr, ntohs(th->dest), in tcp_v6_early_demux()