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()
660 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_reset() local
662 struct tcphdr th; in tcp_v4_send_reset() member
680 if (th->rst) in tcp_v4_send_reset()
691 rep.th.dest = th->source; in tcp_v4_send_reset()
692 rep.th.source = th->dest; in tcp_v4_send_reset()
693 rep.th.doff = sizeof(struct tcphdr) / 4; in tcp_v4_send_reset()
694 rep.th.rst = 1; in tcp_v4_send_reset()
696 if (th->ack) { in tcp_v4_send_reset()
697 rep.th.seq = th->ack_seq; in tcp_v4_send_reset()
699 rep.th.ack = 1; in tcp_v4_send_reset()
700 rep.th.ack_seq = htonl(ntohl(th->seq) + th->syn + th->fin + in tcp_v4_send_reset()
701 skb->len - (th->doff << 2)); in tcp_v4_send_reset()
706 arg.iov[0].iov_len = sizeof(rep.th); in tcp_v4_send_reset()
711 hash_location = tcp_parse_md5sig_option(th); in tcp_v4_send_reset()
737 th->source, ip_hdr(skb)->daddr, in tcp_v4_send_reset()
738 ntohs(th->source), dif, sdif); in tcp_v4_send_reset()
766 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_reset()
770 ip_hdr(skb)->daddr, &rep.th); in tcp_v4_send_reset()
830 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_ack() local
832 struct tcphdr th; in tcp_v4_send_ack() member
844 memset(&rep.th, 0, sizeof(struct tcphdr)); in tcp_v4_send_ack()
848 arg.iov[0].iov_len = sizeof(rep.th); in tcp_v4_send_ack()
859 rep.th.dest = th->source; in tcp_v4_send_ack()
860 rep.th.source = th->dest; in tcp_v4_send_ack()
861 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_ack()
862 rep.th.seq = htonl(seq); in tcp_v4_send_ack()
863 rep.th.ack_seq = htonl(ack); in tcp_v4_send_ack()
864 rep.th.ack = 1; in tcp_v4_send_ack()
865 rep.th.window = htons(win); in tcp_v4_send_ack()
876 rep.th.doff = arg.iov[0].iov_len/4; in tcp_v4_send_ack()
880 ip_hdr(skb)->daddr, &rep.th); in tcp_v4_send_ack()
1266 const struct tcphdr *th, int nbytes) in tcp_v4_md5_hash_headers() argument
1280 memcpy(_th, th, sizeof(*th)); in tcp_v4_md5_hash_headers()
1283 sg_init_one(&sg, bp, sizeof(*bp) + sizeof(*th)); in tcp_v4_md5_hash_headers()
1285 sizeof(*bp) + sizeof(*th)); in tcp_v4_md5_hash_headers()
1290 __be32 daddr, __be32 saddr, const struct tcphdr *th) in tcp_v4_md5_hash_hdr() argument
1302 if (tcp_v4_md5_hash_headers(hp, daddr, saddr, th, th->doff << 2)) in tcp_v4_md5_hash_hdr()
1326 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_md5_hash_skb() local
1346 if (tcp_v4_md5_hash_headers(hp, daddr, saddr, th, skb->len)) in tcp_v4_md5_hash_skb()
1348 if (tcp_md5_hash_skb_data(hp, skb, th->doff << 2)) in tcp_v4_md5_hash_skb()
1386 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_inbound_md5_hash() local
1398 hash_location = tcp_parse_md5sig_option(th); in tcp_v4_inbound_md5_hash()
1424 &iph->saddr, ntohs(th->source), in tcp_v4_inbound_md5_hash()
1425 &iph->daddr, ntohs(th->dest), in tcp_v4_inbound_md5_hash()
1624 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_cookie_check() local
1626 if (!th->syn) in tcp_v4_cookie_check()
1633 struct tcphdr *th, u32 *cookie) in tcp_v4_get_syncookie() argument
1638 &tcp_request_sock_ipv4_ops, sk, th); in tcp_v4_get_syncookie()
1640 *cookie = __cookie_v4_init_sequence(iph, th, &mss); in tcp_v4_get_syncookie()
1720 const struct tcphdr *th; in tcp_v4_early_demux() local
1730 th = tcp_hdr(skb); in tcp_v4_early_demux()
1732 if (th->doff < sizeof(struct tcphdr) / 4) in tcp_v4_early_demux()
1736 iph->saddr, th->source, in tcp_v4_early_demux()
1737 iph->daddr, ntohs(th->dest), in tcp_v4_early_demux()
1759 const struct tcphdr *th; in tcp_add_backlog() local
1788 th = (const struct tcphdr *)skb->data; in tcp_add_backlog()
1789 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()
1824 thtail->window = th->window; in tcp_add_backlog()
1835 thtail->fin |= th->fin; in tcp_add_backlog()
1877 struct tcphdr *th = (struct tcphdr *)skb->data; in tcp_filter() local
1879 return sk_filter_trim_cap(sk, skb, th->doff * 4); in tcp_filter()
1890 const struct tcphdr *th) in tcp_v4_fill_cb() argument
1899 TCP_SKB_CB(skb)->seq = ntohl(th->seq); in tcp_v4_fill_cb()
1900 TCP_SKB_CB(skb)->end_seq = (TCP_SKB_CB(skb)->seq + th->syn + th->fin + in tcp_v4_fill_cb()
1901 skb->len - th->doff * 4); in tcp_v4_fill_cb()
1902 TCP_SKB_CB(skb)->ack_seq = ntohl(th->ack_seq); in tcp_v4_fill_cb()
1903 TCP_SKB_CB(skb)->tcp_flags = tcp_flag_byte(th); in tcp_v4_fill_cb()
1922 const struct tcphdr *th; in tcp_v4_rcv() local
1936 th = (const struct tcphdr *)skb->data; in tcp_v4_rcv()
1938 if (unlikely(th->doff < sizeof(struct tcphdr) / 4)) in tcp_v4_rcv()
1940 if (!pskb_may_pull(skb, th->doff * 4)) in tcp_v4_rcv()
1945 * provided case of th->doff==0 is eliminated. in tcp_v4_rcv()
1951 th = (const struct tcphdr *)skb->data; in tcp_v4_rcv()
1954 sk = __inet_lookup_skb(&tcp_hashinfo, skb, __tcp_hdrlen(th), th->source, in tcp_v4_rcv()
1955 th->dest, sdif, &refcounted); in tcp_v4_rcv()
1989 th = (const struct tcphdr *)skb->data; in tcp_v4_rcv()
1991 tcp_v4_fill_cb(skb, iph, th); in tcp_v4_rcv()
2034 th = (const struct tcphdr *)skb->data; in tcp_v4_rcv()
2036 tcp_v4_fill_cb(skb, iph, th); in tcp_v4_rcv()
2073 tcp_v4_fill_cb(skb, iph, th); in tcp_v4_rcv()
2101 tcp_v4_fill_cb(skb, iph, th); in tcp_v4_rcv()
2107 switch (tcp_timewait_state_process(inet_twsk(sk), skb, th)) { in tcp_v4_rcv()
2111 __tcp_hdrlen(th), in tcp_v4_rcv()
2112 iph->saddr, th->source, in tcp_v4_rcv()
2113 iph->daddr, th->dest, in tcp_v4_rcv()
2526 seq_printf(f, "%4d: %08X:%04X %08X:%04X" in get_openreq4()
2567 timer_active = 4; in get_tcp4_sock()
2587 seq_printf(f, "%4d: %08X:%04X %08X:%04X %02X %08X:%08X %02X:%08lX " in get_tcp4_sock()
2620 seq_printf(f, "%4d: %08X:%04X %08X:%04X" in get_timewait4_sock()