From 0e7c1de08a9e6b453b47c60a698a24387d63719a Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 3 Jan 2001 06:56:03 +0000 Subject: Have "proto_register_protocol()" build a list of data structures for protocols, in addition to adding structures to the list of filterable fields. Give it an extra argument that specifies a "short name" for the protocol, for use in such places as pinfo->current_proto; the dialog box for constructing filters; the preferences tab for the protocol; and so on (although we're not yet using it in all those places). Make the preference name that appears in the preferences file and the command line for the DIAMETER protocol "diameter", not "Diameter"; the convention is that the name in question be all-lower-case. Make some routines and variables that aren't exported static. Update a comment in the ICP dissector to make it clear that the dissector won't see fragments other than the first fragment of a fragmented datagram. svn path=/trunk/; revision=2810 --- packet-nbns.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'packet-nbns.c') diff --git a/packet-nbns.c b/packet-nbns.c index 2bd7aa04bb..035b0888da 100644 --- a/packet-nbns.c +++ b/packet-nbns.c @@ -4,7 +4,7 @@ * Gilbert Ramirez * Much stuff added by Guy Harris * - * $Id: packet-nbns.c,v 1.48 2000/11/19 16:58:57 gerald Exp $ + * $Id: packet-nbns.c,v 1.49 2001/01/03 06:55:30 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -1754,13 +1754,15 @@ proto_register_nbt(void) &ett_nbss_flags, }; - proto_nbns = proto_register_protocol("NetBIOS Name Service", "nbns"); + proto_nbns = proto_register_protocol("NetBIOS Name Service", "NBNS", "nbns"); proto_register_field_array(proto_nbns, hf_nbns, array_length(hf_nbns)); - proto_nbdgm = proto_register_protocol("NetBIOS Datagram Service", "nbdgm"); + proto_nbdgm = proto_register_protocol("NetBIOS Datagram Service", + "NBDS", "nbdgm"); proto_register_field_array(proto_nbdgm, hf_nbdgm, array_length(hf_nbdgm)); - proto_nbss = proto_register_protocol("NetBIOS Session Service", "nbss"); + proto_nbss = proto_register_protocol("NetBIOS Session Service", + "NBSS", "nbss"); proto_register_field_array(proto_nbss, hf_nbss, array_length(hf_nbss)); proto_register_subtree_array(ett, array_length(ett)); -- cgit v1.2.3