NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/51301: 7.99.32 has broken IPv6 functionality of pkgsrc/net/openvpn
The following reply was made to PR kern/51301; it has been noted by GNATS.
From: Ryota Ozaki <ozaki-r%netbsd.org@localhost>
To: Paul Goyette <paul%whooppee.com@localhost>
Cc: "gnats-bugs%NetBSD.org@localhost" <gnats-bugs%netbsd.org@localhost>
Subject: Re: kern/51301: 7.99.32 has broken IPv6 functionality of pkgsrc/net/openvpn
Date: Sun, 3 Jul 2016 14:10:29 +0900
On Sun, Jul 3, 2016 at 7:44 AM, Paul Goyette <paul%whooppee.com@localhost> wrote:
> On Sat, 2 Jul 2016, Ryota Ozaki wrote:
>
>> Does the following patch help you?
>>
>> Thanks,
>> ozaki-r
>>
>> diff --git a/sys/net/if.c b/sys/net/if.c
>> index dc73c47..62e58c8 100644
>> --- a/sys/net/if.c
>> +++ b/sys/net/if.c
>> @@ -2021,6 +2021,8 @@ p2p_rtrequest(int req, struct rtentry *rt,
>> if ((rt->rt_flags & RTF_LOCAL) == 0)
>> break;
>>
>> + rt->rt_ifp = lo0ifp;
>> +
>> IFADDR_FOREACH(ifa, ifp) {
>> if (equal(rt_getkey(rt), ifa->ifa_addr))
>> break;
>> @@ -2039,8 +2041,6 @@ p2p_rtrequest(int req, struct rtentry *rt,
>> if (lo0ifa == NULL)
>> break;
>>
>> - rt->rt_ifp = lo0ifp;
>> -
>> /*
>> * Make sure to set rt->rt_ifa to the interface
>> * address we are using, otherwise we will have trouble
>
>
> Yes!
>
> A kernel built from today's up-to-the-minute sources and with this patch
> works successfully.
Good! Thanks for testing.
I'll investigate more Monday and commit the fix if it's really feasible.
ozaki-r
Home |
Main Index |
Thread Index |
Old Index