Lines Matching +full:4 +full:th
369 const struct tcphdr *th = (struct tcphdr *)(skb->data+offset); in tcp_v6_err() local
380 &hdr->daddr, th->dest, in tcp_v6_err()
381 &hdr->saddr, ntohs(th->source), in tcp_v6_err()
394 seq = ntohl(th->seq); in tcp_v6_err()
466 ipv6_icmp_error(sk, skb, err, th->dest, ntohl(info), (u8 *)th); in tcp_v6_err()
650 const struct tcphdr *th, int nbytes) in tcp_v6_md5_hash_headers() argument
664 memcpy(_th, th, sizeof(*th)); in tcp_v6_md5_hash_headers()
667 sg_init_one(&sg, bp, sizeof(*bp) + sizeof(*th)); in tcp_v6_md5_hash_headers()
669 sizeof(*bp) + sizeof(*th)); in tcp_v6_md5_hash_headers()
675 const struct tcphdr *th) in tcp_v6_md5_hash_hdr() argument
687 if (tcp_v6_md5_hash_headers(hp, daddr, saddr, th, th->doff << 2)) in tcp_v6_md5_hash_hdr()
713 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_md5_hash_skb() local
732 if (tcp_v6_md5_hash_headers(hp, daddr, saddr, th, skb->len)) in tcp_v6_md5_hash_skb()
734 if (tcp_md5_hash_skb_data(hp, skb, th->doff << 2)) in tcp_v6_md5_hash_skb()
762 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_inbound_md5_hash() local
772 hash_location = tcp_parse_md5sig_option(th); in tcp_v6_inbound_md5_hash()
797 &ip6h->saddr, ntohs(th->source), in tcp_v6_inbound_md5_hash()
798 &ip6h->daddr, ntohs(th->dest), l3index); in tcp_v6_inbound_md5_hash()
870 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_send_response() local
900 t1->dest = th->source; in tcp_v6_send_response()
901 t1->source = th->dest; in tcp_v6_send_response()
902 t1->doff = tot_len / 4; in tcp_v6_send_response()
905 t1->ack = !rst || !th->ack; in tcp_v6_send_response()
985 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_send_reset() local
1000 if (th->rst) in tcp_v6_send_reset()
1012 hash_location = tcp_parse_md5sig_option(th); in tcp_v6_send_reset()
1036 th->source, &ipv6h->daddr, in tcp_v6_send_reset()
1037 ntohs(th->source), dif, sdif); in tcp_v6_send_reset()
1056 if (th->ack) in tcp_v6_send_reset()
1057 seq = ntohl(th->ack_seq); in tcp_v6_send_reset()
1059 ack_seq = ntohl(th->seq) + th->syn + th->fin + skb->len - in tcp_v6_send_reset()
1060 (th->doff << 2); in tcp_v6_send_reset()
1142 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_cookie_check() local
1144 if (!th->syn) in tcp_v6_cookie_check()
1151 struct tcphdr *th, u32 *cookie) in tcp_v6_get_syncookie() argument
1156 &tcp_request_sock_ipv6_ops, sk, th); in tcp_v6_get_syncookie()
1158 *cookie = __cookie_v6_init_sequence(iph, th, &mss); in tcp_v6_get_syncookie()
1527 4. Finally, it really contains options, which user wants to receive. in tcp_v6_do_rcv()
1555 const struct tcphdr *th) in tcp_v6_fill_cb() argument
1566 TCP_SKB_CB(skb)->seq = ntohl(th->seq); in tcp_v6_fill_cb()
1567 TCP_SKB_CB(skb)->end_seq = (TCP_SKB_CB(skb)->seq + th->syn + th->fin + in tcp_v6_fill_cb()
1568 skb->len - th->doff*4); in tcp_v6_fill_cb()
1569 TCP_SKB_CB(skb)->ack_seq = ntohl(th->ack_seq); in tcp_v6_fill_cb()
1570 TCP_SKB_CB(skb)->tcp_flags = tcp_flag_byte(th); in tcp_v6_fill_cb()
1583 const struct tcphdr *th; in tcp_v6_rcv() local
1601 th = (const struct tcphdr *)skb->data; in tcp_v6_rcv()
1603 if (unlikely(th->doff < sizeof(struct tcphdr)/4)) in tcp_v6_rcv()
1605 if (!pskb_may_pull(skb, th->doff*4)) in tcp_v6_rcv()
1611 th = (const struct tcphdr *)skb->data; in tcp_v6_rcv()
1615 sk = __inet6_lookup_skb(&tcp_hashinfo, skb, __tcp_hdrlen(th), in tcp_v6_rcv()
1616 th->source, th->dest, inet6_iif(skb), sdif, in tcp_v6_rcv()
1648 th = (const struct tcphdr *)skb->data; in tcp_v6_rcv()
1650 tcp_v6_fill_cb(skb, hdr, th); in tcp_v6_rcv()
1691 th = (const struct tcphdr *)skb->data; in tcp_v6_rcv()
1693 tcp_v6_fill_cb(skb, hdr, th); in tcp_v6_rcv()
1728 tcp_v6_fill_cb(skb, hdr, th); in tcp_v6_rcv()
1755 tcp_v6_fill_cb(skb, hdr, th); in tcp_v6_rcv()
1762 switch (tcp_timewait_state_process(inet_twsk(sk), skb, th)) { in tcp_v6_rcv()
1768 skb, __tcp_hdrlen(th), in tcp_v6_rcv()
1769 &ipv6_hdr(skb)->saddr, th->source, in tcp_v6_rcv()
1771 ntohs(th->dest), in tcp_v6_rcv()
1801 const struct tcphdr *th; in tcp_v6_early_demux() local
1811 th = tcp_hdr(skb); in tcp_v6_early_demux()
1813 if (th->doff < sizeof(struct tcphdr) / 4) in tcp_v6_early_demux()
1818 &hdr->saddr, th->source, in tcp_v6_early_demux()
1819 &hdr->daddr, ntohs(th->dest), in tcp_v6_early_demux()
1936 "%4d: %08X%08X%08X%08X:%04X %08X%08X%08X%08X:%04X " in get_openreq6()
1981 timer_active = 4; in get_tcp6_sock()
2002 "%4d: %08X%08X%08X%08X:%04X %08X%08X%08X%08X:%04X " in get_tcp6_sock()
2042 "%4d: %08X%08X%08X%08X:%04X %08X%08X%08X%08X:%04X " in get_timewait6_sock()