diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-11-02 07:06:07 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-11-02 07:06:07 +0000 |
commit | 95b1c8256e39444e5894a7208ace74cca963cd26 (patch) | |
tree | accadf24837e127a7beb9b32c35713d972f5d810 /packet-ip.c | |
parent | 95cb4ddd732c811f3c9e578619f9423a58ccb745 (diff) |
Format the IP header length as an unsigned quantity.
svn path=/trunk/; revision=965
Diffstat (limited to 'packet-ip.c')
-rw-r--r-- | packet-ip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-ip.c b/packet-ip.c index 0f955baf0c..0645ae4505 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.60 1999/11/02 05:38:51 guy Exp $ + * $Id: packet-ip.c,v 1.61 1999/11/02 07:06:07 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -827,7 +827,7 @@ dissect_ip(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { proto_tree_add_item(ip_tree, hf_ip_version, offset, 1, hi_nibble(iph.ip_v_hl)); proto_tree_add_item_format(ip_tree, hf_ip_hdr_len, offset, 1, hlen, - "Header length: %d bytes", hlen); + "Header length: %u bytes", hlen); tf = proto_tree_add_item_format(ip_tree, hf_ip_tos, offset + 1, 1, iph.ip_tos, "Type of service: 0x%02x (%s)", iph.ip_tos, val_to_str( IPTOS_TOS(iph.ip_tos), iptos_vals, "Unknown") ); |