Make the NetBIOS dissecting routines all take a pointer to the beginning
[obnox/wireshark/wip.git] / packet-netbios.h
1 /* packet-netbios.c
2  * Declarations of public routines for NetBIOS protocol packet disassembly
3  * Jeff Foster <foste@woodward.com>            
4  * Copyright 1999 Jeffrey C. Foster
5  * 
6  * derived from the packet-nbns.c
7  *
8  * $Id: packet-netbios.h,v 1.4 1999/11/30 07:45:42 guy Exp $
9  *
10  * Ethereal - Network traffic analyzer
11  * By Gerald Combs <gerald@zing.org>
12  * Copyright 1998 Gerald Combs
13  *
14  * 
15  * This program is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU General Public License
17  * as published by the Free Software Foundation; either version 2
18  * of the License, or (at your option) any later version.
19  * 
20  * This program is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23  * GNU General Public License for more details.
24  * 
25  * You should have received a copy of the GNU General Public License
26  * along with this program; if not, write to the Free Software
27  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
28  */
29
30 /* Length of NetBIOS names */
31 #define NETBIOS_NAME_LEN        16
32
33 extern int process_netbios_name(const u_char *name_ptr, char *name_ret);
34 extern int get_netbios_name(const u_char *data_ptr, int offset,
35     char *name_ret);
36 extern char *netbios_name_type_descr(int name_type);
37 extern gboolean netbios_add_name( char* label, const u_char *pd, int offset,
38     proto_tree *tree);