DragonFly commits List (threaded) for 2005-03
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
cvs commit: src/sbin/route route.c
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
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]