diff options
author | Bill Meier <wmeier@newsguy.com> | 2008-09-26 22:07:45 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2008-09-26 22:07:45 +0000 |
commit | c3ea1560bdfb42902824fedb465ccb137b36a313 (patch) | |
tree | 5462bb9beb194a7eec24261edcbb2a50952443ce /epan/dissectors/packet-roofnet.c | |
parent | ffa7320de25b5bcb606b76a3cfd33bae52a2eab4 (diff) |
Minor cleanup related to proto_register and proto_reg_handoff
svn path=/trunk/; revision=26281
Diffstat (limited to 'epan/dissectors/packet-roofnet.c')
-rw-r--r-- | epan/dissectors/packet-roofnet.c | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/epan/dissectors/packet-roofnet.c b/epan/dissectors/packet-roofnet.c index 1b8e813b6f..acfeb3e25f 100644 --- a/epan/dissectors/packet-roofnet.c +++ b/epan/dissectors/packet-roofnet.c @@ -354,20 +354,16 @@ void proto_register_roofnet(void) void proto_reg_handoff_roofnet(void) { - static gboolean initalised= FALSE; static dissector_handle_t roofnet_handle; - if (!initalised) { - /* Until now there is no other option than having an IPv4 payload (maybe - * extended one day to IPv6 or other?) */ - ip_handle = find_dissector("ip"); - roofnet_handle = create_dissector_handle(dissect_roofnet, proto_roofnet); - /* I did not put the type numbers in the ethertypes.h as they only are - * experimental and not official */ - dissector_add("ethertype", 0x0641, roofnet_handle); - dissector_add("ethertype", 0x0643, roofnet_handle); - dissector_add("ethertype", 0x0644, roofnet_handle); - dissector_add("ethertype", 0x0645, roofnet_handle); - initalised= TRUE; - } + /* Until now there is no other option than having an IPv4 payload (maybe + * extended one day to IPv6 or other?) */ + ip_handle = find_dissector("ip"); + roofnet_handle = create_dissector_handle(dissect_roofnet, proto_roofnet); + /* I did not put the type numbers in the ethertypes.h as they only are + * experimental and not official */ + dissector_add("ethertype", 0x0641, roofnet_handle); + dissector_add("ethertype", 0x0643, roofnet_handle); + dissector_add("ethertype", 0x0644, roofnet_handle); + dissector_add("ethertype", 0x0645, roofnet_handle); } |