Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jul 2013 19:17:58 -0600
From:      Scott Long <scott4long@yahoo.com>
To:        Glen Barber <gjb@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, Hiroki Sato <hrs@FreeBSD.org>, src-committers@freebsd.org
Subject:   Re: svn commit: r253427 - head/sbin/route
Message-ID:  <2AE597F6-02A5-405F-B1D8-34054A0DA1C4@yahoo.com>
In-Reply-To: <20130718010038.GD2264@glenbarber.us>
References:  <201307171405.r6HE5KpR005269@svn.freebsd.org> <20130718010038.GD2264@glenbarber.us>

next in thread | previous in thread | raw e-mail | index | archive | help

On Jul 17, 2013, at 7:00 PM, Glen Barber <gjb@freebsd.org> wrote:

> On Wed, Jul 17, 2013 at 02:05:20PM +0000, Hiroki Sato wrote:
>> Author: hrs
>> Date: Wed Jul 17 14:05:20 2013
>> New Revision: 253427
>> URL: http://svnweb.freebsd.org/changeset/base/253427
>>=20
>> Log:
>>  - Add support of MK_INET_SUPPORT=3Dno.
>>  - Fix a bug in sodump() which prevented struct sockaddr_in6 from =
displaying.
>>  - Fix a bug in in fiboptlist_csv() which could cause free() of =
uninitialized
>>    pointer.
>>  - Style cleanups:
>>   . Add missing "static" keywords.
>>   . Use an array of struct sockaddr_storage instead of sockunion for =
rtmsg.
>>   . Use err() and errx() instead of pair of fprintf(stderr, "...") + =
exit(1).
>>   . Use nitems() macro.
>>   . Various style(9) fixes.
>>=20
>> Modified:
>>  head/sbin/route/Makefile
>>  head/sbin/route/route.c
>>=20
>=20
> [...]
>=20
>> Modified: head/sbin/route/route.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/sbin/route/route.c	Wed Jul 17 14:04:18 2013	=
(r253426)
>> +++ head/sbin/route/route.c	Wed Jul 17 14:05:20 2013	=
(r253427)
> [...]
>> @@ -1470,14 +1498,12 @@ rtmsg(int cmd, int flags, int fib)
>> 	rtm.rtm_rmx =3D rt_metrics;
>> 	rtm.rtm_inits =3D rtm_inits;
>>=20
>> -	if (rtm_addrs & RTA_NETMASK)
>> -		mask_addr();
>> -	NEXTADDR(RTA_DST, so_dst);
>> -	NEXTADDR(RTA_GATEWAY, so_gate);
>> -	NEXTADDR(RTA_NETMASK, so_mask);
>> -	NEXTADDR(RTA_GENMASK, so_genmask);
>> -	NEXTADDR(RTA_IFP, so_ifp);
>> -	NEXTADDR(RTA_IFA, so_ifa);
>> +	NEXTADDR(RTA_DST, so[RTAX_DST]);
>> +	NEXTADDR(RTA_GATEWAY, so[RTAX_GATEWAY]);
>> +	NEXTADDR(RTA_NETMASK, so[RTAX_NETMASK]);
>> +	NEXTADDR(RTA_GENMASK, so[RTAX_GENMASK]);
>> +	NEXTADDR(RTA_IFP, so[RTAX_IFP]);
>> +	NEXTADDR(RTA_IFA, so[RTAX_IFA]);
>> 	rtm.rtm_msglen =3D l =3D cp - (char *)&m_rtmsg;
>> 	if (verbose)
>> 		print_rtmsg(&rtm, l);
>=20
> I think this breaks head/, at least for ia64.
>=20

Yes, as well as for amd64.  This breakage occurred at the exact moment =
that we tried to cut over to HEAD at Netflix.  It's indeed a Brave New =
World.  Should we back it out?

Scott




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2AE597F6-02A5-405F-B1D8-34054A0DA1C4>