Home | History | Annotate | Download | only in iputils

Lines Matching defs:from

24  * This code is derived from software contributed to Berkeley by
40 * may be used to endorse or promote products derived from this software
68 * icmp "time exceeded" reply from a gateway. We start our probes
74 * round trip time of each probe. If the probe answers come from
160 * is using the ttl from our arriving datagram as the ttl in its
186 * system available from Berkeley: A raw ip socket using proto
196 * data from the original datagram. 8 bytes is the size of a udp
214 * I stole the idea for this program from Steve Deering. Since
216 * IETF working group meetings, I also could have stolen it from Guy
294 int packet_ok(u_char *buf, int cc, struct sockaddr_in6 *from,
298 void print(unsigned char *buf, int cc, struct sockaddr_in6 *from);
342 struct sockaddr_in6 from, *to;
588 Fprintf(stderr, " from %s",
609 while ((cc = wait_for_reply(icmp_sock, &from, &to, reset_timer)) != 0) {
611 if ((i = packet_ok(packet, cc, &from, &to, seq, &t1))) {
613 if (memcmp(&from.sin6_addr, &lastaddr, sizeof(from.sin6_addr))) {
614 print(packet, cc, &from);
616 &from.sin6_addr,
657 wait_for_reply(sock, from, to, reset_timer)
659 struct sockaddr_in6 *from;
692 msg.msg_name = (void *)from;
693 msg.msg_namelen = sizeof(*from);
824 int packet_ok(u_char *buf, int cc, struct sockaddr_in6 *from,
875 Printf("\n%d bytes from %s to %s", cc,
876 inet_ntop(AF_INET6, &from->sin6_addr, pa1, sizeof(pa1)),
899 void print(unsigned char *buf, int cc, struct sockaddr_in6 *from)
904 Printf(" %s", inet_ntop(AF_INET6, &from->sin6_addr,
912 hostname = inet_ntop(AF_INET6, &from->sin6_addr, pa, sizeof(pa));
914 if ((hp = gethostbyaddr((char *)&from->sin6_addr,
915 sizeof(from->sin6_addr), AF_INET6))) {