diff options
Diffstat (limited to 'epan/dissectors/packet-kingfisher.c')
-rw-r--r-- | epan/dissectors/packet-kingfisher.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/epan/dissectors/packet-kingfisher.c b/epan/dissectors/packet-kingfisher.c index d6cc0f4b1c..a934871f60 100644 --- a/epan/dissectors/packet-kingfisher.c +++ b/epan/dissectors/packet-kingfisher.c @@ -34,12 +34,12 @@ void proto_reg_handoff_kingfisher(void); #define SUPPORT_KINGFISHER_SERIES_2 -#define UDP_PORT_KINGFISHER 4058 #ifdef SUPPORT_KINGFISHER_SERIES_2 #define TCP_PORT_KINGFISHER_RANGE "473,4058" /* 473 not IANA registered */ -#define UDP_PORT_KINGFISHER_OLD 473 +#define UDP_PORT_KINGFISHER_RANGE "473,4058" /* 473 not IANA registered */ #else #define TCP_PORT_KINGFISHER_RANGE "4058" +#define UDP_PORT_KINGFISHER_RANGE "4058" #endif static int proto_kingfisher = -1; @@ -382,15 +382,12 @@ proto_register_kingfisher( void ) void proto_reg_handoff_kingfisher( void ) { - dissector_handle_t kingfisher_handle=NULL; + dissector_handle_t kingfisher_handle; kingfisher_handle = create_dissector_handle(dissect_kingfisher_heur, proto_kingfisher); dissector_add_uint_range_with_preference("tcp.port", TCP_PORT_KINGFISHER_RANGE, kingfisher_handle); - dissector_add_uint("udp.port", UDP_PORT_KINGFISHER, kingfisher_handle); + dissector_add_uint_range_with_preference("udp.port", UDP_PORT_KINGFISHER_RANGE, kingfisher_handle); -#ifdef SUPPORT_KINGFISHER_SERIES_2 - dissector_add_uint("udp.port", UDP_PORT_KINGFISHER_OLD, kingfisher_handle); -#endif kingfisher_conv_handle = create_dissector_handle(dissect_kingfisher_conv, proto_kingfisher); } |