Ethereal-dev: [Ethereal-dev] Small ntp fix

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Mon, 9 Apr 2001 16:22:07 +0200
Moin,

get_hostname expects its argument in network order. I don't really like
to convert forward and backward again on LE machines but didn't find a
better solution.

 Ciao
     J�rg

-- 
Joerg Mayer                                          <jmayer@xxxxxxxxx>
I found out that "pro" means "instead of" (as in proconsul). Now I know
what proactive means.
Changelog: <jmayer@xxxxxxxxx>
	packet-ntp.c: get_hostname expects the ip address in network order

--- packet-ntp.c.distrib	Mon Apr  9 15:31:29 2001
+++ packet-ntp.c	Mon Apr  9 15:51:27 2001
@@ -372,7 +372,7 @@
 			}
 		} else {
 			buff[sizeof(buff) - 1] = '\0';
-			strncpy (buff, get_hostname (tvb_get_ntohl(tvb, 12)),
+			strncpy (buff, get_hostname (htonl(tvb_get_ntohl(tvb, 12))),
 			    sizeof(buff));
 			if (buff[sizeof(buff) - 1] != '\0')
 				strcpy(&buff[sizeof(buff) - 4], "...");