aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ip.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-12-08 22:53:08 +0000
committerGuy Harris <guy@alum.mit.edu>2000-12-08 22:53:08 +0000
commit17c1bf2a591f0f9564c3448baf3a193514257be6 (patch)
treeb86192ab67638b0af0d4aabd2c51f4f5099f466b /packet-ip.c
parenta1cd319b540cefcbdd33d813e188170c8eb62982 (diff)
When printing an address mask in hex, zero-pad it, don't blank-pad it.
svn path=/trunk/; revision=2747
Diffstat (limited to 'packet-ip.c')
-rw-r--r--packet-ip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-ip.c b/packet-ip.c
index 25d1accd50..9c82a65688 100644
--- a/packet-ip.c
+++ b/packet-ip.c
@@ -1,7 +1,7 @@
/* packet-ip.c
* Routines for IP and miscellaneous IP protocol packet disassembly
*
- * $Id: packet-ip.c,v 1.108 2000/12/04 06:37:44 guy Exp $
+ * $Id: packet-ip.c,v 1.109 2000/12/08 22:53:08 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -1224,7 +1224,7 @@ dissect_icmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
case ICMP_MASKREQ:
case ICMP_MASKREPLY:
- proto_tree_add_text(icmp_tree, tvb, 8, 4, "Address mask: %s (0x%8x)",
+ proto_tree_add_text(icmp_tree, tvb, 8, 4, "Address mask: %s (0x%08x)",
ip_to_str(tvb_get_ptr(tvb, 8, 4)), tvb_get_ntohl(tvb, 8));
break;
}