patch-traceroute_traceroute_c 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. --- traceroute-2.0.19.orig/traceroute/traceroute.c 2012-11-19 17:12:04.000000000 +0100
  2. +++ traceroute-2.0.19/traceroute/traceroute.c 2013-12-30 11:22:50.000000000 +0100
  3. @@ -31,6 +31,13 @@
  4. #include "version.h"
  5. #include "traceroute.h"
  6. +#ifndef AI_IDN
  7. +# define AI_IDN 0 /* GNU/libc extension */
  8. +#endif
  9. +
  10. +#ifndef NI_IDN
  11. +# define NI_IDN 0 /* GNU/libc extension */
  12. +#endif
  13. #ifndef ICMP6_DST_UNREACH_BEYONDSCOPE
  14. #ifdef ICMP6_DST_UNREACH_NOTNEIGHBOR
  15. @@ -325,7 +332,7 @@ static void init_ip_options (void) {
  16. rth->ip6r_type = ipv6_rthdr_type;
  17. rth->ip6r_segleft = num_gateways;
  18. - *((u_int32_t *) (rth + 1)) = 0;
  19. + *((uint32_t *) (rth + 1)) = 0;
  20. in6 = (struct in6_addr *) (rtbuf + 8);
  21. for (i = 0; i < num_gateways; i++)
  22. @@ -606,7 +613,7 @@ int main (int argc, char *argv[]) {
  23. htonl (((tos & 0xff) << 20) | (flow_label & 0x000fffff));
  24. if (src_port) {
  25. - src_addr.sin.sin_port = htons ((u_int16_t) src_port);
  26. + src_addr.sin.sin_port = htons ((uint16_t) src_port);
  27. src_addr.sa.sa_family = af;
  28. }