| /linux/net/ipv4/ |
| H A D | tcp_ao.c | 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(sk, 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() [all …]
|
| H A D | tcp_ipv4.c | 685 const struct tcp_ao_hdr *aoh, in tcp_v4_ao_sign_reset() argument 701 if (tcp_ao_prepare_reset(sk, skb, aoh, l3index, ntohl(reply->seq), in tcp_v4_ao_sign_reset() 707 (aoh->rnext_keyid << 8) | keyid); in tcp_v4_ao_sign_reset() 750 const struct tcp_ao_hdr *aoh; in tcp_v4_send_reset() local 794 if (tcp_parse_auth_options(tcp_hdr(skb), &md5_hash_location, &aoh)) in tcp_v4_send_reset() 797 if (aoh && tcp_v4_ao_sign_reset(sk, skb, aoh, &arg, &rep.th, rep.opt)) in tcp_v4_send_reset() 1058 const struct tcp_ao_hdr *aoh; local 1060 if (tcp_parse_auth_options(tcp_hdr(skb), NULL, &aoh)) { 1065 if (aoh) 1067 aoh->rnext_keyid, -1); [all …]
|
| H A D | tcp.c | 4999 const struct tcp_ao_hdr *aoh; in tcp_inbound_hash() local 5004 if (tcp_parse_auth_options(th, &md5_location, &aoh)) { in tcp_inbound_hash() 5010 if (tcp_rsk_used_ao(req) != !!aoh) { in tcp_inbound_hash() 5013 if (aoh) { in tcp_inbound_hash() 5014 keyid = aoh->keyid; in tcp_inbound_hash() 5015 rnext = aoh->rnext_keyid; in tcp_inbound_hash() 5016 maclen = tcp_ao_hdr_maclen(aoh); in tcp_inbound_hash() 5033 if (likely(!md5_location && !aoh)) { in tcp_inbound_hash() 5051 if (aoh) in tcp_inbound_hash() 5052 return tcp_inbound_ao_hash(sk, skb, family, req, l3index, aoh); in tcp_inbound_hash()
|
| H A D | tcp_input.c | 7659 const struct tcp_ao_hdr *aoh; in tcp_conn_request() local 7756 if (tcp_parse_auth_options(tcp_hdr(skb), NULL, &aoh)) in tcp_conn_request() 7758 if (aoh) { in tcp_conn_request() 7760 tcp_rsk(req)->ao_rcv_next = aoh->keyid; in tcp_conn_request() 7761 tcp_rsk(req)->ao_keyid = aoh->rnext_keyid; in tcp_conn_request()
|
| /linux/net/ipv6/ |
| H A D | tcp_ipv6.c | 982 const struct tcp_ao_hdr *aoh; in tcp_v6_send_response() 1006 if (tcp_parse_auth_options(th, &md5_hash_location, &aoh)) in tcp_v6_send_response() 1063 if (aoh) { in tcp_v6_send_reset() 1067 if (tcp_ao_prepare_reset(sk, skb, aoh, l3index, seq, in tcp_v6_send_reset() 1137 const struct tcp_ao_hdr *aoh; in tcp_v6_send_reset() 1140 if (tcp_parse_auth_options(tcp_hdr(skb), NULL, &aoh)) in tcp_v6_send_reset() 1142 if (aoh) in tcp_v6_send_reset() 1144 aoh->rnext_keyid, -1); in tcp_v6_send_reset() 1190 const struct tcp_ao_hdr *aoh; 1195 if (tcp_parse_auth_options(tcp_hdr(skb), NULL, &aoh)) 1025 const struct tcp_ao_hdr *aoh; tcp_v6_send_reset() local 1180 const struct tcp_ao_hdr *aoh; global() local 1233 const struct tcp_ao_hdr *aoh; global() local [all...] |
| /linux/include/net/ |
| H A D | tcp.h | 2944 const u8 **md5_hash, const struct tcp_ao_hdr **aoh) 2956 if (aoh) { 2958 *aoh = NULL; 2960 *aoh = (struct tcp_ao_hdr *)(ao_tmp - 2); 2891 tcp_parse_auth_options(const struct tcphdr * th,const u8 ** md5_hash,const struct tcp_ao_hdr ** aoh) tcp_parse_auth_options() argument
|