/* No SCTP port registered with IANA for S1AP yet */
#define SCTP_PORT_S1AP 0
-static dissector_handle_t nas_eps_handle=NULL;
+static dissector_handle_t nas_eps_handle;
#include "packet-s1ap-val.h"
if (!Initialized) {
s1ap_handle = find_dissector("s1ap");
+ nas_eps_handle = find_dissector("nas-eps");
dissector_add_handle("sctp.port", s1ap_handle); /* for "decode-as" */
Initialized=TRUE;
#include "packet-s1ap-dis-tab.c"
if (SctpPort != 0) {
dissector_add("sctp.port", SctpPort, s1ap_handle);
}
-
- nas_eps_handle = find_dissector("nas-eps");
}
/*--- proto_register_s1ap -------------------------------------------*/
/* No SCTP port registered with IANA for S1AP yet */
#define SCTP_PORT_S1AP 0
-static dissector_handle_t nas_eps_handle=NULL;
+static dissector_handle_t nas_eps_handle;
/*--- Included file: packet-s1ap-val.h ---*/
if (!Initialized) {
s1ap_handle = find_dissector("s1ap");
+ nas_eps_handle = find_dissector("nas-eps");
dissector_add_handle("sctp.port", s1ap_handle); /* for "decode-as" */
Initialized=TRUE;
/*--- End of included file: packet-s1ap-dis-tab.c ---*/
-#line 171 "packet-s1ap-template.c"
+#line 172 "packet-s1ap-template.c"
} else {
if (SctpPort != 0) {
dissector_delete("sctp.port", SctpPort, s1ap_handle);
if (SctpPort != 0) {
dissector_add("sctp.port", SctpPort, s1ap_handle);
}
-
- nas_eps_handle = find_dissector("nas-eps");
}
/*--- proto_register_s1ap -------------------------------------------*/
"s1ap.UnsuccessfulOutcome_value", HFILL }},
/*--- End of included file: packet-s1ap-hfarr.c ---*/
-#line 193 "packet-s1ap-template.c"
+#line 192 "packet-s1ap-template.c"
};
/* List of subtrees */
&ett_s1ap_UnsuccessfulOutcome,
/*--- End of included file: packet-s1ap-ettarr.c ---*/
-#line 199 "packet-s1ap-template.c"
+#line 198 "packet-s1ap-template.c"
};
module_t *s1ap_module;