Wireshark-bugs: [Wireshark-bugs] [Bug 3970] New Dissector Plugin: CAPWAP Dissector
Date: Tue, 1 Sep 2009 13:15:07 -0700 (PDT)

--- Comment #4 from Bill Meier <[email protected]>  2009-09-01 13:15:06 PDT ---

1.  if (proto_capwap_... == -1) { ...

not required in proto_register... since proto_register... is called only once
during Wireshark startup.

2.  static const true_false_string capwap_wlan_bitmap = {
    "WLAN 0-15",
    "WLAN 0-15" 
};/* Fudging Wireshark */


3. static const true_false_string capwap_set_truth = {

not needed in a normal dissector. Use tfs_yes_no.  
(see epan/tfs.h and epan/tfs.c. #include tfs.h not req'd since it's included
via packet.h).

4. re:
> preference changes aren't processed until restart. Provide a function for
> that or tailor proto_reg_handoff_capwap() for the job.

See doc/readme.Developer

5. Just about all of the functions other than proto_register...() &
proto_reg_handoff...() should be static since they are presumably referenced
only within packet-capwap.c

Ditto for the value_strings

6. Are any of these #includes actually needed ?

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <time.h>

7.  Re:

Build Information:
Version 1.0.99 (SVN Rev 26051)

This is a quite old version of Wireshark.

Please provides diffs against a current development version of Wireshark for
any changes to existing files.


PS: Is there any particular reason this bug has been marked Private ?

Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.