Lines Matching defs:th

418 	const struct tcphdr *th = tcp_hdr(skb);
421 th->source, th->dest, sisn, disn);
461 const struct tcphdr *th = tcp_hdr(skb);
464 if (!th->check) {
526 const struct tcphdr *th,
536 len = sizeof(*th) + sizeof(struct tcp_ao_hdr) + hash_len;
537 memcpy(hdr, th, sizeof(*th));
538 memcpy(hdr + sizeof(*th),
539 (u8 *)th + hash_offset - sizeof(struct tcp_ao_hdr),
541 memset(hdr + sizeof(*th) + sizeof(struct tcp_ao_hdr),
545 len = th->doff << 2;
546 memcpy(hdr, th, len);
563 const struct tcphdr *th, u32 sne)
566 int hash_offset = ao_hash - (char *)th;
587 saddr->a4.s_addr, th->doff * 4))
592 &saddr->a6, th->doff * 4))
599 if (tcp_ao_hash_header(&hp, th,
625 const struct tcphdr *th = tcp_hdr(skb);
648 if (tcp_ao_hash_header(&hp, th,
652 if (tcp_sigpool_hash_skb_data(&hp, skb, th->doff << 2))
728 const struct tcphdr *th = tcp_hdr(skb);
754 sisn = th->seq;
809 struct tcp_ao_key *key, struct tcphdr *th,
838 ntohl(th->seq));
840 hash_location - (u8 *)th, sne);
868 const struct tcphdr *th = tcp_hdr(skb);
885 if (tcp_parse_auth_options(th, NULL, &aoh) || !aoh)
905 const struct tcphdr *th = tcp_hdr(skb);
924 (phash - (u8 *)th), sne);
946 const struct tcphdr *th = tcp_hdr(skb);
965 if (unlikely(th->syn)) {
966 sisn = th->seq;
988 if (unlikely(th->syn && !th->ack))
992 ntohl(th->seq));
1027 if (th->syn && !th->ack)
1034 ntohl(th->seq));
1037 } else if (unlikely(th->ack && !th->syn)) {
1039 sisn = htonl(ntohl(th->seq) - 1);
1040 disn = htonl(ntohl(th->ack_seq) - 1);
1042 ntohl(th->seq));
1043 } else if (unlikely(!th->syn)) {
1049 if (th->syn || th->rst)
1050 sisn = th->seq;
1566 /* Full TCP header (th->doff << 2) should fit into scratch area,