patch-traceroute_mod-udp_c 733 B

1234567891011121314151617181920
  1. --- traceroute-2.0.19.orig/traceroute/mod-udp.c 2010-12-14 16:51:44.000000000 +0100
  2. +++ traceroute-2.0.19/traceroute/mod-udp.c 2013-12-29 20:01:35.000000000 +0100
  3. @@ -71,7 +71,7 @@ static int udp_init (const sockaddr_any
  4. dest_addr = *dest;
  5. if (!port_seq) port_seq = DEF_UDP_PORT;
  6. - dest_addr.sin.sin_port = htons ((u_int16_t) port_seq);
  7. + dest_addr.sin.sin_port = htons ((uint16_t) port_seq);
  8. fill_data (packet_len_p);
  9. @@ -107,7 +107,7 @@ static int udplite_init (const sockaddr_
  10. dest_addr = *dest;
  11. if (!port_seq) port_seq = DEF_UDP_PORT; /* XXX: Hmmm... */
  12. - dest_addr.sin.sin_port = htons ((u_int16_t) port_seq);
  13. + dest_addr.sin.sin_port = htons ((uint16_t) port_seq);
  14. protocol = IPPROTO_UDPLITE;