Lines Matching +full:4 +full:th

96 			       __be32 daddr, __be32 saddr, const struct tcphdr *th);
501 struct tcphdr *th = (struct tcphdr *)(skb->data + (iph->ihl << 2));
511 sk = __inet_lookup_established(net, iph->daddr, th->dest, iph->saddr,
512 ntohs(th->source), inet_iif(skb), 0);
523 seq = ntohl(th->seq);
626 ip_icmp_error(sk, skb, err, th->dest, info, (u8 *)th);
667 struct tcphdr *th = tcp_hdr(skb);
669 th->check = ~tcp_v4_check(skb->len, saddr, daddr, 0);
710 reply->doff = arg->iov[0].iov_len / 4;
745 const struct tcphdr *th = tcp_hdr(skb);
747 struct tcphdr th;
765 if (th->rst)
776 rep.th.dest = th->source;
777 rep.th.source = th->dest;
778 rep.th.doff = sizeof(struct tcphdr) / 4;
779 rep.th.rst = 1;
781 if (th->ack) {
782 rep.th.seq = th->ack_seq;
784 rep.th.ack = 1;
785 rep.th.ack_seq = htonl(ntohl(th->seq) + th->syn + th->fin +
786 skb->len - (th->doff << 2));
791 arg.iov[0].iov_len = sizeof(rep.th);
799 if (aoh && tcp_v4_ao_sign_reset(sk, skb, aoh, &arg, &rep.th, rep.opt))
828 th->source, ip_hdr(skb)->daddr,
829 ntohs(th->source), dif, sdif);
857 rep.th.doff = arg.iov[0].iov_len / 4;
861 ip_hdr(skb)->daddr, &rep.th);
871 rep.th.doff = arg.iov[0].iov_len / 4;
943 const struct tcphdr *th = tcp_hdr(skb);
945 struct tcphdr th;
953 memset(&rep.th, 0, sizeof(struct tcphdr));
957 arg.iov[0].iov_len = sizeof(rep.th);
968 rep.th.dest = th->source;
969 rep.th.source = th->dest;
970 rep.th.doff = arg.iov[0].iov_len / 4;
971 rep.th.seq = htonl(seq);
972 rep.th.ack_seq = htonl(ack);
973 rep.th.ack = 1;
974 rep.th.window = htons(win);
985 rep.th.doff = arg.iov[0].iov_len/4;
989 ip_hdr(skb)->daddr, &rep.th);
1001 rep.th.doff = arg.iov[0].iov_len / 4;
1007 &rep.th, key->sne);
1583 const struct tcphdr *th, int nbytes)
1597 memcpy(_th, th, sizeof(*th));
1600 sg_init_one(&sg, bp, sizeof(*bp) + sizeof(*th));
1602 sizeof(*bp) + sizeof(*th));
1607 __be32 daddr, __be32 saddr, const struct tcphdr *th)
1616 if (tcp_v4_md5_hash_headers(&hp, daddr, saddr, th, th->doff << 2))
1638 const struct tcphdr *th = tcp_hdr(skb);
1657 if (tcp_v4_md5_hash_headers(&hp, daddr, saddr, th, skb->len))
1659 if (tcp_sigpool_hash_skb_data(&hp, skb, th->doff << 2))
1873 const struct tcphdr *th = tcp_hdr(skb);
1875 if (!th->syn)
1882 struct tcphdr *th, u32 *cookie)
1887 &tcp_request_sock_ipv4_ops, sk, th);
1889 *cookie = __cookie_v4_init_sequence(iph, th, &mss);
1986 const struct tcphdr *th;
1996 th = tcp_hdr(skb);
1998 if (th->doff < sizeof(struct tcphdr) / 4)
2001 sk = __inet_lookup_established(net, iph->saddr, th->source,
2002 iph->daddr, ntohs(th->dest),
2025 const struct tcphdr *th;
2059 th = (const struct tcphdr *)skb->data;
2060 hdrlen = th->doff * 4;
2077 thtail->doff != th->doff ||
2078 memcmp(thtail + 1, th + 1, hdrlen - sizeof(*th)) ||
2098 thtail->window = th->window;
2109 thtail->fin |= th->fin;
2165 struct tcphdr *th = (struct tcphdr *)skb->data;
2167 return sk_filter_trim_cap(sk, skb, th->doff * 4, reason);
2178 const struct tcphdr *th)
2187 TCP_SKB_CB(skb)->seq = ntohl(th->seq);
2188 TCP_SKB_CB(skb)->end_seq = (TCP_SKB_CB(skb)->seq + th->syn + th->fin +
2189 skb->len - th->doff * 4);
2190 TCP_SKB_CB(skb)->ack_seq = ntohl(th->ack_seq);
2191 TCP_SKB_CB(skb)->tcp_flags = tcp_flags_ntohs(th);
2210 const struct tcphdr *th;
2226 th = (const struct tcphdr *)skb->data;
2228 if (unlikely(th->doff < sizeof(struct tcphdr) / 4)) {
2232 if (!pskb_may_pull(skb, th->doff * 4))
2237 * provided case of th->doff==0 is eliminated.
2243 th = (const struct tcphdr *)skb->data;
2246 sk = __inet_lookup_skb(skb, __tcp_hdrlen(th), th->source,
2247 th->dest, sdif, &refcounted);
2294 th = (const struct tcphdr *)skb->data;
2296 tcp_v4_fill_cb(skb, iph, th);
2357 th = (const struct tcphdr *)skb->data;
2359 tcp_v4_fill_cb(skb, iph, th);
2392 tcp_v4_fill_cb(skb, iph, th);
2424 tcp_v4_fill_cb(skb, iph, th);
2431 tw_status = tcp_timewait_state_process(inet_twsk(sk), skb, th, &isn,
2435 struct sock *sk2 = inet_lookup_listener(net, skb, __tcp_hdrlen(th),
2436 iph->saddr, th->source,
2437 iph->daddr, th->dest,
2881 seq_printf(f, "%4d: %08X:%04X %08X:%04X"
2924 timer_active = 4;
2944 seq_printf(f, "%4d: %08X:%04X %08X:%04X %02X %08X:%08X %02X:%08lX "
2977 seq_printf(f, "%4d: %08X:%04X %08X:%04X"
3624 /* Default TSQ limit of 4 MB */
3625 net->ipv4.sysctl_tcp_limit_output_bytes = 4 << 20;
3669 net->ipv4.sysctl_tcp_syn_linear_timeouts = 4;