aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/snmp
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-12-08 21:06:20 -0500
committerMichael Mann <mmann78@netscape.net>2015-12-09 03:12:23 +0000
commita391a70b3b05c3a3c95bcb9020b37adb6c0af010 (patch)
tree5ecb0fd83c3dc0216c96bb429188296302edcdb7 /asn1/snmp
parent1a1893ad54a402bda3b77262ecaf68cfe9831368 (diff)
"new" dissector API -> dissector API for ASN.1 dissectors.
Change-Id: I7b794cba2feda2cae40411e2b1cb9fb091d08220 Reviewed-on: https://code.wireshark.org/review/12480 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'asn1/snmp')
-rw-r--r--asn1/snmp/packet-snmp-template.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/asn1/snmp/packet-snmp-template.c b/asn1/snmp/packet-snmp-template.c
index 1bc8f79fd2..59baf9876a 100644
--- a/asn1/snmp/packet-snmp-template.c
+++ b/asn1/snmp/packet-snmp-template.c
@@ -2530,7 +2530,7 @@ void proto_register_snmp(void) {
/* Register protocol */
proto_snmp = proto_register_protocol(PNAME, PSNAME, PFNAME);
- new_register_dissector("snmp", dissect_snmp, proto_snmp);
+ register_dissector("snmp", dissect_snmp, proto_snmp);
/* Register fields and subtrees */
proto_register_field_array(proto_snmp, hf, array_length(hf));
@@ -2599,7 +2599,7 @@ void proto_reg_handoff_snmp(void) {
dissector_add_uint("ipx.socket", IPX_SOCKET_SNMP_SINK, snmp_handle);
dissector_add_uint("hpext.dxsap", HPEXT_SNMP, snmp_handle);
- snmp_tcp_handle = new_create_dissector_handle(dissect_snmp_tcp, proto_snmp);
+ snmp_tcp_handle = create_dissector_handle(dissect_snmp_tcp, proto_snmp);
dissector_add_uint("tcp.port", TCP_PORT_SNMP, snmp_tcp_handle);
dissector_add_uint("tcp.port", TCP_PORT_SNMP_TRAP, snmp_tcp_handle);
@@ -2607,10 +2607,10 @@ void proto_reg_handoff_snmp(void) {
/* SNMPv2-MIB sysDescr "1.3.6.1.2.1.1.1.0" */
dissector_add_string("snmp.variable_oid", "1.3.6.1.2.1.1.1.0",
- new_create_dissector_handle(dissect_snmp_variable_string, proto_snmp));
+ create_dissector_handle(dissect_snmp_variable_string, proto_snmp));
/* SNMPv2-MIB::sysName.0 (1.3.6.1.2.1.1.5.0) */
dissector_add_string("snmp.variable_oid", "1.3.6.1.2.1.1.5.0",
- new_create_dissector_handle(dissect_snmp_variable_string, proto_snmp));
+ create_dissector_handle(dissect_snmp_variable_string, proto_snmp));
/*
* Process preference settings.
@@ -2642,7 +2642,7 @@ proto_reg_handoff_smux(void)
{
dissector_handle_t smux_handle;
- smux_handle = new_create_dissector_handle(dissect_smux, proto_smux);
+ smux_handle = create_dissector_handle(dissect_smux, proto_smux);
dissector_add_uint("tcp.port", TCP_PORT_SMUX, smux_handle);
}