+ if(aflag) {
+ /*
+ * MTU
+ */
+ if(rt->rt_rmx.rmx_mtu)
+ printf("\n %7d%c", rt->rt_rmx.rmx_mtu,
+ (rt->rt_rmx.rmx_locks & RTV_MTU) ? '*' : ' ');
+ else
+ printf("\n %-7s ", "-");
+
+ /*
+ * Hop count
+ */
+ if(rt->rt_rmx.rmx_hopcount)
+ printf(" %7d%c", rt->rt_rmx.rmx_hopcount,
+ (rt->rt_rmx.rmx_locks & RTV_HOPCOUNT) ? '*' : ' ');
+ else
+ printf(" %-6s ", "-");
+
+ /*
+ * Expiration time
+ */
+ if(rt->rt_rmx.rmx_expire)
+ printf(" %7d%c", rt->rt_rmx.rmx_expire,
+ (rt->rt_rmx.rmx_locks & RTV_EXPIRE) ? '*' : ' ');
+ else
+ printf(" %-7s ", "-");
+
+ /*
+ * Receive pipe size (bytes)
+ */
+ if(rt->rt_rmx.rmx_recvpipe)
+ printf(" %7d%c", rt->rt_rmx.rmx_recvpipe,
+ (rt->rt_rmx.rmx_locks & RTV_RPIPE) ? '*' : ' ');
+ else
+ printf(" %-7s ", "-");
+
+ /*
+ * Send pipe size (bytes)
+ */
+ if(rt->rt_rmx.rmx_sendpipe)
+ printf(" %7d%c", rt->rt_rmx.rmx_sendpipe,
+ (rt->rt_rmx.rmx_locks & RTV_SPIPE) ? '*' : ' ');
+ else
+ printf(" %-7s ", "-");
+
+ /*
+ * Slow-start threshold (bytes)
+ */
+ if(rt->rt_rmx.rmx_ssthresh)
+ printf(" %7d%c", rt->rt_rmx.rmx_ssthresh,
+ (rt->rt_rmx.rmx_locks & RTV_SSTHRESH) ? '*' : ' ');
+ else
+ printf(" %-7s ", "-");
+
+ /*
+ * Round-trip time (seconds)
+ */
+ if(rt->rt_rmx.rmx_rtt)
+ printf(" %7.4f%c", (1.0 * rt->rt_rmx.rmx_rtt) / RTM_RTTUNIT,
+ (rt->rt_rmx.rmx_locks & RTV_RTT) ? '*' : ' ');
+ else
+ printf(" %-7s ", "-");
+
+ /*
+ * Round-trip time variance (seconds)
+ */
+ if(rt->rt_rmx.rmx_rttvar)
+ printf(" %7.4f%c", (1.0 * rt->rt_rmx.rmx_rttvar) / RTM_RTTUNIT,
+ (rt->rt_rmx.rmx_locks & RTV_RTTVAR) ? '*' : ' ');
+ else
+ printf(" %-7s ", "-");
+ } else { /* no -a flag */
+ if(rt->rt_rmx.rmx_mtu)
+ printf(" %6d", rt->rt_rmx.rmx_mtu);
+ else
+ printf(" %-6s", "-");
+ if(rt->rt_rmx.rmx_rtt)
+ printf(" %6.3f", (1. * rt->rt_rmx.rmx_rtt) / RTM_RTTUNIT);
+ else
+ printf(" %-6s", "-");
+ }