diff options
author | Guy Harris <gharris@sonic.net> | 2021-10-11 13:42:58 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2021-10-11 20:44:41 +0000 |
commit | c2b6a27e97dd8ff958cc4bb82684a70db18d2d29 (patch) | |
tree | 7df4c7ba692ee0a24c66c5f037395b27187607cc | |
parent | 9f92da75b80619b8df1d2780e91f4fa10dab64dd (diff) |
autosar_nm: get rid of unused protocol IDs.
We fetch the protocol IDs for several protocols, but use none of them.
Get rid of them.
-rw-r--r-- | epan/dissectors/packet-autosar-nm.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/epan/dissectors/packet-autosar-nm.c b/epan/dissectors/packet-autosar-nm.c index cc228e01ed..049ea9b6ac 100644 --- a/epan/dissectors/packet-autosar-nm.c +++ b/epan/dissectors/packet-autosar-nm.c @@ -40,10 +40,6 @@ typedef struct _user_data_field_t { } user_data_field_t; static int proto_autosar_nm = -1; -static int proto_can = -1; -static int proto_canfd = -1; -static int proto_caneth = -1; -static int proto_udp = -1; static dissector_handle_t nm_handle; static dissector_handle_t nm_handle_can; @@ -737,11 +733,6 @@ void proto_reg_handoff_autosar_nm(void) nm_handle_can = create_dissector_handle(dissect_autosar_nm_can, proto_autosar_nm); dissector_add_for_decode_as("can.subdissector", nm_handle_can); - proto_can = proto_get_id_by_filter_name("can"); - proto_canfd = proto_get_id_by_filter_name("canfd"); - proto_caneth = proto_get_id_by_filter_name("caneth"); - proto_udp = proto_get_id_by_filter_name("udp"); - /* heuristics default on since they do nothing without IDs being configured */ heur_dissector_add("can", dissect_autosar_nm_can_heur, "AUTOSAR_NM_Heuristic", "autosar_nm_can_heur", proto_autosar_nm, HEURISTIC_ENABLE); |