aboutsummaryrefslogtreecommitdiffstats
path: root/packet-chdlc.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-04-10 14:04:31 +0000
committerGuy Harris <guy@alum.mit.edu>2001-04-10 14:04:31 +0000
commit1d90448c5560d81cb0483e5569fae5197700d21b (patch)
treeb026e698a81a65baf33dee578d7700ec4dd5d2db /packet-chdlc.c
parent466006a3db84382889a3912a6788718d912f21e0 (diff)
"get_hostname()" takes an argument in network byte order, not host byte
order. svn path=/trunk/; revision=3283
Diffstat (limited to 'packet-chdlc.c')
-rw-r--r--packet-chdlc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-chdlc.c b/packet-chdlc.c
index 486388acb9..da78406aa3 100644
--- a/packet-chdlc.c
+++ b/packet-chdlc.c
@@ -1,7 +1,7 @@
/* packet-chdlc.c
* Routines for Cisco HDLC packet disassembly
*
- * $Id: packet-chdlc.c,v 1.2 2001/04/03 05:42:11 guy Exp $
+ * $Id: packet-chdlc.c,v 1.3 2001/04/10 14:04:31 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -232,7 +232,7 @@ dissect_slarp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (check_col(pinfo->fd, COL_INFO)) {
col_add_fstr(pinfo->fd, COL_INFO, "%s, from %s, mask %s",
match_strval(code, slarp_ptype_vals),
- get_hostname(tvb_get_ntohl(tvb, 4)),
+ get_hostname(htonl(tvb_get_ntohl(tvb, 4))),
ip_to_str(tvb_get_ptr(tvb, 8, 4)));
}
if (tree) {