Lines Matching refs:aoh

724 			 const struct tcp_ao_hdr *aoh, int l3index, u32 seq,  in tcp_ao_prepare_reset()  argument
771 -1, aoh->rnext_keyid); in tcp_ao_prepare_reset()
796 *key = tcp_ao_established_key(ao_info, aoh->rnext_keyid, -1); in tcp_ao_prepare_reset()
869 const struct tcp_ao_hdr *aoh; in tcp_ao_syncookie() local
885 if (tcp_parse_auth_options(th, NULL, &aoh) || !aoh) in tcp_ao_syncookie()
889 key = tcp_ao_inbound_lookup(family, sk, skb, -1, aoh->keyid, l3index); in tcp_ao_syncookie()
894 treq->ao_rcv_next = aoh->keyid; in tcp_ao_syncookie()
895 treq->ao_keyid = aoh->rnext_keyid; in tcp_ao_syncookie()
902 const struct tcp_ao_hdr *aoh, struct tcp_ao_key *key, in tcp_ao_verify_hash() argument
906 u8 maclen = tcp_ao_hdr_maclen(aoh); in tcp_ao_verify_hash()
913 trace_tcp_ao_wrong_maclen(sk, skb, aoh->keyid, in tcp_ao_verify_hash()
914 aoh->rnext_keyid, maclen); in tcp_ao_verify_hash()
929 trace_tcp_ao_mismatch(sk, skb, aoh->keyid, in tcp_ao_verify_hash()
930 aoh->rnext_keyid, maclen); in tcp_ao_verify_hash()
944 int l3index, const struct tcp_ao_hdr *aoh) in tcp_inbound_ao_hash() argument
947 u8 maclen = tcp_ao_hdr_maclen(aoh); in tcp_inbound_ao_hash()
948 u8 *phash = (u8 *)(aoh + 1); /* hash goes just after the header */ in tcp_inbound_ao_hash()
960 trace_tcp_ao_key_not_found(sk, skb, aoh->keyid, in tcp_inbound_ao_hash()
961 aoh->rnext_keyid, maclen); in tcp_inbound_ao_hash()
981 if (key->rcvid != aoh->keyid) { in tcp_inbound_ao_hash()
982 key = tcp_ao_established_key(info, -1, aoh->keyid); in tcp_inbound_ao_hash()
995 err = tcp_ao_verify_hash(sk, skb, family, info, aoh, key, in tcp_inbound_ao_hash()
1001 if (unlikely(aoh->rnext_keyid != current_key->sndid)) { in tcp_inbound_ao_hash()
1003 aoh->rnext_keyid, in tcp_inbound_ao_hash()
1004 tcp_ao_hdr_maclen(aoh)); in tcp_inbound_ao_hash()
1006 key = tcp_ao_established_key(info, aoh->rnext_keyid, -1); in tcp_inbound_ao_hash()
1023 key = tcp_ao_inbound_lookup(family, sk, skb, -1, aoh->keyid, l3index); in tcp_inbound_ao_hash()
1062 ret = tcp_ao_verify_hash(sk, skb, family, info, aoh, key, in tcp_inbound_ao_hash()
1070 trace_tcp_ao_key_not_found(sk, skb, aoh->keyid, in tcp_inbound_ao_hash()
1071 aoh->rnext_keyid, maclen); in tcp_inbound_ao_hash()