| /linux/net/ipv4/ |
| H A D | tcp_ao.c | 142 static int __tcp_ao_key_cmp(const struct tcp_ao_key *key, int l3index, in __tcp_ao_key_cmp() argument 150 if (l3index >= 0 && (key->keyflags & TCP_AO_KEYF_IFINDEX)) { in __tcp_ao_key_cmp() 151 if (key->l3index != l3index) in __tcp_ao_key_cmp() 152 return (key->l3index > l3index) ? 1 : -1; in __tcp_ao_key_cmp() 178 static int tcp_ao_key_cmp(const struct tcp_ao_key *key, int l3index, in tcp_ao_key_cmp() argument 186 return __tcp_ao_key_cmp(key, l3index, in tcp_ao_key_cmp() 191 return __tcp_ao_key_cmp(key, l3index, addr, in tcp_ao_key_cmp() 195 static struct tcp_ao_key *__tcp_ao_do_lookup(const struct sock *sk, int l3index, in __tcp_ao_do_lookup() argument 213 if (!tcp_ao_key_cmp(key, l3index, addr, prefixlen, in __tcp_ao_do_lookup() 220 struct tcp_ao_key *tcp_ao_do_lookup(const struct sock *sk, int l3index, in tcp_ao_do_lookup() argument [all …]
|
| H A D | tcp_ipv4.c | 668 int l3index = sdif ? dif : 0; in tcp_v4_ao_sign_reset() local 677 if (tcp_ao_prepare_reset(sk, skb, aoh, l3index, ntohl(reply->seq), in tcp_v4_ao_sign_reset() 780 int l3index; in tcp_v4_send_reset() local 785 l3index = tcp_v4_sdif(skb) ? inet_iif(skb) : 0; in tcp_v4_send_reset() 787 key = tcp_md5_do_lookup(sk, l3index, addr, AF_INET); in tcp_v4_send_reset() 792 int l3index; in tcp_v4_send_reset() local 811 l3index = sdif ? dif : 0; in tcp_v4_send_reset() 813 key = tcp_md5_do_lookup(sk1, l3index, addr, AF_INET); in tcp_v4_send_reset() 1092 int l3index; local 1101 l3index = tcp_v4_sdif(skb) ? inet_iif(skb) : 0; [all …]
|
| H A D | tcp.c | 4921 int family, int l3index, const __u8 *hash_location) in tcp_inbound_md5_hash() argument 4932 key = tcp_md5_do_lookup(sk, l3index, saddr, family); in tcp_inbound_md5_hash() 4958 int family, int l3index, const __u8 *hash_location) in tcp_inbound_md5_hash() argument 5028 int l3index; in tcp_inbound_hash() local 5057 l3index = sdif ? dif : 0; in tcp_inbound_hash() 5066 if (tcp_ao_required(sk, saddr, family, l3index, true)) { in tcp_inbound_hash() 5070 if (unlikely(tcp_md5_do_lookup(sk, l3index, saddr, family))) { in tcp_inbound_hash() 5079 return tcp_inbound_ao_hash(sk, skb, family, req, l3index, aoh); in tcp_inbound_hash() 5082 l3index, md5_location); in tcp_inbound_hash()
|
| /linux/net/ipv6/ |
| H A D | tcp_ao.c | 94 int l3index = l3mdev_master_ifindex_by_index(sock_net(sk), in tcp_v6_ao_lookup() local 98 return tcp_ao_do_lookup(sk, l3index, (union tcp_ao_addr *)addr, in tcp_v6_ao_lookup() 108 int l3index; in tcp_v6_ao_lookup_rsk() local 110 l3index = l3mdev_master_ifindex_by_index(sock_net(sk), ireq->ir_iif); in tcp_v6_ao_lookup_rsk() 111 return tcp_ao_do_lookup(sk, l3index, (union tcp_ao_addr *)addr, in tcp_v6_ao_lookup_rsk()
|
| H A D | tcp_ipv6.c | 606 int l3index) in tcp_v6_md5_do_lookup() argument 608 return tcp_md5_do_lookup(sk, l3index, in tcp_v6_md5_do_lookup() 615 int l3index; in tcp_v6_md5_lookup() local 617 l3index = l3mdev_master_ifindex_by_index(sock_net(sk), in tcp_v6_md5_lookup() 620 l3index); in tcp_v6_md5_lookup() 629 int l3index = 0; in tcp_v6_parse_md5_keys() local 663 l3index = dev->ifindex; in tcp_v6_parse_md5_keys() 669 if (!dev || !l3index) in tcp_v6_parse_md5_keys() 677 l3index, flags); in tcp_v6_parse_md5_keys() 679 AF_INET6, prefixlen, l3index, flags); in tcp_v6_parse_md5_keys() [all …]
|
| /linux/include/net/ |
| H A D | tcp.h | 1993 int l3index; /* set if key added with L3 scope */ member 2057 int family, u8 prefixlen, int l3index, u8 flags, 2060 int family, u8 prefixlen, int l3index, 2064 int family, u8 prefixlen, int l3index, u8 flags); 2070 struct tcp_md5sig_key *__tcp_md5_do_lookup(const struct sock *sk, int l3index, 2074 tcp_md5_do_lookup(const struct sock *sk, int l3index, in tcp_md5_do_lookup() argument 2079 return __tcp_md5_do_lookup(sk, l3index, addr, family, false); in tcp_md5_do_lookup() 2095 tcp_md5_do_lookup(const struct sock *sk, int l3index, in tcp_md5_do_lookup() argument 3053 int family, int l3index, bool stat_inc) in tcp_ao_required() argument 3067 ao_key = tcp_ao_do_lookup(sk, l3index, saddr, family, -1, -1); in tcp_ao_required()
|