diff options
Diffstat (limited to 'epan/dissectors/packet-gnutella.c')
-rw-r--r-- | epan/dissectors/packet-gnutella.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/epan/dissectors/packet-gnutella.c b/epan/dissectors/packet-gnutella.c index 79a9e9359a..a078e908c3 100644 --- a/epan/dissectors/packet-gnutella.c +++ b/epan/dissectors/packet-gnutella.c @@ -732,9 +732,7 @@ void proto_register_gnutella(void) { &ett_gnutella, }; - proto_gnutella = proto_register_protocol("Gnutella Protocol", - "GNUTELLA", - "gnutella"); + proto_gnutella = proto_register_protocol("Gnutella Protocol", "GNUTELLA", "gnutella"); proto_register_field_array(proto_gnutella, hf, array_length(hf)); @@ -744,9 +742,8 @@ void proto_register_gnutella(void) { void proto_reg_handoff_gnutella(void) { dissector_handle_t gnutella_handle; - gnutella_handle = create_dissector_handle(dissect_gnutella, - proto_gnutella); - dissector_add_uint("tcp.port", GNUTELLA_TCP_PORT, gnutella_handle); + gnutella_handle = create_dissector_handle(dissect_gnutella, proto_gnutella); + dissector_add_uint_with_preference("tcp.port", GNUTELLA_TCP_PORT, gnutella_handle); } /* |