gonzui


Format: Advanced Search

SearchGoogle itResults 1 - 1 of 1 for funcall:printf from t2ex/t2ex_source/kernel/sysmain/src/network_sample/ping.c (0.00 seconds)
t2ex
t2ex_source/kernel/sysmain/src/network_sample/ping.c - 7.7KB - 229 lines
117:                         if ( hop == 0 ) {
118:                                 printf("ICMP reply from %s: %d bytes %d ms TTL=%d\n", inet_ntop(AF_INET, &p->ip.ip_src, rbuf, sizeof(rbuf)), re, tim.lo - state->start_time.lo, p->ip.ip_ttl);
119:                         } else {
120:                                 printf(" %2d  %4d ms %s\n", hop, tim.lo - state->start_time.lo, inet_ntop(AF_INET, &p->ip.ip_src, rbuf, sizeof(rbuf)));
121:                         }
162: 163: printf("sending ICMP packet: id=%x, seq=%d\n", state->xid, state->seq); 164: re = so_sendto(sd, &p, sizeof p, 0, (struct sockaddr*)&sa, sizeof sa);
214: a.s_addr = addr; 215: printf("traceroute to %s, 30 hops max\n", inet_ntop(AF_INET, &a, rbuf, sizeof(rbuf))); 216: for(hop = 1; hop <= 30; hop++) {