Lines Matching +full:4 +full:th
88 __be32 daddr, __be32 saddr, const struct tcphdr *th);
476 struct tcphdr *th = (struct tcphdr *)(skb->data + (iph->ihl << 2)); in tcp_v4_err() local
488 iph->daddr, th->dest, iph->saddr, in tcp_v4_err()
489 ntohs(th->source), inet_iif(skb), 0); in tcp_v4_err()
498 seq = ntohl(th->seq); in tcp_v4_err()
596 ip_icmp_error(sk, skb, err, th->dest, info, (u8 *)th); in tcp_v4_err()
642 struct tcphdr *th = tcp_hdr(skb); in __tcp_v4_send_check() local
644 th->check = ~tcp_v4_check(skb->len, saddr, daddr, 0); in __tcp_v4_send_check()
679 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_reset() local
681 struct tcphdr th; in tcp_v4_send_reset() member
697 if (th->rst) in tcp_v4_send_reset()
708 rep.th.dest = th->source; in tcp_v4_send_reset()
709 rep.th.source = th->dest; in tcp_v4_send_reset()
710 rep.th.doff = sizeof(struct tcphdr) / 4; in tcp_v4_send_reset()
711 rep.th.rst = 1; in tcp_v4_send_reset()
713 if (th->ack) { in tcp_v4_send_reset()
714 rep.th.seq = th->ack_seq; in tcp_v4_send_reset()
716 rep.th.ack = 1; in tcp_v4_send_reset()
717 rep.th.ack_seq = htonl(ntohl(th->seq) + th->syn + th->fin + in tcp_v4_send_reset()
718 skb->len - (th->doff << 2)); in tcp_v4_send_reset()
723 arg.iov[0].iov_len = sizeof(rep.th); in tcp_v4_send_reset()
728 hash_location = tcp_parse_md5sig_option(th); in tcp_v4_send_reset()
754 th->source, ip_hdr(skb)->daddr, in tcp_v4_send_reset()
755 ntohs(th->source), dif, sdif); in tcp_v4_send_reset()
783 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_reset()
787 ip_hdr(skb)->daddr, &rep.th); in tcp_v4_send_reset()
797 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_reset()
862 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_ack() local
864 struct tcphdr th; in tcp_v4_send_ack() member
876 memset(&rep.th, 0, sizeof(struct tcphdr)); in tcp_v4_send_ack()
880 arg.iov[0].iov_len = sizeof(rep.th); in tcp_v4_send_ack()
891 rep.th.dest = th->source; in tcp_v4_send_ack()
892 rep.th.source = th->dest; in tcp_v4_send_ack()
893 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_ack()
894 rep.th.seq = htonl(seq); in tcp_v4_send_ack()
895 rep.th.ack_seq = htonl(ack); in tcp_v4_send_ack()
896 rep.th.ack = 1; in tcp_v4_send_ack()
897 rep.th.window = htons(win); in tcp_v4_send_ack()
908 rep.th.doff = arg.iov[0].iov_len/4; in tcp_v4_send_ack()
912 ip_hdr(skb)->daddr, &rep.th); in tcp_v4_send_ack()
1319 const struct tcphdr *th, int nbytes) in tcp_v4_md5_hash_headers() argument
1333 memcpy(_th, th, sizeof(*th)); in tcp_v4_md5_hash_headers()
1336 sg_init_one(&sg, bp, sizeof(*bp) + sizeof(*th)); in tcp_v4_md5_hash_headers()
1338 sizeof(*bp) + sizeof(*th)); in tcp_v4_md5_hash_headers()
1343 __be32 daddr, __be32 saddr, const struct tcphdr *th) in tcp_v4_md5_hash_hdr() argument
1355 if (tcp_v4_md5_hash_headers(hp, daddr, saddr, th, th->doff << 2)) in tcp_v4_md5_hash_hdr()
1379 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_md5_hash_skb() local
1399 if (tcp_v4_md5_hash_headers(hp, daddr, saddr, th, skb->len)) in tcp_v4_md5_hash_skb()
1401 if (tcp_md5_hash_skb_data(hp, skb, th->doff << 2)) in tcp_v4_md5_hash_skb()
1616 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_cookie_check() local
1618 if (!th->syn) in tcp_v4_cookie_check()
1625 struct tcphdr *th, u32 *cookie) in tcp_v4_get_syncookie() argument
1630 &tcp_request_sock_ipv4_ops, sk, th); in tcp_v4_get_syncookie()
1632 *cookie = __cookie_v4_init_sequence(iph, th, &mss); in tcp_v4_get_syncookie()
1723 const struct tcphdr *th; in tcp_v4_early_demux() local
1733 th = tcp_hdr(skb); in tcp_v4_early_demux()
1735 if (th->doff < sizeof(struct tcphdr) / 4) in tcp_v4_early_demux()
1739 iph->saddr, th->source, in tcp_v4_early_demux()
1740 iph->daddr, ntohs(th->dest), in tcp_v4_early_demux()
1763 const struct tcphdr *th; in tcp_add_backlog() local
1795 th = (const struct tcphdr *)skb->data; in tcp_add_backlog()
1796 hdrlen = th->doff * 4; in tcp_add_backlog()
1814 thtail->doff != th->doff || in tcp_add_backlog()
1815 memcmp(thtail + 1, th + 1, hdrlen - sizeof(*th))) in tcp_add_backlog()
1833 thtail->window = th->window; in tcp_add_backlog()
1844 thtail->fin |= th->fin; in tcp_add_backlog()
1886 struct tcphdr *th = (struct tcphdr *)skb->data; in tcp_filter() local
1888 return sk_filter_trim_cap(sk, skb, th->doff * 4); in tcp_filter()
1899 const struct tcphdr *th) in tcp_v4_fill_cb() argument
1908 TCP_SKB_CB(skb)->seq = ntohl(th->seq); in tcp_v4_fill_cb()
1909 TCP_SKB_CB(skb)->end_seq = (TCP_SKB_CB(skb)->seq + th->syn + th->fin + in tcp_v4_fill_cb()
1910 skb->len - th->doff * 4); in tcp_v4_fill_cb()
1911 TCP_SKB_CB(skb)->ack_seq = ntohl(th->ack_seq); in tcp_v4_fill_cb()
1912 TCP_SKB_CB(skb)->tcp_flags = tcp_flag_byte(th); in tcp_v4_fill_cb()
1931 const struct tcphdr *th; in tcp_v4_rcv() local
1946 th = (const struct tcphdr *)skb->data; in tcp_v4_rcv()
1948 if (unlikely(th->doff < sizeof(struct tcphdr) / 4)) { in tcp_v4_rcv()
1952 if (!pskb_may_pull(skb, th->doff * 4)) in tcp_v4_rcv()
1957 * provided case of th->doff==0 is eliminated. in tcp_v4_rcv()
1963 th = (const struct tcphdr *)skb->data; in tcp_v4_rcv()
1967 skb, __tcp_hdrlen(th), th->source, in tcp_v4_rcv()
1968 th->dest, sdif, &refcounted); in tcp_v4_rcv()
2016 th = (const struct tcphdr *)skb->data; in tcp_v4_rcv()
2018 tcp_v4_fill_cb(skb, iph, th); in tcp_v4_rcv()
2074 th = (const struct tcphdr *)skb->data; in tcp_v4_rcv()
2076 tcp_v4_fill_cb(skb, iph, th); in tcp_v4_rcv()
2109 tcp_v4_fill_cb(skb, iph, th); in tcp_v4_rcv()
2141 tcp_v4_fill_cb(skb, iph, th); in tcp_v4_rcv()
2147 switch (tcp_timewait_state_process(inet_twsk(sk), skb, th)) { in tcp_v4_rcv()
2151 skb, __tcp_hdrlen(th), in tcp_v4_rcv()
2152 iph->saddr, th->source, in tcp_v4_rcv()
2153 iph->daddr, th->dest, in tcp_v4_rcv()
2572 seq_printf(f, "%4d: %08X:%04X %08X:%04X" in get_openreq4()
2613 timer_active = 4; in get_tcp4_sock()
2633 seq_printf(f, "%4d: %08X:%04X %08X:%04X %02X %08X:%08X %02X:%08lX " in get_tcp4_sock()
2666 seq_printf(f, "%4d: %08X:%04X %08X:%04X" in get_timewait4_sock()