Lines Matching +full:4 +full:th
380 const struct tcphdr *th = (struct tcphdr *)(skb->data+offset); in tcp_v6_err() local
391 &hdr->daddr, th->dest, in tcp_v6_err()
392 &hdr->saddr, ntohs(th->source), in tcp_v6_err()
405 seq = ntohl(th->seq); in tcp_v6_err()
483 ipv6_icmp_error(sk, skb, err, th->dest, ntohl(info), (u8 *)th); in tcp_v6_err()
667 const struct tcphdr *th, int nbytes) in tcp_v6_md5_hash_headers() argument
681 memcpy(_th, th, sizeof(*th)); in tcp_v6_md5_hash_headers()
684 sg_init_one(&sg, bp, sizeof(*bp) + sizeof(*th)); in tcp_v6_md5_hash_headers()
686 sizeof(*bp) + sizeof(*th)); in tcp_v6_md5_hash_headers()
692 const struct tcphdr *th) in tcp_v6_md5_hash_hdr() argument
704 if (tcp_v6_md5_hash_headers(hp, daddr, saddr, th, th->doff << 2)) in tcp_v6_md5_hash_hdr()
730 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_md5_hash_skb() local
749 if (tcp_v6_md5_hash_headers(hp, daddr, saddr, th, skb->len)) in tcp_v6_md5_hash_skb()
751 if (tcp_md5_hash_skb_data(hp, skb, th->doff << 2)) in tcp_v6_md5_hash_skb()
779 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_inbound_md5_hash() local
789 hash_location = tcp_parse_md5sig_option(th); in tcp_v6_inbound_md5_hash()
814 &ip6h->saddr, ntohs(th->source), in tcp_v6_inbound_md5_hash()
815 &ip6h->daddr, ntohs(th->dest), l3index); in tcp_v6_inbound_md5_hash()
887 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_send_response() local
917 t1->dest = th->source; in tcp_v6_send_response()
918 t1->source = th->dest; in tcp_v6_send_response()
919 t1->doff = tot_len / 4; in tcp_v6_send_response()
922 t1->ack = !rst || !th->ack; in tcp_v6_send_response()
1002 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_send_reset() local
1017 if (th->rst) in tcp_v6_send_reset()
1029 hash_location = tcp_parse_md5sig_option(th); in tcp_v6_send_reset()
1053 th->source, &ipv6h->daddr, in tcp_v6_send_reset()
1054 ntohs(th->source), dif, sdif); in tcp_v6_send_reset()
1073 if (th->ack) in tcp_v6_send_reset()
1074 seq = ntohl(th->ack_seq); in tcp_v6_send_reset()
1076 ack_seq = ntohl(th->seq) + th->syn + th->fin + skb->len - in tcp_v6_send_reset()
1077 (th->doff << 2); in tcp_v6_send_reset()
1159 const struct tcphdr *th = tcp_hdr(skb); in tcp_v6_cookie_check() local
1161 if (!th->syn) in tcp_v6_cookie_check()
1168 struct tcphdr *th, u32 *cookie) in tcp_v6_get_syncookie() argument
1173 &tcp_request_sock_ipv6_ops, sk, th); in tcp_v6_get_syncookie()
1175 *cookie = __cookie_v6_init_sequence(iph, th, &mss); in tcp_v6_get_syncookie()
1549 4. Finally, it really contains options, which user wants to receive. in tcp_v6_do_rcv()
1577 const struct tcphdr *th) in tcp_v6_fill_cb() argument
1588 TCP_SKB_CB(skb)->seq = ntohl(th->seq); in tcp_v6_fill_cb()
1589 TCP_SKB_CB(skb)->end_seq = (TCP_SKB_CB(skb)->seq + th->syn + th->fin + in tcp_v6_fill_cb()
1590 skb->len - th->doff*4); in tcp_v6_fill_cb()
1591 TCP_SKB_CB(skb)->ack_seq = ntohl(th->ack_seq); in tcp_v6_fill_cb()
1592 TCP_SKB_CB(skb)->tcp_flags = tcp_flag_byte(th); in tcp_v6_fill_cb()
1605 const struct tcphdr *th; in tcp_v6_rcv() local
1623 th = (const struct tcphdr *)skb->data; in tcp_v6_rcv()
1625 if (unlikely(th->doff < sizeof(struct tcphdr)/4)) in tcp_v6_rcv()
1627 if (!pskb_may_pull(skb, th->doff*4)) in tcp_v6_rcv()
1633 th = (const struct tcphdr *)skb->data; in tcp_v6_rcv()
1637 sk = __inet6_lookup_skb(&tcp_hashinfo, skb, __tcp_hdrlen(th), in tcp_v6_rcv()
1638 th->source, th->dest, inet6_iif(skb), sdif, in tcp_v6_rcv()
1670 th = (const struct tcphdr *)skb->data; in tcp_v6_rcv()
1672 tcp_v6_fill_cb(skb, hdr, th); in tcp_v6_rcv()
1713 th = (const struct tcphdr *)skb->data; in tcp_v6_rcv()
1715 tcp_v6_fill_cb(skb, hdr, th); in tcp_v6_rcv()
1750 tcp_v6_fill_cb(skb, hdr, th); in tcp_v6_rcv()
1777 tcp_v6_fill_cb(skb, hdr, th); in tcp_v6_rcv()
1784 switch (tcp_timewait_state_process(inet_twsk(sk), skb, th)) { in tcp_v6_rcv()
1790 skb, __tcp_hdrlen(th), in tcp_v6_rcv()
1791 &ipv6_hdr(skb)->saddr, th->source, in tcp_v6_rcv()
1793 ntohs(th->dest), in tcp_v6_rcv()
1823 const struct tcphdr *th; in tcp_v6_early_demux() local
1833 th = tcp_hdr(skb); in tcp_v6_early_demux()
1835 if (th->doff < sizeof(struct tcphdr) / 4) in tcp_v6_early_demux()
1840 &hdr->saddr, th->source, in tcp_v6_early_demux()
1841 &hdr->daddr, ntohs(th->dest), in tcp_v6_early_demux()
1958 "%4d: %08X%08X%08X%08X:%04X %08X%08X%08X%08X:%04X " in get_openreq6()
2003 timer_active = 4; in get_tcp6_sock()
2024 "%4d: %08X%08X%08X%08X:%04X %08X%08X%08X%08X:%04X " in get_tcp6_sock()
2064 "%4d: %08X%08X%08X%08X:%04X %08X%08X%08X%08X:%04X " in get_timewait6_sock()