From Sven Eckelmann:
Just forgot to set inited variable in reg_handoff_bat_*(). svn path=/trunk/; revision=25689
This commit is contained in:
parent
e957d8ad1a
commit
0f199f4bff
|
@ -162,6 +162,8 @@ void reg_handoff_bat_batman(void)
|
|||
if (!inited) {
|
||||
batman_handle = create_dissector_handle(dissect_bat_batman, proto_bat_plugin);
|
||||
data_handle = find_dissector("data");
|
||||
|
||||
inited = TRUE;
|
||||
} else {
|
||||
dissector_delete("udp.port", udp_port, batman_handle);
|
||||
}
|
||||
|
|
|
@ -86,6 +86,8 @@ void reg_handoff_bat_gw(void)
|
|||
gw_handle = create_dissector_handle(dissect_bat_gw, proto_bat_plugin);
|
||||
ip_handle = find_dissector("ip");
|
||||
data_handle = find_dissector("data");
|
||||
|
||||
inited = TRUE;
|
||||
} else {
|
||||
dissector_delete("udp.port", udp_port, gw_handle);
|
||||
}
|
||||
|
|
|
@ -136,6 +136,8 @@ void reg_handoff_bat_vis(void)
|
|||
if (!inited) {
|
||||
vis_handle = create_dissector_handle(dissect_bat_vis, proto_bat_plugin);
|
||||
data_handle = find_dissector("data");
|
||||
|
||||
inited = TRUE;
|
||||
} else {
|
||||
dissector_delete("udp.port", udp_port, vis_handle);
|
||||
}
|
||||
|
|
|
@ -60,11 +60,10 @@ void proto_reg_handoff_bat(void)
|
|||
if (!inited) {
|
||||
bat_tap = register_tap("batman");
|
||||
bat_follow_tap = register_tap("batman_follow");
|
||||
|
||||
reg_handoff_bat_batman();
|
||||
reg_handoff_bat_gw();
|
||||
reg_handoff_bat_vis();
|
||||
|
||||
inited = TRUE;
|
||||
}
|
||||
|
||||
reg_handoff_bat_batman();
|
||||
reg_handoff_bat_gw();
|
||||
reg_handoff_bat_vis();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue