diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-03-19 12:02:03 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-03-19 12:02:03 +0000 |
commit | 44e195e9b78392ee86dffc6104f9e44c2a53fd4e (patch) | |
tree | 76aca7f81675d32fc52ac0c6f47ff47d436a08cf /packet-eap.c | |
parent | adfba076eeb1f719d72af7984501c1d8986d00d3 (diff) |
The data for EAP_TYPE_ID is just a string; display it with
"tvb_format_text()", as per Adam Sulmicki's suggestion.
svn path=/trunk/; revision=4984
Diffstat (limited to 'packet-eap.c')
-rw-r--r-- | packet-eap.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/packet-eap.c b/packet-eap.c index 84d92b0c83..f6192afa69 100644 --- a/packet-eap.c +++ b/packet-eap.c @@ -2,7 +2,7 @@ * Routines for EAP Extensible Authentication Protocol dissection * RFC 2284 * - * $Id: packet-eap.c,v 1.17 2002/03/19 11:33:08 guy Exp $ + * $Id: packet-eap.c,v 1.18 2002/03/19 12:02:03 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -193,6 +193,13 @@ dissect_eap_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, switch (eap_type) { + case EAP_TYPE_ID: + proto_tree_add_text(eap_tree, tvb, offset, size, + "Type-Data (%d byte%s) Value: %s", + size, plurality(size, "", "s"), + tvb_format_text(tvb, offset, size)); + break; + case EAP_TYPE_TLS: { guint8 flags = tvb_get_guint8(tvb, offset); |