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: Paul Goyette <paul%whooppee.com@localhost>
To: Ryota Ozaki <ozaki-r%netbsd.org@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 06:44:05 +0800 (PHT)

 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.
 
 
 
 +------------------+--------------------------+------------------------+
 | Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:      |
 | (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com   |
 | Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org |
 +------------------+--------------------------+------------------------+
 


Home | Main Index | Thread Index | Old Index