gonzui


Format: Advanced Search

SearchGoogle itResults 1 - 1 of 1 for funcall:printf from t2ex/t2ex_source/kernel/sysmain/src/network_sample/route.c (0.00 seconds)
t2ex
t2ex_source/kernel/sysmain/src/network_sample/route.c - 7.4KB - 226 lines
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) );