Lines Matching +full:4 +full:th

88 			       __be32 daddr, __be32 saddr, const struct tcphdr *th);
466 struct tcphdr *th = (struct tcphdr *)(skb->data + (iph->ihl << 2)); in tcp_v4_err() local
478 th->dest, iph->saddr, ntohs(th->source), in tcp_v4_err()
488 seq = ntohl(th->seq); in tcp_v4_err()
583 ip_icmp_error(sk, skb, err, th->dest, info, (u8 *)th); in tcp_v4_err()
629 struct tcphdr *th = tcp_hdr(skb); in __tcp_v4_send_check() local
631 th->check = ~tcp_v4_check(skb->len, saddr, daddr, 0); in __tcp_v4_send_check()
666 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_reset() local
668 struct tcphdr th; in tcp_v4_send_reset() member
684 if (th->rst) in tcp_v4_send_reset()
695 rep.th.dest = th->source; in tcp_v4_send_reset()
696 rep.th.source = th->dest; in tcp_v4_send_reset()
697 rep.th.doff = sizeof(struct tcphdr) / 4; in tcp_v4_send_reset()
698 rep.th.rst = 1; in tcp_v4_send_reset()
700 if (th->ack) { in tcp_v4_send_reset()
701 rep.th.seq = th->ack_seq; in tcp_v4_send_reset()
703 rep.th.ack = 1; in tcp_v4_send_reset()
704 rep.th.ack_seq = htonl(ntohl(th->seq) + th->syn + th->fin + in tcp_v4_send_reset()
705 skb->len - (th->doff << 2)); in tcp_v4_send_reset()
710 arg.iov[0].iov_len = sizeof(rep.th); in tcp_v4_send_reset()
715 hash_location = tcp_parse_md5sig_option(th); in tcp_v4_send_reset()
741 th->source, ip_hdr(skb)->daddr, in tcp_v4_send_reset()
742 ntohs(th->source), dif, sdif); in tcp_v4_send_reset()
770 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_reset()
774 ip_hdr(skb)->daddr, &rep.th); in tcp_v4_send_reset()
784 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_reset()
845 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_ack() local
847 struct tcphdr th; in tcp_v4_send_ack() member
859 memset(&rep.th, 0, sizeof(struct tcphdr)); in tcp_v4_send_ack()
863 arg.iov[0].iov_len = sizeof(rep.th); in tcp_v4_send_ack()
874 rep.th.dest = th->source; in tcp_v4_send_ack()
875 rep.th.source = th->dest; in tcp_v4_send_ack()
876 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_ack()
877 rep.th.seq = htonl(seq); in tcp_v4_send_ack()
878 rep.th.ack_seq = htonl(ack); in tcp_v4_send_ack()
879 rep.th.ack = 1; in tcp_v4_send_ack()
880 rep.th.window = htons(win); in tcp_v4_send_ack()
891 rep.th.doff = arg.iov[0].iov_len/4; in tcp_v4_send_ack()
895 ip_hdr(skb)->daddr, &rep.th); in tcp_v4_send_ack()
1300 const struct tcphdr *th, int nbytes) in tcp_v4_md5_hash_headers() argument
1314 memcpy(_th, th, sizeof(*th)); in tcp_v4_md5_hash_headers()
1317 sg_init_one(&sg, bp, sizeof(*bp) + sizeof(*th)); in tcp_v4_md5_hash_headers()
1319 sizeof(*bp) + sizeof(*th)); in tcp_v4_md5_hash_headers()
1324 __be32 daddr, __be32 saddr, const struct tcphdr *th) in tcp_v4_md5_hash_hdr() argument
1336 if (tcp_v4_md5_hash_headers(hp, daddr, saddr, th, th->doff << 2)) in tcp_v4_md5_hash_hdr()
1360 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_md5_hash_skb() local
1380 if (tcp_v4_md5_hash_headers(hp, daddr, saddr, th, skb->len)) in tcp_v4_md5_hash_skb()
1382 if (tcp_md5_hash_skb_data(hp, skb, th->doff << 2)) in tcp_v4_md5_hash_skb()
1420 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_inbound_md5_hash() local
1432 hash_location = tcp_parse_md5sig_option(th); in tcp_v4_inbound_md5_hash()
1458 &iph->saddr, ntohs(th->source), in tcp_v4_inbound_md5_hash()
1459 &iph->daddr, ntohs(th->dest), in tcp_v4_inbound_md5_hash()
1663 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_cookie_check() local
1665 if (!th->syn) in tcp_v4_cookie_check()
1672 struct tcphdr *th, u32 *cookie) in tcp_v4_get_syncookie() argument
1677 &tcp_request_sock_ipv4_ops, sk, th); in tcp_v4_get_syncookie()
1679 *cookie = __cookie_v4_init_sequence(iph, th, &mss); in tcp_v4_get_syncookie()
1763 const struct tcphdr *th; in tcp_v4_early_demux() local
1773 th = tcp_hdr(skb); in tcp_v4_early_demux()
1775 if (th->doff < sizeof(struct tcphdr) / 4) in tcp_v4_early_demux()
1779 iph->saddr, th->source, in tcp_v4_early_demux()
1780 iph->daddr, ntohs(th->dest), in tcp_v4_early_demux()
1803 const struct tcphdr *th; in tcp_add_backlog() local
1834 th = (const struct tcphdr *)skb->data; in tcp_add_backlog()
1835 hdrlen = th->doff * 4; in tcp_add_backlog()
1853 thtail->doff != th->doff || in tcp_add_backlog()
1854 memcmp(thtail + 1, th + 1, hdrlen - sizeof(*th))) in tcp_add_backlog()
1872 thtail->window = th->window; in tcp_add_backlog()
1883 thtail->fin |= th->fin; in tcp_add_backlog()
1922 struct tcphdr *th = (struct tcphdr *)skb->data; in tcp_filter() local
1924 return sk_filter_trim_cap(sk, skb, th->doff * 4); in tcp_filter()
1935 const struct tcphdr *th) in tcp_v4_fill_cb() argument
1944 TCP_SKB_CB(skb)->seq = ntohl(th->seq); in tcp_v4_fill_cb()
1945 TCP_SKB_CB(skb)->end_seq = (TCP_SKB_CB(skb)->seq + th->syn + th->fin + in tcp_v4_fill_cb()
1946 skb->len - th->doff * 4); in tcp_v4_fill_cb()
1947 TCP_SKB_CB(skb)->ack_seq = ntohl(th->ack_seq); in tcp_v4_fill_cb()
1948 TCP_SKB_CB(skb)->tcp_flags = tcp_flag_byte(th); in tcp_v4_fill_cb()
1967 const struct tcphdr *th; in tcp_v4_rcv() local
1981 th = (const struct tcphdr *)skb->data; in tcp_v4_rcv()
1983 if (unlikely(th->doff < sizeof(struct tcphdr) / 4)) in tcp_v4_rcv()
1985 if (!pskb_may_pull(skb, th->doff * 4)) in tcp_v4_rcv()
1990 * provided case of th->doff==0 is eliminated. in tcp_v4_rcv()
1996 th = (const struct tcphdr *)skb->data; in tcp_v4_rcv()
1999 sk = __inet_lookup_skb(&tcp_hashinfo, skb, __tcp_hdrlen(th), th->source, in tcp_v4_rcv()
2000 th->dest, sdif, &refcounted); in tcp_v4_rcv()
2042 th = (const struct tcphdr *)skb->data; in tcp_v4_rcv()
2044 tcp_v4_fill_cb(skb, iph, th); in tcp_v4_rcv()
2087 th = (const struct tcphdr *)skb->data; in tcp_v4_rcv()
2089 tcp_v4_fill_cb(skb, iph, th); in tcp_v4_rcv()
2126 tcp_v4_fill_cb(skb, iph, th); in tcp_v4_rcv()
2155 tcp_v4_fill_cb(skb, iph, th); in tcp_v4_rcv()
2161 switch (tcp_timewait_state_process(inet_twsk(sk), skb, th)) { in tcp_v4_rcv()
2165 __tcp_hdrlen(th), in tcp_v4_rcv()
2166 iph->saddr, th->source, in tcp_v4_rcv()
2167 iph->daddr, th->dest, in tcp_v4_rcv()
2580 seq_printf(f, "%4d: %08X:%04X %08X:%04X" in get_openreq4()
2621 timer_active = 4; in get_tcp4_sock()
2641 seq_printf(f, "%4d: %08X:%04X %08X:%04X %02X %08X:%08X %02X:%08lX " in get_tcp4_sock()
2674 seq_printf(f, "%4d: %08X:%04X %08X:%04X" in get_timewait4_sock()