aboutsummaryrefslogtreecommitdiffstats
path: root/packet-netbios.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-09-02 23:17:58 +0000
committerGuy Harris <guy@alum.mit.edu>1999-09-02 23:17:58 +0000
commitf9a1fea17cf070118b0ba4661720c4e3eea1007f (patch)
treec380ff69fcfe7f5e7ea7c4c1276ac78e85cccd4b /packet-netbios.h
parentc135be4e5367ebb5763576900a4b08beead2fc91 (diff)
Have the IPX code set "pi.len" and "pi.captured_len" based on the length
in the IPX header, and have the dissectors it calls use it rather than being passed the length as an argument. Treat both packet type 20 ("WAN Broadcast") and 4 ("IPX", although 3 is also "IPX", according to Network Monitor) as potentially being NetBIOS packets. The packet types for the IPX NetBIOS socket (0x0455) and the NWLink sockets (0x0551 and 0x0553) are different (perhaps because there's one socket for the 0x0455 NBIPX, so you have to do name service and datagram service and have the packet types distinguish them, but NWLink has separate sockets for name service and datagram service). The packet type for name service and for datagram service are at *different locations* in the packet, which is unfortunate if you want to use the packet type to distinguish name service and datagram service packets. Use the packet length, for now, to distinguish them, with socket 0x0455. Dissect datagram packets differently from name service packets. Export "packet-netbios.c"'s "netbios_add_name()" routine, and use it when dissecting NBIPX packets as well. Label NBIPX packets as "NBIPX" rather than "NetBIOS". svn path=/trunk/; revision=627
Diffstat (limited to 'packet-netbios.h')
-rw-r--r--packet-netbios.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/packet-netbios.h b/packet-netbios.h
new file mode 100644
index 0000000000..f9cd1c1161
--- /dev/null
+++ b/packet-netbios.h
@@ -0,0 +1,31 @@
+/* packet-netbios.c
+ * Declarations of public routines for NetBIOS protocol packet disassembly
+ * Jeff Foster <foste@woodward.com>
+ * Copyright 1999 Jeffrey C. Foster
+ *
+ * derived from the packet-nbns.c
+ *
+ * $Id: packet-netbios.h,v 1.1 1999/09/02 23:17:57 guy Exp $
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@zing.org>
+ * Copyright 1998 Gerald Combs
+ *
+ *
+ * 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.
+ */
+extern void netbios_add_name( char* label, const u_char *pd, int offset,
+ int nb_offset, proto_tree *tree);
+