Add an additional "protocol index" argument to "{old_}dissector_add()",
[obnox/wireshark/wip.git] / packet-ntp.c
index 55d381805ea93d8c6496a1960fd13920ee0c595d..31a39dfb4a55283540f6fa6edc936840b92b647a 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for NTP packet dissection
  * Copyright 1999, Nathan Neulinger <nneul@umr.edu>
  *
- * $Id: packet-ntp.c,v 1.23 2001/01/07 01:47:37 guy Exp $
+ * $Id: packet-ntp.c,v 1.24 2001/01/09 06:31:39 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
@@ -502,6 +502,6 @@ proto_register_ntp(void)
 void
 proto_reg_handoff_ntp(void)
 {
-       dissector_add("udp.port", UDP_PORT_NTP, dissect_ntp);
-       dissector_add("tcp.port", TCP_PORT_NTP, dissect_ntp);
+       dissector_add("udp.port", UDP_PORT_NTP, dissect_ntp, proto_ntp);
+       dissector_add("tcp.port", TCP_PORT_NTP, dissect_ntp, proto_ntp);
 }