aboutsummaryrefslogtreecommitdiffstats
path: root/packet-eap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-02-22 21:51:18 +0000
committerGuy Harris <guy@alum.mit.edu>2002-02-22 21:51:18 +0000
commit1157a3998b902eea4d6792452cf95ae455491020 (patch)
tree532aa1157ad315f84d07fb6c21e3360d0440babd /packet-eap.c
parentc786f129c03916657559631c8c4d68ba404cb072 (diff)
Get rid of an unnecessary "volatile".
Give the type field a value_string array, and use that field when putting the type into the protocol tree. Display the data under the EAPOL tree, as it's part of the EAPOL PDU. Just use "next_tvb" as the tvbuff for the data; don't create a new one that, the different fourth argument to "tvb_new_subset()" nonwithstanding, refers to the same data as "next_tvb". Call the EAP dissector through a handle. Nobody directly calls the EAP dissector any more, they all call it through handles; make it static. svn path=/trunk/; revision=4787
Diffstat (limited to 'packet-eap.c')
-rw-r--r--packet-eap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-eap.c b/packet-eap.c
index dc7a64aa41..80f2742f2d 100644
--- a/packet-eap.c
+++ b/packet-eap.c
@@ -2,7 +2,7 @@
* Routines for EAP Extensible Authentication Protocol header disassembly,
* RFC 2284
*
- * $Id: packet-eap.c,v 1.9 2002/02/22 21:31:48 guy Exp $
+ * $Id: packet-eap.c,v 1.10 2002/02/22 21:51:18 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -81,7 +81,7 @@ static const value_string eap_type_vals[] = {
{ 0, NULL }
};
-void
+static void
dissect_eap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
e_eap eaph;