199:
200: printf("%-16s ", dest != NULL ? inet_ntop(AF_INET, &dest->sin_addr, rbuf, sizeof(rbuf)) : "-");
201: printf("%-16s ", mask != NULL ? inet_ntop(AF_INET, &mask->sin_addr, rbuf, sizeof(rbuf)) : "-");
202: printf("%-18s ", workbuf[0] != '\0' ? workbuf : "-");
203: printf(" %-8s ", flags);
204: printf(" %-6s ", ifname);
205: printf(" %d ", rtm->rtm_index);
206:
207: printf("\n");
208: }
218:
219: printf("Destination Netmask Gateway Flags Interface\n");
220: er = so_rtlist(AF_INET, NET_RT_DUMP, 0, &rtbuf, sizeof(rtbuf) );