Lines Matching +full:4 +full:th
88 __be32 daddr, __be32 saddr, const struct tcphdr *th);
468 struct tcphdr *th = (struct tcphdr *)(skb->data + (iph->ihl << 2)); in tcp_v4_err() local
480 th->dest, iph->saddr, ntohs(th->source), in tcp_v4_err()
490 seq = ntohl(th->seq); in tcp_v4_err()
585 ip_icmp_error(sk, skb, err, th->dest, info, (u8 *)th); in tcp_v4_err()
631 struct tcphdr *th = tcp_hdr(skb); in __tcp_v4_send_check() local
633 th->check = ~tcp_v4_check(skb->len, saddr, daddr, 0); in __tcp_v4_send_check()
662 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_reset() local
664 struct tcphdr th; in tcp_v4_send_reset() member
682 if (th->rst) in tcp_v4_send_reset()
693 rep.th.dest = th->source; in tcp_v4_send_reset()
694 rep.th.source = th->dest; in tcp_v4_send_reset()
695 rep.th.doff = sizeof(struct tcphdr) / 4; in tcp_v4_send_reset()
696 rep.th.rst = 1; in tcp_v4_send_reset()
698 if (th->ack) { in tcp_v4_send_reset()
699 rep.th.seq = th->ack_seq; in tcp_v4_send_reset()
701 rep.th.ack = 1; in tcp_v4_send_reset()
702 rep.th.ack_seq = htonl(ntohl(th->seq) + th->syn + th->fin + in tcp_v4_send_reset()
703 skb->len - (th->doff << 2)); in tcp_v4_send_reset()
708 arg.iov[0].iov_len = sizeof(rep.th); in tcp_v4_send_reset()
713 hash_location = tcp_parse_md5sig_option(th); in tcp_v4_send_reset()
739 th->source, ip_hdr(skb)->daddr, in tcp_v4_send_reset()
740 ntohs(th->source), dif, sdif); in tcp_v4_send_reset()
768 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_reset()
772 ip_hdr(skb)->daddr, &rep.th); in tcp_v4_send_reset()
832 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_ack() local
834 struct tcphdr th; in tcp_v4_send_ack() member
846 memset(&rep.th, 0, sizeof(struct tcphdr)); in tcp_v4_send_ack()
850 arg.iov[0].iov_len = sizeof(rep.th); in tcp_v4_send_ack()
861 rep.th.dest = th->source; in tcp_v4_send_ack()
862 rep.th.source = th->dest; in tcp_v4_send_ack()
863 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_ack()
864 rep.th.seq = htonl(seq); in tcp_v4_send_ack()
865 rep.th.ack_seq = htonl(ack); in tcp_v4_send_ack()
866 rep.th.ack = 1; in tcp_v4_send_ack()
867 rep.th.window = htons(win); in tcp_v4_send_ack()
878 rep.th.doff = arg.iov[0].iov_len/4; in tcp_v4_send_ack()
882 ip_hdr(skb)->daddr, &rep.th); in tcp_v4_send_ack()
1281 const struct tcphdr *th, int nbytes) in tcp_v4_md5_hash_headers() argument
1295 memcpy(_th, th, sizeof(*th)); in tcp_v4_md5_hash_headers()
1298 sg_init_one(&sg, bp, sizeof(*bp) + sizeof(*th)); in tcp_v4_md5_hash_headers()
1300 sizeof(*bp) + sizeof(*th)); in tcp_v4_md5_hash_headers()
1305 __be32 daddr, __be32 saddr, const struct tcphdr *th) in tcp_v4_md5_hash_hdr() argument
1317 if (tcp_v4_md5_hash_headers(hp, daddr, saddr, th, th->doff << 2)) in tcp_v4_md5_hash_hdr()
1341 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_md5_hash_skb() local
1361 if (tcp_v4_md5_hash_headers(hp, daddr, saddr, th, skb->len)) in tcp_v4_md5_hash_skb()
1363 if (tcp_md5_hash_skb_data(hp, skb, th->doff << 2)) in tcp_v4_md5_hash_skb()
1401 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_inbound_md5_hash() local
1413 hash_location = tcp_parse_md5sig_option(th); in tcp_v4_inbound_md5_hash()
1439 &iph->saddr, ntohs(th->source), in tcp_v4_inbound_md5_hash()
1440 &iph->daddr, ntohs(th->dest), in tcp_v4_inbound_md5_hash()
1639 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_cookie_check() local
1641 if (!th->syn) in tcp_v4_cookie_check()
1648 struct tcphdr *th, u32 *cookie) in tcp_v4_get_syncookie() argument
1653 &tcp_request_sock_ipv4_ops, sk, th); in tcp_v4_get_syncookie()
1655 *cookie = __cookie_v4_init_sequence(iph, th, &mss); in tcp_v4_get_syncookie()
1738 const struct tcphdr *th; in tcp_v4_early_demux() local
1748 th = tcp_hdr(skb); in tcp_v4_early_demux()
1750 if (th->doff < sizeof(struct tcphdr) / 4) in tcp_v4_early_demux()
1754 iph->saddr, th->source, in tcp_v4_early_demux()
1755 iph->daddr, ntohs(th->dest), in tcp_v4_early_demux()
1777 const struct tcphdr *th; in tcp_add_backlog() local
1807 th = (const struct tcphdr *)skb->data; in tcp_add_backlog()
1808 hdrlen = th->doff * 4; in tcp_add_backlog()
1826 thtail->doff != th->doff || in tcp_add_backlog()
1827 memcmp(thtail + 1, th + 1, hdrlen - sizeof(*th))) in tcp_add_backlog()
1845 thtail->window = th->window; in tcp_add_backlog()
1856 thtail->fin |= th->fin; in tcp_add_backlog()
1897 struct tcphdr *th = (struct tcphdr *)skb->data; in tcp_filter() local
1899 return sk_filter_trim_cap(sk, skb, th->doff * 4); in tcp_filter()
1910 const struct tcphdr *th) in tcp_v4_fill_cb() argument
1919 TCP_SKB_CB(skb)->seq = ntohl(th->seq); in tcp_v4_fill_cb()
1920 TCP_SKB_CB(skb)->end_seq = (TCP_SKB_CB(skb)->seq + th->syn + th->fin + in tcp_v4_fill_cb()
1921 skb->len - th->doff * 4); in tcp_v4_fill_cb()
1922 TCP_SKB_CB(skb)->ack_seq = ntohl(th->ack_seq); in tcp_v4_fill_cb()
1923 TCP_SKB_CB(skb)->tcp_flags = tcp_flag_byte(th); in tcp_v4_fill_cb()
1942 const struct tcphdr *th; in tcp_v4_rcv() local
1956 th = (const struct tcphdr *)skb->data; in tcp_v4_rcv()
1958 if (unlikely(th->doff < sizeof(struct tcphdr) / 4)) in tcp_v4_rcv()
1960 if (!pskb_may_pull(skb, th->doff * 4)) in tcp_v4_rcv()
1965 * provided case of th->doff==0 is eliminated. in tcp_v4_rcv()
1971 th = (const struct tcphdr *)skb->data; in tcp_v4_rcv()
1974 sk = __inet_lookup_skb(&tcp_hashinfo, skb, __tcp_hdrlen(th), th->source, in tcp_v4_rcv()
1975 th->dest, sdif, &refcounted); in tcp_v4_rcv()
2010 th = (const struct tcphdr *)skb->data; in tcp_v4_rcv()
2012 tcp_v4_fill_cb(skb, iph, th); in tcp_v4_rcv()
2056 th = (const struct tcphdr *)skb->data; in tcp_v4_rcv()
2058 tcp_v4_fill_cb(skb, iph, th); in tcp_v4_rcv()
2095 tcp_v4_fill_cb(skb, iph, th); in tcp_v4_rcv()
2123 tcp_v4_fill_cb(skb, iph, th); in tcp_v4_rcv()
2129 switch (tcp_timewait_state_process(inet_twsk(sk), skb, th)) { in tcp_v4_rcv()
2133 __tcp_hdrlen(th), in tcp_v4_rcv()
2134 iph->saddr, th->source, in tcp_v4_rcv()
2135 iph->daddr, th->dest, in tcp_v4_rcv()
2549 seq_printf(f, "%4d: %08X:%04X %08X:%04X" in get_openreq4()
2590 timer_active = 4; in get_tcp4_sock()
2610 seq_printf(f, "%4d: %08X:%04X %08X:%04X %02X %08X:%08X %02X:%08lX " in get_tcp4_sock()
2643 seq_printf(f, "%4d: %08X:%04X %08X:%04X" in get_timewait4_sock()