Revert "if_ovpn: allow peer lookup by vpn4/vpn6 address"
authorKristof Provost <kp@FreeBSD.org>
Mon, 26 Dec 2022 20:36:02 +0000 (21:36 +0100)
committerKristof Provost <kp@FreeBSD.org>
Mon, 26 Dec 2022 21:38:10 +0000 (22:38 +0100)
commitb079ca8593edb24fec69fc1d9749c014db4384c3
tree163bf87a3581877285118ea8d5b3e2e2b47ca282
parent5e4ae3061f27039ccc13b4d08004bdaf369f291c
Revert "if_ovpn: allow peer lookup by vpn4/vpn6 address"

This reverts commit 92f0cf77db18502cac9a731cd2f6e8f3cc8a9369.

This change was incorrect, at least because it uses ovpn_kpeer's tree
for multipbe RB_TREEs.

This is a performance change, not a functional one, so we can revert
this until it can be fixed.

Reported by: Gert Doering <gert@greenie.muc.de>
Sponsored by: Rubicon Communications, LLC ("Netgate")
sys/net/if_ovpn.c