1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-02 17:08:56 +00:00

In r257692 I intentionally deleted code that handled P2P interfaces

with equal addresses on both sides. It appeared that OpenVPN uses
such configutations.

Submitted by:	trociny
This commit is contained in:
Gleb Smirnoff 2013-11-17 15:14:07 +00:00
parent e537388b84
commit c1f7c3f500
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=258260

View File

@ -449,7 +449,9 @@ in_aifaddr_ioctl(u_long cmd, caddr_t data, struct ifnet *ifp, struct thread *td)
* Add a loopback route to self.
*/
if (vhid == 0 && (ifp->if_flags & IFF_LOOPBACK) == 0 &&
ia->ia_addr.sin_addr.s_addr != INADDR_ANY) {
ia->ia_addr.sin_addr.s_addr != INADDR_ANY &&
!((ifp->if_flags & IFF_POINTOPOINT) &&
ia->ia_dstaddr.sin_addr.s_addr == ia->ia_addr.sin_addr.s_addr)) {
struct in_ifaddr *eia;
eia = in_localip_more(ia);