Date: Tue, 7 Jan 2014 09:35:08 +0400 From: Sergey Kandaurov <pluknet@gmail.com> To: "Alexander V. Chernikov" <melifaro@freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r260379 - head/sys/net Message-ID: <CAE-mSO%2BX2NJW4WKM5_w2Sx7ma9vWYd3E3-j%2BqGLvTtUr%2BFM9tQ@mail.gmail.com> In-Reply-To: <201401062236.s06MaKP6077348@svn.freebsd.org> References: <201401062236.s06MaKP6077348@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
07.01.2014 2:36 =D0=CF=CC=D8=DA=CF=D7=C1=D4=C5=CC=D8 "Alexander V. Cherniko= v" <melifaro@freebsd.org> =CE=C1=D0=C9=D3=C1=CC: > > Author: melifaro > Date: Mon Jan 6 22:36:20 2014 > New Revision: 260379 > URL: http://svnweb.freebsd.org/changeset/base/260379 > > Log: > Partially fix IPv4 interface routes deletion in RADIX_MPATH. > > Noticed by: Nikolay Denev <ndenev at gmail.com> > MFC after: 1 month > > Modified: > head/sys/net/radix_mpath.c > head/sys/net/route.c > > Modified: head/sys/net/radix_mpath.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > --- head/sys/net/radix_mpath.c Mon Jan 6 19:14:46 2014 (r260378) > +++ head/sys/net/radix_mpath.c Mon Jan 6 22:36:20 2014 (r260379) > @@ -112,11 +112,16 @@ rt_mpath_matchgate(struct rtentry *rt, s > if (rt->rt_gateway->sa_family =3D=3D AF_LINK) { > if (!memcmp(rt->rt_ifa->ifa_addr, gate, gate->sa_len)) > break; > - } else { > - if (rt->rt_gateway->sa_len =3D=3D gate->sa_len && > - !memcmp(rt->rt_gateway, gate, gate->sa_len)) > - break; > } > + > + /* > + * Check for other options: > + * 1) Routes with 'real' IPv4/IPv6 gateway > + * 2) Loopback host routes (another AF_LINK/sockadd_dl check) sockaddr_dl
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAE-mSO%2BX2NJW4WKM5_w2Sx7ma9vWYd3E3-j%2BqGLvTtUr%2BFM9tQ>