#ifndef lint
/* From: static char sccsid[] = "@(#)route.c 5.20 (Berkeley) 11/29/90"; */
static const char route_c_rcsid[] =
#ifndef lint
/* From: static char sccsid[] = "@(#)route.c 5.20 (Berkeley) 11/29/90"; */
static const char route_c_rcsid[] =
cp = workbuf;
cplim = cp + sizeof(workbuf) - 6;
cp += sprintf(cp, "(%d)", sa->sa_family);
while (s < slim && cp < cplim)
cp = workbuf;
cplim = cp + sizeof(workbuf) - 6;
cp += sprintf(cp, "(%d)", sa->sa_family);
while (s < slim && cp < cplim)
- cp += sprintf(cp, " %x", *s++);
+ cp += sprintf(cp, " %02x%02x", s[0], s[1]), s += 2;
printf("\n %7d%c", rt->rt_rmx.rmx_mtu,
(rt->rt_rmx.rmx_locks & RTV_MTU) ? '*' : ' ');
else
printf("\n %7d%c", rt->rt_rmx.rmx_mtu,
(rt->rt_rmx.rmx_locks & RTV_MTU) ? '*' : ' ');
else
printf(" %7d%c", rt->rt_rmx.rmx_hopcount,
(rt->rt_rmx.rmx_locks & RTV_HOPCOUNT) ? '*' : ' ');
else
printf(" %7d%c", rt->rt_rmx.rmx_hopcount,
(rt->rt_rmx.rmx_locks & RTV_HOPCOUNT) ? '*' : ' ');
else
printf(" %7d%c", rt->rt_rmx.rmx_expire,
(rt->rt_rmx.rmx_locks & RTV_EXPIRE) ? '*' : ' ');
else
printf(" %7d%c", rt->rt_rmx.rmx_expire,
(rt->rt_rmx.rmx_locks & RTV_EXPIRE) ? '*' : ' ');
else
printf(" %7d%c", rt->rt_rmx.rmx_recvpipe,
(rt->rt_rmx.rmx_locks & RTV_RPIPE) ? '*' : ' ');
else
printf(" %7d%c", rt->rt_rmx.rmx_recvpipe,
(rt->rt_rmx.rmx_locks & RTV_RPIPE) ? '*' : ' ');
else
printf(" %7d%c", rt->rt_rmx.rmx_sendpipe,
(rt->rt_rmx.rmx_locks & RTV_SPIPE) ? '*' : ' ');
else
printf(" %7d%c", rt->rt_rmx.rmx_sendpipe,
(rt->rt_rmx.rmx_locks & RTV_SPIPE) ? '*' : ' ');
else
printf(" %7d%c", rt->rt_rmx.rmx_ssthresh,
(rt->rt_rmx.rmx_locks & RTV_SSTHRESH) ? '*' : ' ');
else
printf(" %7d%c", rt->rt_rmx.rmx_ssthresh,
(rt->rt_rmx.rmx_locks & RTV_SSTHRESH) ? '*' : ' ');
else
printf(" %7.4f%c", (1.0 * rt->rt_rmx.rmx_rtt) / RTM_RTTUNIT,
(rt->rt_rmx.rmx_locks & RTV_RTT) ? '*' : ' ');
else
printf(" %7.4f%c", (1.0 * rt->rt_rmx.rmx_rtt) / RTM_RTTUNIT,
(rt->rt_rmx.rmx_locks & RTV_RTT) ? '*' : ' ');
else
printf(" %7.4f%c", (1.0 * rt->rt_rmx.rmx_rttvar) / RTM_RTTUNIT,
(rt->rt_rmx.rmx_locks & RTV_RTTVAR) ? '*' : ' ');
else
printf(" %7.4f%c", (1.0 * rt->rt_rmx.rmx_rttvar) / RTM_RTTUNIT,
(rt->rt_rmx.rmx_locks & RTV_RTTVAR) ? '*' : ' ');
else
} else { /* no -a flag */
if(rt->rt_rmx.rmx_mtu)
printf(" %6d", rt->rt_rmx.rmx_mtu);
} else { /* no -a flag */
if(rt->rt_rmx.rmx_mtu)
printf(" %6d", rt->rt_rmx.rmx_mtu);