Lines Matching +full:4 +full:th
91 __be32 daddr, __be32 saddr, const struct tcphdr *th);
498 struct tcphdr *th = (struct tcphdr *)(skb->data + (iph->ihl << 2)); in tcp_v4_err() local
509 iph->daddr, th->dest, iph->saddr, in tcp_v4_err()
510 ntohs(th->source), inet_iif(skb), 0); in tcp_v4_err()
521 seq = ntohl(th->seq); in tcp_v4_err()
624 ip_icmp_error(sk, skb, err, th->dest, info, (u8 *)th); in tcp_v4_err()
665 struct tcphdr *th = tcp_hdr(skb); in __tcp_v4_send_check() local
667 th->check = ~tcp_v4_check(skb->len, saddr, daddr, 0); in __tcp_v4_send_check()
708 reply->doff = arg->iov[0].iov_len / 4; in tcp_v4_ao_sign_reset()
743 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_reset() local
745 struct tcphdr th; in tcp_v4_send_reset() member
763 if (th->rst) in tcp_v4_send_reset()
774 rep.th.dest = th->source; in tcp_v4_send_reset()
775 rep.th.source = th->dest; in tcp_v4_send_reset()
776 rep.th.doff = sizeof(struct tcphdr) / 4; in tcp_v4_send_reset()
777 rep.th.rst = 1; in tcp_v4_send_reset()
779 if (th->ack) { in tcp_v4_send_reset()
780 rep.th.seq = th->ack_seq; in tcp_v4_send_reset()
782 rep.th.ack = 1; in tcp_v4_send_reset()
783 rep.th.ack_seq = htonl(ntohl(th->seq) + th->syn + th->fin + in tcp_v4_send_reset()
784 skb->len - (th->doff << 2)); in tcp_v4_send_reset()
789 arg.iov[0].iov_len = sizeof(rep.th); in tcp_v4_send_reset()
797 if (aoh && tcp_v4_ao_sign_reset(sk, skb, aoh, &arg, &rep.th, rep.opt)) in tcp_v4_send_reset()
827 th->source, ip_hdr(skb)->daddr, in tcp_v4_send_reset()
828 ntohs(th->source), dif, sdif); in tcp_v4_send_reset()
856 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_reset()
860 ip_hdr(skb)->daddr, &rep.th); in tcp_v4_send_reset()
870 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_reset()
941 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_ack() local
943 struct tcphdr th; in tcp_v4_send_ack() member
951 memset(&rep.th, 0, sizeof(struct tcphdr)); in tcp_v4_send_ack()
955 arg.iov[0].iov_len = sizeof(rep.th); in tcp_v4_send_ack()
966 rep.th.dest = th->source; in tcp_v4_send_ack()
967 rep.th.source = th->dest; in tcp_v4_send_ack()
968 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_ack()
969 rep.th.seq = htonl(seq); in tcp_v4_send_ack()
970 rep.th.ack_seq = htonl(ack); in tcp_v4_send_ack()
971 rep.th.ack = 1; in tcp_v4_send_ack()
972 rep.th.window = htons(win); in tcp_v4_send_ack()
983 rep.th.doff = arg.iov[0].iov_len/4; in tcp_v4_send_ack()
987 ip_hdr(skb)->daddr, &rep.th); in tcp_v4_send_ack()
999 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_ack()
1005 &rep.th, key->sne); in tcp_v4_send_ack()
1569 const struct tcphdr *th, int nbytes) argument
1583 memcpy(_th, th, sizeof(*th));
1586 sg_init_one(&sg, bp, sizeof(*bp) + sizeof(*th));
1588 sizeof(*bp) + sizeof(*th));
1593 __be32 daddr, __be32 saddr, const struct tcphdr *th) argument
1602 if (tcp_v4_md5_hash_headers(&hp, daddr, saddr, th, th->doff << 2))
1624 const struct tcphdr *th = tcp_hdr(skb); local
1643 if (tcp_v4_md5_hash_headers(&hp, daddr, saddr, th, skb->len))
1645 if (tcp_sigpool_hash_skb_data(&hp, skb, th->doff << 2))
1864 const struct tcphdr *th = tcp_hdr(skb); local
1866 if (!th->syn)
1873 struct tcphdr *th, u32 *cookie) argument
1878 &tcp_request_sock_ipv4_ops, sk, th);
1880 *cookie = __cookie_v4_init_sequence(iph, th, &mss);
1972 const struct tcphdr *th; local
1982 th = tcp_hdr(skb);
1984 if (th->doff < sizeof(struct tcphdr) / 4)
1988 iph->saddr, th->source,
1989 iph->daddr, ntohs(th->dest),
2012 const struct tcphdr *th; local
2045 th = (const struct tcphdr *)skb->data;
2046 hdrlen = th->doff * 4;
2062 thtail->doff != th->doff ||
2063 memcmp(thtail + 1, th + 1, hdrlen - sizeof(*th)))
2081 thtail->window = th->window;
2092 thtail->fin |= th->fin;
2142 struct tcphdr *th = (struct tcphdr *)skb->data; local
2144 return sk_filter_trim_cap(sk, skb, th->doff * 4);
2155 const struct tcphdr *th) argument
2164 TCP_SKB_CB(skb)->seq = ntohl(th->seq);
2165 TCP_SKB_CB(skb)->end_seq = (TCP_SKB_CB(skb)->seq + th->syn + th->fin +
2166 skb->len - th->doff * 4);
2167 TCP_SKB_CB(skb)->ack_seq = ntohl(th->ack_seq);
2168 TCP_SKB_CB(skb)->tcp_flags = tcp_flag_byte(th);
2186 const struct tcphdr *th; local
2202 th = (const struct tcphdr *)skb->data;
2204 if (unlikely(th->doff < sizeof(struct tcphdr) / 4)) {
2208 if (!pskb_may_pull(skb, th->doff * 4))
2213 * provided case of th->doff==0 is eliminated.
2219 th = (const struct tcphdr *)skb->data;
2223 skb, __tcp_hdrlen(th), th->source,
2224 th->dest, sdif, &refcounted);
2271 th = (const struct tcphdr *)skb->data;
2273 tcp_v4_fill_cb(skb, iph, th);
2336 th = (const struct tcphdr *)skb->data;
2338 tcp_v4_fill_cb(skb, iph, th);
2371 tcp_v4_fill_cb(skb, iph, th);
2403 tcp_v4_fill_cb(skb, iph, th);
2409 switch (tcp_timewait_state_process(inet_twsk(sk), skb, th, &isn)) {
2413 skb, __tcp_hdrlen(th),
2414 iph->saddr, th->source,
2415 iph->daddr, th->dest,
2874 seq_printf(f, "%4d: %08X:%04X %08X:%04X"
2917 timer_active = 4;
2937 seq_printf(f, "%4d: %08X:%04X %08X:%04X %02X %08X:%08X %02X:%08lX "
2970 seq_printf(f, "%4d: %08X:%04X %08X:%04X"
3531 net->ipv4.sysctl_tcp_syn_linear_timeouts = 4;