Ethereal-dev: [Ethereal-dev] wlan dissector

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Thomas Sillaber" <Thomas.Sillaber@xxxxxx>
Date: Thu, 29 Dec 2005 12:41:26 +0100 (MET)
Hello List,

I'm developing a Ethereal plugin to decode the Cisco QBSS Values
(wlan_mgt.tag.number==11) and Cisco Version 2 CCA QBSS (wlan_mgt.tag.number
==221). The plugin compiles without any errors but ethereal crashes when
trying to load the plugin. Here's my register routine:

void
proto_reg_handoff_qbss(void)
{
	static int qbss_initialized = FALSE;
    static dissector_handle_t qbss_handle;
     
  if(!qbss_initialized) {
    qbss_handle = create_dissector_handle(dissect_qbss,proto_qbss);
    qbss_initialized = TRUE;
  } else {
    dissector_delete("wlan_mgt.tag.number",QBSS_TAG,qbss_handle);
  }
                           
  dissector_add("wlan_mgt.tag.number",QBSS_TAG,qbss_handle);
}	


When I replace the wlan_mgt.tag.number with udp.port then the plugin loads
without a problem.

Is there a special way to dissect wlan traffic?

Thanks

Thomas


-- 
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse f�r Mail, Message, More +++