Lines Matching +full:4 +full:th
88 __be32 daddr, __be32 saddr, const struct tcphdr *th);
470 struct tcphdr *th = (struct tcphdr *)(skb->data + (iph->ihl << 2)); in tcp_v4_err() local
482 th->dest, iph->saddr, ntohs(th->source), in tcp_v4_err()
492 seq = ntohl(th->seq); in tcp_v4_err()
587 ip_icmp_error(sk, skb, err, th->dest, info, (u8 *)th); in tcp_v4_err()
633 struct tcphdr *th = tcp_hdr(skb); in __tcp_v4_send_check() local
635 th->check = ~tcp_v4_check(skb->len, saddr, daddr, 0); in __tcp_v4_send_check()
664 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_reset() local
666 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()
840 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_ack() local
842 struct tcphdr th; in tcp_v4_send_ack() member
854 memset(&rep.th, 0, sizeof(struct tcphdr)); in tcp_v4_send_ack()
858 arg.iov[0].iov_len = sizeof(rep.th); in tcp_v4_send_ack()
869 rep.th.dest = th->source; in tcp_v4_send_ack()
870 rep.th.source = th->dest; in tcp_v4_send_ack()
871 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_ack()
872 rep.th.seq = htonl(seq); in tcp_v4_send_ack()
873 rep.th.ack_seq = htonl(ack); in tcp_v4_send_ack()
874 rep.th.ack = 1; in tcp_v4_send_ack()
875 rep.th.window = htons(win); in tcp_v4_send_ack()
886 rep.th.doff = arg.iov[0].iov_len/4; in tcp_v4_send_ack()
890 ip_hdr(skb)->daddr, &rep.th); in tcp_v4_send_ack()
1290 const struct tcphdr *th, int nbytes) in tcp_v4_md5_hash_headers() argument
1304 memcpy(_th, th, sizeof(*th)); in tcp_v4_md5_hash_headers()
1307 sg_init_one(&sg, bp, sizeof(*bp) + sizeof(*th)); in tcp_v4_md5_hash_headers()
1309 sizeof(*bp) + sizeof(*th)); in tcp_v4_md5_hash_headers()
1314 __be32 daddr, __be32 saddr, const struct tcphdr *th) in tcp_v4_md5_hash_hdr() argument
1326 if (tcp_v4_md5_hash_headers(hp, daddr, saddr, th, th->doff << 2)) in tcp_v4_md5_hash_hdr()
1350 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_md5_hash_skb() local
1370 if (tcp_v4_md5_hash_headers(hp, daddr, saddr, th, skb->len)) in tcp_v4_md5_hash_skb()
1372 if (tcp_md5_hash_skb_data(hp, skb, th->doff << 2)) in tcp_v4_md5_hash_skb()
1410 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_inbound_md5_hash() local
1422 hash_location = tcp_parse_md5sig_option(th); in tcp_v4_inbound_md5_hash()
1448 &iph->saddr, ntohs(th->source), in tcp_v4_inbound_md5_hash()
1449 &iph->daddr, ntohs(th->dest), in tcp_v4_inbound_md5_hash()
1648 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_cookie_check() local
1650 if (!th->syn) in tcp_v4_cookie_check()
1657 struct tcphdr *th, u32 *cookie) in tcp_v4_get_syncookie() argument
1662 &tcp_request_sock_ipv4_ops, sk, th); in tcp_v4_get_syncookie()
1664 *cookie = __cookie_v4_init_sequence(iph, th, &mss); in tcp_v4_get_syncookie()
1747 const struct tcphdr *th; in tcp_v4_early_demux() local
1757 th = tcp_hdr(skb); in tcp_v4_early_demux()
1759 if (th->doff < sizeof(struct tcphdr) / 4) in tcp_v4_early_demux()
1763 iph->saddr, th->source, in tcp_v4_early_demux()
1764 iph->daddr, ntohs(th->dest), in tcp_v4_early_demux()
1786 const struct tcphdr *th; in tcp_add_backlog() local
1816 th = (const struct tcphdr *)skb->data; in tcp_add_backlog()
1817 hdrlen = th->doff * 4; in tcp_add_backlog()
1835 thtail->doff != th->doff || in tcp_add_backlog()
1836 memcmp(thtail + 1, th + 1, hdrlen - sizeof(*th))) in tcp_add_backlog()
1854 thtail->window = th->window; in tcp_add_backlog()
1865 thtail->fin |= th->fin; in tcp_add_backlog()
1906 struct tcphdr *th = (struct tcphdr *)skb->data; in tcp_filter() local
1908 return sk_filter_trim_cap(sk, skb, th->doff * 4); in tcp_filter()
1919 const struct tcphdr *th) in tcp_v4_fill_cb() argument
1928 TCP_SKB_CB(skb)->seq = ntohl(th->seq); in tcp_v4_fill_cb()
1929 TCP_SKB_CB(skb)->end_seq = (TCP_SKB_CB(skb)->seq + th->syn + th->fin + in tcp_v4_fill_cb()
1930 skb->len - th->doff * 4); in tcp_v4_fill_cb()
1931 TCP_SKB_CB(skb)->ack_seq = ntohl(th->ack_seq); in tcp_v4_fill_cb()
1932 TCP_SKB_CB(skb)->tcp_flags = tcp_flag_byte(th); in tcp_v4_fill_cb()
1951 const struct tcphdr *th; in tcp_v4_rcv() local
1965 th = (const struct tcphdr *)skb->data; in tcp_v4_rcv()
1967 if (unlikely(th->doff < sizeof(struct tcphdr) / 4)) in tcp_v4_rcv()
1969 if (!pskb_may_pull(skb, th->doff * 4)) in tcp_v4_rcv()
1974 * provided case of th->doff==0 is eliminated. in tcp_v4_rcv()
1980 th = (const struct tcphdr *)skb->data; in tcp_v4_rcv()
1983 sk = __inet_lookup_skb(&tcp_hashinfo, skb, __tcp_hdrlen(th), th->source, in tcp_v4_rcv()
1984 th->dest, sdif, &refcounted); in tcp_v4_rcv()
2019 th = (const struct tcphdr *)skb->data; in tcp_v4_rcv()
2021 tcp_v4_fill_cb(skb, iph, th); in tcp_v4_rcv()
2065 th = (const struct tcphdr *)skb->data; in tcp_v4_rcv()
2067 tcp_v4_fill_cb(skb, iph, th); in tcp_v4_rcv()
2104 tcp_v4_fill_cb(skb, iph, th); in tcp_v4_rcv()
2132 tcp_v4_fill_cb(skb, iph, th); in tcp_v4_rcv()
2138 switch (tcp_timewait_state_process(inet_twsk(sk), skb, th)) { in tcp_v4_rcv()
2142 __tcp_hdrlen(th), in tcp_v4_rcv()
2143 iph->saddr, th->source, in tcp_v4_rcv()
2144 iph->daddr, th->dest, in tcp_v4_rcv()
2558 seq_printf(f, "%4d: %08X:%04X %08X:%04X" in get_openreq4()
2599 timer_active = 4; in get_tcp4_sock()
2619 seq_printf(f, "%4d: %08X:%04X %08X:%04X %02X %08X:%08X %02X:%08lX " in get_tcp4_sock()
2652 seq_printf(f, "%4d: %08X:%04X %08X:%04X" in get_timewait4_sock()