Lines Matching defs:th

400 	const struct tcphdr *th = tcp_hdr(skb);
403 th->source, th->dest, sisn, disn);
443 const struct tcphdr *th = tcp_hdr(skb);
446 if (!th->check) {
508 const struct tcphdr *th,
518 len = sizeof(*th) + sizeof(struct tcp_ao_hdr) + hash_len;
519 memcpy(hdr, th, sizeof(*th));
520 memcpy(hdr + sizeof(*th),
521 (u8 *)th + hash_offset - sizeof(struct tcp_ao_hdr),
523 memset(hdr + sizeof(*th) + sizeof(struct tcp_ao_hdr),
527 len = th->doff << 2;
528 memcpy(hdr, th, len);
545 const struct tcphdr *th, u32 sne)
548 int hash_offset = ao_hash - (char *)th;
569 saddr->a4.s_addr, th->doff * 4))
574 &saddr->a6, th->doff * 4))
581 if (tcp_ao_hash_header(&hp, th,
607 const struct tcphdr *th = tcp_hdr(skb);
630 if (tcp_ao_hash_header(&hp, th,
634 if (tcp_sigpool_hash_skb_data(&hp, skb, th->doff << 2))
710 const struct tcphdr *th = tcp_hdr(skb);
736 sisn = th->seq;
791 struct tcp_ao_key *key, struct tcphdr *th,
820 ntohl(th->seq));
822 hash_location - (u8 *)th, sne);
850 const struct tcphdr *th = tcp_hdr(skb);
867 if (tcp_parse_auth_options(th, NULL, &aoh) || !aoh)
888 const struct tcphdr *th = tcp_hdr(skb);
907 (phash - (u8 *)th), sne);
929 const struct tcphdr *th = tcp_hdr(skb);
946 if (unlikely(th->syn)) {
947 sisn = th->seq;
968 if (unlikely(th->syn && !th->ack))
972 ntohl(th->seq));
1001 if (th->syn && !th->ack)
1008 ntohl(th->seq));
1011 } else if (unlikely(th->ack && !th->syn)) {
1013 sisn = htonl(ntohl(th->seq) - 1);
1014 disn = htonl(ntohl(th->ack_seq) - 1);
1016 ntohl(th->seq));
1017 } else if (unlikely(!th->syn)) {
1023 if (th->syn || th->rst)
1024 sisn = th->seq;
1538 /* Full TCP header (th->doff << 2) should fit into scratch area,