hello,
does it looks cool?
please cc. not on list.
adam
--
Adam
http://www.eax.com The Supreme Headquarters of the 32 bit registers
This is patch against ethereal (http://www.ethereal.com./)
Based on cvs tree as of : Fri Feb 22 01:30:16 EST 2002
This patch adds more defintions as to what sort of
types EAP protocol support.
it also fixes off-by-one bug when displaying Code of EAP message.
Adam Sulmicki <adam@xxxxxxxxxxxx>
Fri Feb 22 01:30:16 EST 2002
http://www.eax.com/patches/
-------------------------------------------------------------------------------
Index: packet-eap.c
===================================================================
RCS file: /cvsroot/ethereal/packet-eap.c,v
retrieving revision 1.7
diff -u -r1.7 packet-eap.c
--- packet-eap.c 2002/02/17 00:51:19 1.7
+++ packet-eap.c 2002/02/22 06:20:06
@@ -67,13 +67,20 @@
};
static const value_string eap_type_vals[] = {
- { 1, "Identity" },
- { 2, "Notification" },
- { 3, "Nak (Response only)" },
- { 4, "MD5-Challenge" },
- { 5, "One-Time Password" },
- { 6, "Generic Token Card" },
- { 0, NULL }
+ { 0x1, "Identity" },
+ { 0x2, "Notification" },
+ { 0x3, "Nak (Response only)" },
+ { 0x4, "MD5-Challenge" },
+ { 0x5, "One-Time Password(OTP)(RFC 1938)" },
+ { 0x6, "Generic Token Card" },
+ { 0x7, NULL },
+ { 0x8, NULL },
+ { 0x9, NULL },
+ { 0xa, NULL },
+ { 0xb, NULL },
+ { 0xc, NULL },
+ { 0xd, "EAP/TLS (RFC2716)" }
+
};
void
@@ -102,7 +109,7 @@
ti = proto_tree_add_item(tree, proto_eap, tvb, 0, len, FALSE);
eap_tree = proto_item_add_subtree(ti, ett_eap);
- proto_tree_add_text(eap_tree, tvb, 0, 0, "Code: %s (%u) ",
+ proto_tree_add_text(eap_tree, tvb, 0, 1, "Code: %s (%u) ",
val_to_str(eaph.eap_code, eap_code_vals, "Unknown"),
eaph.eap_code);