diff options
author | nneul <nneul@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-11-15 14:17:20 +0000 |
---|---|---|
committer | nneul <nneul@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-11-15 14:17:20 +0000 |
commit | 66e44d32e57b7b3574aa42ea38b4295c937b238c (patch) | |
tree | d5fecec4094c54b28370c295bafc91e9a3858828 /packet-nlm.c | |
parent | ca4bb6a9f01a52e948bcdba0a713865a9a0c23ea (diff) |
Uwe Girlich's patches for nfs,mount,portmap and addition of nlm.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1034 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-nlm.c')
-rw-r--r-- | packet-nlm.c | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/packet-nlm.c b/packet-nlm.c new file mode 100644 index 0000000000..d685ea63cd --- /dev/null +++ b/packet-nlm.c @@ -0,0 +1,85 @@ +/* packet-nlm.c + * Routines for nlm dissection + * + * $Id: packet-nlm.c,v 1.1 1999/11/15 14:17:19 nneul Exp $ + * + * Ethereal - Network traffic analyzer + * By Gerald Combs <gerald@unicom.net> + * Copyright 1998 Gerald Combs + * + * Copied from packet-mount.c + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + + +#ifdef HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif + + +#include "packet-rpc.h" +#include "packet-nlm.h" + + +static int proto_nlm = -1; + + +/* proc number, "proc name", dissect_request, dissect_reply */ +/* NULL as function pointer means: take the generic one. */ +/* NLM protocol version 3 */ +const vsff nlm3_proc[] = { + { 0, "NULL", NULL, NULL }, + { 1, "TEST", NULL, NULL }, + { 2, "LOCK", NULL, NULL }, + { 3, "CANCEL", NULL, NULL }, + { 4, "UNLOCK", NULL, NULL }, + { 5, "GRANTED", NULL, NULL }, + { 6, "TEST_MSG", NULL, NULL }, + { 7, "LOCK_MSG", NULL, NULL }, + { 8, "CANCEL_MSG", NULL, NULL }, + { 9, "UNLOCK_MSG", NULL, NULL }, + { 10, "GRANTED_MSG", NULL, NULL }, + { 11, "TEST_RES", NULL, NULL }, + { 12, "LOCK_RES", NULL, NULL }, + { 13, "CANCEL_RES", NULL, NULL }, + { 14, "UNLOCK_RES", NULL, NULL }, + { 15, "GRANTED_RES", NULL, NULL }, + { 20, "SHARE", NULL, NULL }, + { 21, "UNSHARE", NULL, NULL }, + { 22, "NM_LOCK", NULL, NULL }, + { 23, "FREE_ALL", NULL, NULL }, + { 0, NULL, NULL, NULL } +}; +/* end of NLM protocol version 3 */ + + +void +proto_register_nlm(void) +{ + proto_nlm = proto_register_protocol("Network Lock Manager Protocol", "NLM"); + + /* Register the protocol as RPC */ + rpc_init_prog(proto_nlm, NLM_PROGRAM, ETT_NLM); + /* Register the procedure table */ + rpc_init_proc_table(NLM_PROGRAM, 3, nlm3_proc); +} + + |