From Sven Eckelmann:

Just forgot to set inited variable in reg_handoff_bat_*().

svn path=/trunk/; revision=25689
This commit is contained in:
Jaap Keuter 2008-07-09 19:10:54 +00:00
parent e957d8ad1a
commit 0f199f4bff
4 changed files with 10 additions and 5 deletions

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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();
}