aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-12-14 23:25:17 +0000
committerGuy Harris <guy@alum.mit.edu>1999-12-14 23:25:17 +0000
commit12610535b4fcb5aaf2835bd4edbf97a4e9f23452 (patch)
treec9f651ce940c97d5a0afdbe513da557290f680ca
parentf65a51267690595badadaeed2be845afa4a58414 (diff)
Patches from Bert Driehuis to:
1) fix the check for the IE identifier to check all bits, including the topmost bit; 2) print all fields in the Date IE as 2 digits. svn path=/trunk/; revision=1335
-rw-r--r--packet-q931.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-q931.c b/packet-q931.c
index 136bca483e..fc86c74710 100644
--- a/packet-q931.c
+++ b/packet-q931.c
@@ -2,7 +2,7 @@
* Routines for Q.931 frame disassembly
* Guy Harris <guy@alum.mit.edu>
*
- * $Id: packet-q931.c,v 1.11 1999/11/25 22:49:01 guy Exp $
+ * $Id: packet-q931.c,v 1.12 1999/12/14 23:25:17 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -140,7 +140,7 @@ static const value_string q931_message_type_vals[] = {
/*
* Single-octet IEs.
*/
-#define Q931_IE_SO_IDENTIFIER_MASK 0x70 /* IE identifier mask */
+#define Q931_IE_SO_IDENTIFIER_MASK 0xf0 /* IE identifier mask */
#define Q931_IE_SO_IDENTIFIER_SHIFT 4 /* IE identifier shift */
#define Q931_IE_SO_IE_MASK 0x0F /* IE mask */
@@ -1386,7 +1386,7 @@ dissect_q931_date_time_ie(const u_char *pd, int offset, int len,
* 1-origin? Q.931 doesn't say....
*/
proto_tree_add_text(tree, offset, 6,
- "Date/time: %u-%u-%u %u:%u:%u",
+ "Date/time: %02u-%02u-%02u %02u:%02u:%02u",
pd[offset + 0], pd[offset + 1], pd[offset + 2],
pd[offset + 3], pd[offset + 4], pd[offset + 5]);
}