home *** CD-ROM | disk | FTP | other *** search
- This is a modified version of 4.4BSD traceroute for Linux.
-
- In addition to the BSD header files in the `netinet' directory, the
- following patch to the original 4.4BSD traceroute.c was needed to
- compile traceroute cleanly on Linux 1.1.36 + gcc 2.5.8 + libc 4.5.26.
-
- Note that Linux 1.1 does not need the kernel patches mentioned in the
- README.
-
- Matt Day <mday@artisoft.com>
-
- =====================================================================
-
- --- traceroute.c- Sun Jun 6 14:11:45 1993
- +++ traceroute.c Fri Jul 29 04:23:33 1994
- @@ -221,6 +221,9 @@
- #include <sys/file.h>
- #include <sys/ioctl.h>
-
- +#if __linux__
- +#include <endian.h>
- +#endif
- #include <netinet/in_systm.h>
- #include <netinet/in.h>
- #include <netinet/ip.h>
- @@ -393,7 +396,7 @@
- if (hp) {
- to->sin_family = hp->h_addrtype;
- bcopy(hp->h_addr, (caddr_t)&to->sin_addr, hp->h_length);
- - hostname = hp->h_name;
- + hostname = (char *)hp->h_name;
- } else {
- (void)fprintf(stderr,
- "traceroute: unknown host %s\n", *argv);
- @@ -811,7 +814,7 @@
- if ((cp = index(hp->h_name, '.')) &&
- !strcmp(cp + 1, domain))
- *cp = 0;
- - cp = hp->h_name;
- + cp = (char *)hp->h_name;
- }
- }
- if (cp)
-