Lines Matching +full:4 +full:th
91 __be32 daddr, __be32 saddr, const struct tcphdr *th);
496 struct tcphdr *th = (struct tcphdr *)(skb->data + (iph->ihl << 2)); in tcp_v4_err() local
507 iph->daddr, th->dest, iph->saddr, in tcp_v4_err()
508 ntohs(th->source), inet_iif(skb), 0); in tcp_v4_err()
519 seq = ntohl(th->seq); in tcp_v4_err()
622 ip_icmp_error(sk, skb, err, th->dest, info, (u8 *)th); in tcp_v4_err()
663 struct tcphdr *th = tcp_hdr(skb); in __tcp_v4_send_check() local
665 th->check = ~tcp_v4_check(skb->len, saddr, daddr, 0); in __tcp_v4_send_check()
706 reply->doff = arg->iov[0].iov_len / 4; in tcp_v4_ao_sign_reset()
741 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_reset() local
743 struct tcphdr th; in tcp_v4_send_reset() member
761 if (th->rst) in tcp_v4_send_reset()
772 rep.th.dest = th->source; in tcp_v4_send_reset()
773 rep.th.source = th->dest; in tcp_v4_send_reset()
774 rep.th.doff = sizeof(struct tcphdr) / 4; in tcp_v4_send_reset()
775 rep.th.rst = 1; in tcp_v4_send_reset()
777 if (th->ack) { in tcp_v4_send_reset()
778 rep.th.seq = th->ack_seq; in tcp_v4_send_reset()
780 rep.th.ack = 1; in tcp_v4_send_reset()
781 rep.th.ack_seq = htonl(ntohl(th->seq) + th->syn + th->fin + in tcp_v4_send_reset()
782 skb->len - (th->doff << 2)); in tcp_v4_send_reset()
787 arg.iov[0].iov_len = sizeof(rep.th); in tcp_v4_send_reset()
795 if (aoh && tcp_v4_ao_sign_reset(sk, skb, aoh, &arg, &rep.th, rep.opt)) in tcp_v4_send_reset()
825 th->source, ip_hdr(skb)->daddr, in tcp_v4_send_reset()
826 ntohs(th->source), dif, sdif); in tcp_v4_send_reset()
854 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_reset()
858 ip_hdr(skb)->daddr, &rep.th); in tcp_v4_send_reset()
868 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_reset()
939 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_ack() local
941 struct tcphdr th; in tcp_v4_send_ack() member
949 memset(&rep.th, 0, sizeof(struct tcphdr)); in tcp_v4_send_ack()
953 arg.iov[0].iov_len = sizeof(rep.th); in tcp_v4_send_ack()
964 rep.th.dest = th->source; in tcp_v4_send_ack()
965 rep.th.source = th->dest; in tcp_v4_send_ack()
966 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_ack()
967 rep.th.seq = htonl(seq); in tcp_v4_send_ack()
968 rep.th.ack_seq = htonl(ack); in tcp_v4_send_ack()
969 rep.th.ack = 1; in tcp_v4_send_ack()
970 rep.th.window = htons(win); in tcp_v4_send_ack()
981 rep.th.doff = arg.iov[0].iov_len/4; in tcp_v4_send_ack()
985 ip_hdr(skb)->daddr, &rep.th); in tcp_v4_send_ack()
997 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_ack()
1003 &rep.th, key->sne); in tcp_v4_send_ack()
1566 const struct tcphdr *th, int nbytes) argument
1580 memcpy(_th, th, sizeof(*th));
1583 sg_init_one(&sg, bp, sizeof(*bp) + sizeof(*th));
1585 sizeof(*bp) + sizeof(*th));
1590 __be32 daddr, __be32 saddr, const struct tcphdr *th) argument
1599 if (tcp_v4_md5_hash_headers(&hp, daddr, saddr, th, th->doff << 2))
1621 const struct tcphdr *th = tcp_hdr(skb); local
1640 if (tcp_v4_md5_hash_headers(&hp, daddr, saddr, th, skb->len))
1642 if (tcp_sigpool_hash_skb_data(&hp, skb, th->doff << 2))
1861 const struct tcphdr *th = tcp_hdr(skb); local
1863 if (!th->syn)
1870 struct tcphdr *th, u32 *cookie) argument
1875 &tcp_request_sock_ipv4_ops, sk, th);
1877 *cookie = __cookie_v4_init_sequence(iph, th, &mss);
1969 const struct tcphdr *th; local
1979 th = tcp_hdr(skb);
1981 if (th->doff < sizeof(struct tcphdr) / 4)
1985 iph->saddr, th->source,
1986 iph->daddr, ntohs(th->dest),
2009 const struct tcphdr *th; local
2042 th = (const struct tcphdr *)skb->data;
2043 hdrlen = th->doff * 4;
2059 thtail->doff != th->doff ||
2060 memcmp(thtail + 1, th + 1, hdrlen - sizeof(*th)))
2078 thtail->window = th->window;
2089 thtail->fin |= th->fin;
2139 struct tcphdr *th = (struct tcphdr *)skb->data; local
2141 return sk_filter_trim_cap(sk, skb, th->doff * 4);
2152 const struct tcphdr *th) argument
2161 TCP_SKB_CB(skb)->seq = ntohl(th->seq);
2162 TCP_SKB_CB(skb)->end_seq = (TCP_SKB_CB(skb)->seq + th->syn + th->fin +
2163 skb->len - th->doff * 4);
2164 TCP_SKB_CB(skb)->ack_seq = ntohl(th->ack_seq);
2165 TCP_SKB_CB(skb)->tcp_flags = tcp_flag_byte(th);
2183 const struct tcphdr *th; local
2199 th = (const struct tcphdr *)skb->data;
2201 if (unlikely(th->doff < sizeof(struct tcphdr) / 4)) {
2205 if (!pskb_may_pull(skb, th->doff * 4))
2210 * provided case of th->doff==0 is eliminated.
2216 th = (const struct tcphdr *)skb->data;
2220 skb, __tcp_hdrlen(th), th->source,
2221 th->dest, sdif, &refcounted);
2268 th = (const struct tcphdr *)skb->data;
2270 tcp_v4_fill_cb(skb, iph, th);
2333 th = (const struct tcphdr *)skb->data;
2335 tcp_v4_fill_cb(skb, iph, th);
2368 tcp_v4_fill_cb(skb, iph, th);
2400 tcp_v4_fill_cb(skb, iph, th);
2406 switch (tcp_timewait_state_process(inet_twsk(sk), skb, th, &isn)) {
2410 skb, __tcp_hdrlen(th),
2411 iph->saddr, th->source,
2412 iph->daddr, th->dest,
2871 seq_printf(f, "%4d: %08X:%04X %08X:%04X"
2912 timer_active = 4;
2932 seq_printf(f, "%4d: %08X:%04X %08X:%04X %02X %08X:%08X %02X:%08lX "
2965 seq_printf(f, "%4d: %08X:%04X %08X:%04X"
3525 net->ipv4.sysctl_tcp_syn_linear_timeouts = 4;