cvs commit: src/sbin/route route.c
Chris Pressey
cpressey at crater.dragonflybsd.org
Tue Mar 15 20:47:24 PST 2005
cpressey 2005/03/15 20:47:00 PST
DragonFly src repository
Modified files:
sbin/route route.c
Log:
When rendering the routename() or netname() of a struct sockaddr
with an unknown address family, use a more straightforward loop
for dumping the contents of sa_data as hex:
- start at sa_data, end at sa + sa_len (NOT sa_data + sa_len);
- don't make assumptions about the size of u_short.
Inspired-by-patch-by: Sepherosa Ziehau <sepherosa_at_softhome_dot_net>
Revision Changes Path
1.10 +18 -6 src/sbin/route/route.c
http://www.dragonflybsd.org/cvsweb/src/sbin/route/route.c.diff?r1=1.9&r2=1.10&f=u
More information about the Commits
mailing list