Lines Matching +full:8 +full:th

89 			       __be32 daddr, __be32 saddr, const struct tcphdr *th);
464 * it's just the icmp type << 8 | icmp code. After adjustment
465 * header points to the first 8 bytes of the tcp header. We need
479 struct tcphdr *th = (struct tcphdr *)(skb->data + (iph->ihl << 2)); in tcp_v4_err() local
490 iph->daddr, th->dest, iph->saddr, in tcp_v4_err()
491 ntohs(th->source), inet_iif(skb), 0); in tcp_v4_err()
502 seq = ntohl(th->seq); in tcp_v4_err()
605 ip_icmp_error(sk, skb, err, th->dest, info, (u8 *)th); in tcp_v4_err()
651 struct tcphdr *th = tcp_hdr(skb); in __tcp_v4_send_check() local
653 th->check = ~tcp_v4_check(skb->len, saddr, daddr, 0); in __tcp_v4_send_check()
692 (aoh->rnext_keyid << 8) | keyid); in tcp_v4_ao_sign_reset()
728 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_reset() local
730 struct tcphdr th; in tcp_v4_send_reset() member
748 if (th->rst) in tcp_v4_send_reset()
759 rep.th.dest = th->source; in tcp_v4_send_reset()
760 rep.th.source = th->dest; in tcp_v4_send_reset()
761 rep.th.doff = sizeof(struct tcphdr) / 4; in tcp_v4_send_reset()
762 rep.th.rst = 1; in tcp_v4_send_reset()
764 if (th->ack) { in tcp_v4_send_reset()
765 rep.th.seq = th->ack_seq; in tcp_v4_send_reset()
767 rep.th.ack = 1; in tcp_v4_send_reset()
768 rep.th.ack_seq = htonl(ntohl(th->seq) + th->syn + th->fin + in tcp_v4_send_reset()
769 skb->len - (th->doff << 2)); in tcp_v4_send_reset()
774 arg.iov[0].iov_len = sizeof(rep.th); in tcp_v4_send_reset()
782 if (aoh && tcp_v4_ao_sign_reset(sk, skb, aoh, &arg, &rep.th, rep.opt)) in tcp_v4_send_reset()
812 th->source, ip_hdr(skb)->daddr, in tcp_v4_send_reset()
813 ntohs(th->source), dif, sdif); in tcp_v4_send_reset()
837 (TCPOPT_MD5SIG << 8) | in tcp_v4_send_reset()
841 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_reset()
845 ip_hdr(skb)->daddr, &rep.th); in tcp_v4_send_reset()
855 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_reset()
924 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_ack() local
926 struct tcphdr th; in tcp_v4_send_ack() member
934 memset(&rep.th, 0, sizeof(struct tcphdr)); in tcp_v4_send_ack()
938 arg.iov[0].iov_len = sizeof(rep.th); in tcp_v4_send_ack()
941 (TCPOPT_TIMESTAMP << 8) | in tcp_v4_send_ack()
949 rep.th.dest = th->source; in tcp_v4_send_ack()
950 rep.th.source = th->dest; in tcp_v4_send_ack()
951 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_ack()
952 rep.th.seq = htonl(seq); in tcp_v4_send_ack()
953 rep.th.ack_seq = htonl(ack); in tcp_v4_send_ack()
954 rep.th.ack = 1; in tcp_v4_send_ack()
955 rep.th.window = htons(win); in tcp_v4_send_ack()
963 (TCPOPT_MD5SIG << 8) | in tcp_v4_send_ack()
966 rep.th.doff = arg.iov[0].iov_len/4; in tcp_v4_send_ack()
970 ip_hdr(skb)->daddr, &rep.th); in tcp_v4_send_ack()
979 (key->ao_key->sndid << 8) | in tcp_v4_send_ack()
982 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_ack()
988 &rep.th, key->sne); in tcp_v4_send_ack()
1558 const struct tcphdr *th, int nbytes) argument
1572 memcpy(_th, th, sizeof(*th));
1575 sg_init_one(&sg, bp, sizeof(*bp) + sizeof(*th));
1577 sizeof(*bp) + sizeof(*th));
1582 __be32 daddr, __be32 saddr, const struct tcphdr *th) argument
1591 if (tcp_v4_md5_hash_headers(&hp, daddr, saddr, th, th->doff << 2))
1613 const struct tcphdr *th = tcp_hdr(skb); local
1632 if (tcp_v4_md5_hash_headers(&hp, daddr, saddr, th, skb->len))
1634 if (tcp_sigpool_hash_skb_data(&hp, skb, th->doff << 2))
1852 const struct tcphdr *th = tcp_hdr(skb); local
1854 if (!th->syn)
1861 struct tcphdr *th, u32 *cookie) argument
1866 &tcp_request_sock_ipv4_ops, sk, th);
1868 *cookie = __cookie_v4_init_sequence(iph, th, &mss);
1959 const struct tcphdr *th; local
1969 th = tcp_hdr(skb);
1971 if (th->doff < sizeof(struct tcphdr) / 4)
1975 iph->saddr, th->source,
1976 iph->daddr, ntohs(th->dest),
1999 const struct tcphdr *th; local
2031 th = (const struct tcphdr *)skb->data;
2032 hdrlen = th->doff * 4;
2051 thtail->doff != th->doff ||
2052 memcmp(thtail + 1, th + 1, hdrlen - sizeof(*th)))
2070 thtail->window = th->window;
2081 thtail->fin |= th->fin;
2123 struct tcphdr *th = (struct tcphdr *)skb->data; local
2125 return sk_filter_trim_cap(sk, skb, th->doff * 4);
2136 const struct tcphdr *th) argument
2145 TCP_SKB_CB(skb)->seq = ntohl(th->seq);
2146 TCP_SKB_CB(skb)->end_seq = (TCP_SKB_CB(skb)->seq + th->syn + th->fin +
2147 skb->len - th->doff * 4);
2148 TCP_SKB_CB(skb)->ack_seq = ntohl(th->ack_seq);
2149 TCP_SKB_CB(skb)->tcp_flags = tcp_flag_byte(th);
2168 const struct tcphdr *th; local
2183 th = (const struct tcphdr *)skb->data;
2185 if (unlikely(th->doff < sizeof(struct tcphdr) / 4)) {
2189 if (!pskb_may_pull(skb, th->doff * 4))
2194 * provided case of th->doff==0 is eliminated.
2200 th = (const struct tcphdr *)skb->data;
2204 skb, __tcp_hdrlen(th), th->source,
2205 th->dest, sdif, &refcounted);
2253 th = (const struct tcphdr *)skb->data;
2255 tcp_v4_fill_cb(skb, iph, th);
2312 th = (const struct tcphdr *)skb->data;
2314 tcp_v4_fill_cb(skb, iph, th);
2347 tcp_v4_fill_cb(skb, iph, th);
2379 tcp_v4_fill_cb(skb, iph, th);
2385 switch (tcp_timewait_state_process(inet_twsk(sk), skb, th)) {
2389 skb, __tcp_hdrlen(th),
2390 iph->saddr, th->source,
2391 iph->daddr, th->dest,
2836 " %02X %08X:%08X %02X:%08lX %08X %5u %8d %u %d %pK",
2897 "%08X %5u %8d %lu %d %pK %lu %lu %u %u %d",
2930 " %02X %08X:%08X %02X:%08lX %08X %5d %8d %d %d %pK",
2976 uid_t uid __aligned(8);