Lines Matching refs:th
98 const struct tcphdr *th, __u16 *mssp) in __cookie_v6_init_sequence() argument
109 return secure_tcp_syn_cookie(&iph->saddr, &iph->daddr, th->source, in __cookie_v6_init_sequence()
110 th->dest, ntohl(th->seq), mssind); in __cookie_v6_init_sequence()
117 const struct tcphdr *th = tcp_hdr(skb); in cookie_v6_init_sequence() local
119 return __cookie_v6_init_sequence(iph, th, mssp); in cookie_v6_init_sequence()
122 int __cookie_v6_check(const struct ipv6hdr *iph, const struct tcphdr *th, in __cookie_v6_check() argument
125 __u32 seq = ntohl(th->seq) - 1; in __cookie_v6_check()
127 th->source, th->dest, seq); in __cookie_v6_check()
140 const struct tcphdr *th = tcp_hdr(skb); in cookie_v6_check() local
141 __u32 cookie = ntohl(th->ack_seq) - 1; in cookie_v6_check()
149 if (!sock_net(sk)->ipv4.sysctl_tcp_syncookies || !th->ack || th->rst) in cookie_v6_check()
155 mss = __cookie_v6_check(ipv6_hdr(skb), th, cookie); in cookie_v6_check()
190 ireq->ir_rmt_port = th->source; in cookie_v6_check()
191 ireq->ir_num = ntohs(th->dest); in cookie_v6_check()
216 treq->rcv_isn = ntohl(th->seq) - 1; in cookie_v6_check()