gonzui


Format: Advanced Search

SearchGoogle itResults 1 - 1 of 1 for funcall:printf from t2ex/t2ex_source/kernel/sysmain/src/network_sample/net_show.c (0.00 seconds)
t2ex
t2ex_source/kernel/sysmain/src/network_sample/net_show.c - 7.0KB - 223 lines
61:         sin = (struct sockaddr_in *)ifa->ifa_addr;
62:         printf("    inet:      %s\n", 
63:                inet_ntop(AF_INET, &sin->sin_addr, str, sizeof(str)));
66: sin = (struct sockaddr_in *)ifa->ifa_broadaddr; 67: printf(" broadcast: %s\n", 68: inet_ntop(AF_INET, &sin->sin_addr, str, sizeof(str)));
71: sin = (struct sockaddr_in *)ifa->ifa_netmask; 72: printf(" netmask: %s\n", 73: inet_ntop(AF_INET, &sin->sin_addr, str, sizeof(str)));
89: 90: printf(" address: %s\n", buf); 91: }
101: if (len < 0) { 102: printf("error: so_getifaddrs: %d(%d,%d)\n", len, MERCD(len), 103: SERCD(len));
111: if (len < 0) { 112: printf("error: so_getifaddrs: %d(%d,%d)\n", len, MERCD(len), 113: SERCD(len));
120: if (strncmp(ifa->ifa_name, lastname, IFNAMSIZ) != 0) { 121: printf("%s:\n", ifa->ifa_name); 122: strncpy(lastname, ifa->ifa_name, IFNAMSIZ-1);
148: if (len < 0) { 149: printf("error: so_resctl()\n"); 150: return;
154: sin = (struct sockaddr_in *)res[i]; 155: printf( "server: %s\n", 156: inet_ntop(AF_INET, &sin->sin_addr, rbuf, sizeof(rbuf)));
160: if (len < 0) { 161: printf("error: so_resctl()\n"); 162: return;
165: for( i=0; domains[i] != NULL; i++ ) { 166: printf( "domain: %s\n", domains[i] ); 167: }
183: if (len < 0) { 184: printf("error: so_resctl()\n"); 185: return;
189: sin = (struct sockaddr_in *)table[i].addr; 190: printf("%-18s ", inet_ntop(AF_INET, &sin->sin_addr, rbuf, sizeof(rbuf))); 191: printf("%s ", table[i].host ); 192: printf("%s\n", table[i].aliases != NULL ? table[i].aliases : ""); 193: }
197: { 198: printf("\n--------------------------------\n"); 199: printf("Network interface configurations\n"); 200: printf("--------------------------------\n"); 201:
203: 204: printf("\n-----------------\n"); 205: printf("DNS configuraions\n"); 206: printf("-----------------\n"); 207:
209: 210: printf("\n----------\n"); 211: printf("Host table\n"); 212: printf("----------\n"); 213:
215: 216: printf("\n-------------------\n"); 217: printf("Routing information\n"); 218: printf("-------------------\n"); 219:
221: 222: printf("\n"); 223: }