1 --- traceroute-2.0.19.orig/traceroute/mod-dccp.c 2012-11-19 16:51:53.000000000 +0100
2 +++ traceroute-2.0.19/traceroute/mod-dccp.c 2013-12-29 20:01:35.000000000 +0100
3 @@ -30,7 +30,7 @@ static unsigned int dest_port = 0;
4 static int raw_sk = -1;
\r
5 static int last_ttl = 0;
\r
7 -static u_int8_t buf[1024]; /* enough, enough... */
\r
8 +static uint8_t buf[1024]; /* enough, enough... */
\r
9 static size_t csum_len = 0;
\r
10 static struct dccp_hdr *dh = NULL;
\r
11 static struct dccp_hdr_ext *dhe = NULL;
\r
12 @@ -51,8 +51,8 @@ static int dccp_init (const sockaddr_any
13 int af = dest->sa.sa_family;
\r
23 @@ -117,10 +117,10 @@ static int dccp_init (const sockaddr_any
27 - lenp = (u_int16_t *) ptr;
\r
28 - ptr += sizeof (u_int16_t);
\r
29 - *((u_int16_t *) ptr) = htons ((u_int16_t) IPPROTO_DCCP);
\r
30 - ptr += sizeof (u_int16_t);
\r
31 + lenp = (uint16_t *) ptr;
\r
32 + ptr += sizeof (uint16_t);
\r
33 + *((uint16_t *) ptr) = htons ((uint16_t) IPPROTO_DCCP);
\r
34 + ptr += sizeof (uint16_t);
\r
37 /* Construct DCCP header */
\r
38 @@ -153,7 +153,7 @@ static int dccp_init (const sockaddr_any
39 if (csum_len > sizeof (buf))
\r
40 error ("impossible"); /* paranoia */
\r
42 - len = ptr - (u_int8_t *) dh;
\r
43 + len = ptr - (uint8_t *) dh;
\r
44 if (len & 0x03) error ("impossible"); /* as >>2 ... */
\r
46 *lenp = htons (len);
\r
47 @@ -232,7 +232,7 @@ static probe *dccp_check_reply (int sk,
48 char *buf, size_t len) {
\r
50 struct dccp_hdr *ndh = (struct dccp_hdr *) buf;
\r
51 - u_int16_t sport, dport;
\r
52 + uint16_t sport, dport;
\r
55 if (len < 8) return NULL; /* too short */
\r