diff options
Diffstat (limited to 'epan/dissectors/asn1/h248/packet-h248-template.c')
-rw-r--r-- | epan/dissectors/asn1/h248/packet-h248-template.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/epan/dissectors/asn1/h248/packet-h248-template.c b/epan/dissectors/asn1/h248/packet-h248-template.c index d4c18e4dcc..abe81546fb 100644 --- a/epan/dissectors/asn1/h248/packet-h248-template.c +++ b/epan/dissectors/asn1/h248/packet-h248-template.c @@ -837,7 +837,7 @@ void gcp_analyze_msg(proto_tree* gcp_tree, packet_info* pinfo, tvbuff_t* gcp_tvb static gboolean keep_persistent_data = FALSE; static guint global_udp_port = 2945; -static guint global_tcp_port = 2945; +#define H248_TCP_PORT 2945 static gboolean h248_desegment = TRUE; @@ -2383,11 +2383,6 @@ void proto_register_h248(void) { "Port to be decoded as h248", 10, &global_udp_port); - prefs_register_uint_preference(h248_module, "tcp_port", - "TCP port", - "Port to be decoded as h248", - 10, - &global_tcp_port); prefs_register_bool_preference(h248_module, "desegment", "Desegment H.248 over TCP", "Desegment H.248 messages that span more TCP segments", @@ -2406,31 +2401,23 @@ void proto_reg_handoff_h248(void) { static gboolean initialized = FALSE; static guint32 udp_port; - static guint32 tcp_port; if (!initialized) { dissector_add_uint("mtp3.service_indicator", MTP_SI_GCP, h248_handle); h248_term_handle = find_dissector_add_dependency("h248term", proto_h248); + dissector_add_uint_with_preference("tcp.port", H248_TCP_PORT, h248_tpkt_handle); initialized = TRUE; } else { if (udp_port != 0) dissector_delete_uint("udp.port", udp_port, h248_handle); - - if (tcp_port != 0) - dissector_delete_uint("tcp.port", tcp_port, h248_tpkt_handle); } udp_port = global_udp_port; - tcp_port = global_tcp_port; if (udp_port != 0) { dissector_add_uint("udp.port", udp_port, h248_handle); } - if (tcp_port != 0) { - dissector_add_uint("tcp.port", tcp_port, h248_tpkt_handle); - } - ss7pc_address_type = address_type_get_by_name("AT_SS7PC"); exported_pdu_tap = find_tap_id(EXPORT_PDU_TAP_NAME_LAYER_7); } |