forked from osmocom/wireshark
dvb-ci: register the dissector by name
Register the DVB-CI dissector by name in addition to linking it to the DVB-CI DLT. This makes it easier for fuzzshark to find the dissector. Change-Id: Ieda150a9ad573a59e2dfcce97a4a1b17a0d66d93 Reviewed-on: https://code.wireshark.org/review/36886 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Petri-Dish: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
53a313fff9
commit
183a0dfdd6
|
@ -796,6 +796,8 @@ WS_DLL_PUBLIC_DEF const value_string dvbci_event[] = {
|
|||
|
||||
static int proto_dvbci = -1;
|
||||
|
||||
static dissector_handle_t dvbci_handle;
|
||||
|
||||
static const gchar *dvbci_sek = NULL;
|
||||
static const gchar *dvbci_siv = NULL;
|
||||
static gboolean dvbci_dissect_lsc_msg = FALSE;
|
||||
|
@ -6317,15 +6319,14 @@ proto_register_dvbci(void)
|
|||
exported_pdu_tap = register_export_pdu_tap("DVB-CI");
|
||||
|
||||
register_shutdown_routine(dvbci_shutdown);
|
||||
|
||||
dvbci_handle = register_dissector("dvb-ci", dissect_dvbci, proto_dvbci);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
proto_reg_handoff_dvbci(void)
|
||||
{
|
||||
dissector_handle_t dvbci_handle;
|
||||
|
||||
dvbci_handle = create_dissector_handle(dissect_dvbci, proto_dvbci);
|
||||
dissector_add_uint("wtap_encap", WTAP_ENCAP_DVBCI, dvbci_handle);
|
||||
|
||||
data_handle = find_dissector("data");
|
||||
|
|
Loading…
Reference in New Issue