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
This commit is contained in:
Guy Harris 2002-03-19 12:02:03 +00:00
parent adfba076ee
commit 44e195e9b7
1 changed files with 8 additions and 1 deletions

View File

@ -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);