home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / TCPIP / NETKIT-A.06 / NETKIT-A / NetKit-A-0.06 / traceroute-4.4BSD / README.linux < prev    next >
Encoding:
Text File  |  1994-07-29  |  1.2 KB  |  44 lines

  1. This is a modified version of 4.4BSD traceroute for Linux.
  2.  
  3. In addition to the BSD header files in the `netinet' directory, the
  4. following patch to the original 4.4BSD traceroute.c was needed to
  5. compile traceroute cleanly on Linux 1.1.36 + gcc 2.5.8 + libc 4.5.26.
  6.  
  7. Note that Linux 1.1 does not need the kernel patches mentioned in the
  8. README.
  9.  
  10. Matt Day <mday@artisoft.com>
  11.  
  12. =====================================================================
  13.  
  14. --- traceroute.c-    Sun Jun  6 14:11:45 1993
  15. +++ traceroute.c    Fri Jul 29 04:23:33 1994
  16. @@ -221,6 +221,9 @@
  17.  #include <sys/file.h>
  18.  #include <sys/ioctl.h>
  19.  
  20. +#if __linux__
  21. +#include <endian.h>
  22. +#endif
  23.  #include <netinet/in_systm.h>
  24.  #include <netinet/in.h>
  25.  #include <netinet/ip.h>
  26. @@ -393,7 +396,7 @@
  27.          if (hp) {
  28.              to->sin_family = hp->h_addrtype;
  29.              bcopy(hp->h_addr, (caddr_t)&to->sin_addr, hp->h_length);
  30. -            hostname = hp->h_name;
  31. +            hostname = (char *)hp->h_name;
  32.          } else {
  33.              (void)fprintf(stderr,
  34.                  "traceroute: unknown host %s\n", *argv);
  35. @@ -811,7 +814,7 @@
  36.              if ((cp = index(hp->h_name, '.')) &&
  37.                  !strcmp(cp + 1, domain))
  38.                  *cp = 0;
  39. -            cp = hp->h_name;
  40. +            cp = (char *)hp->h_name;
  41.          }
  42.      }
  43.      if (cp)
  44.