+ get_rtaddrs(rtm->rtm_addrs, sa, rti_info);
+ bzero(&addr, sizeof(addr));
+ if ((rtm->rtm_addrs & RTA_DST))
+ bcopy(rti_info[RTAX_DST], &addr, rti_info[RTAX_DST]->sa_len);
+ bzero(&mask, sizeof(mask));
+ if ((rtm->rtm_addrs & RTA_NETMASK))
+ bcopy(rti_info[RTAX_NETMASK], &mask, rti_info[RTAX_NETMASK]->sa_len);
+ p_sockaddr(&addr.u_sa, &mask.u_sa, rtm->rtm_flags,
+ WID_DST(addr.u_sa.sa_family));
+
+ p_sockaddr(rti_info[RTAX_GATEWAY], NULL, RTF_HOST,
+ WID_GW(addr.u_sa.sa_family));
+
+ p_flags(rtm->rtm_flags, "%-6.6s ");
+
+ if (addr.u_sa.sa_family == AF_INET || lflag) {
+ printf("%6u %8d ", rtm->rtm_refcnt, rtm->rtm_use);
+ if (lflag) {
+ if (rtm->rtm_rmx.rmx_mtu != 0)
+ printf("%6lu ", rtm->rtm_rmx.rmx_mtu);
+ else
+ printf("%6s ", "");