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