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