]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-netbios.c
Merge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdump
[tcpdump] / print-netbios.c
index 812226400846f9368102dacffdfe666d28faa8ea..a55a8afc9035b9627ce467fb3ac2cece800c189c 100644 (file)
  */
 
 #ifndef lint
-static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-netbios.c,v 1.17 2000-09-29 04:58:43 guy Exp $";
+static const char rcsid[] _U_ =
+    "@(#) $Header: /tcpdump/master/tcpdump/print-netbios.c,v 1.20 2003-11-16 09:36:29 guy Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
-#include <sys/param.h>
-#include <sys/socket.h>
-
-#include <netinet/in.h>
+#include <tcpdump-stdinc.h>
 
 #include <stdlib.h>
 #include <stdio.h>
@@ -42,9 +39,18 @@ static const char rcsid[] =
 
 #include "interface.h"
 #include "addrtoname.h"
-#include "netbios.h"
 #include "extract.h"
 
+struct p8022Hdr {
+    u_char     dsap;
+    u_char     ssap;
+    u_char     flags;
+};
+
+#define        p8022Size       3               /* min 802.2 header size */
+
+#define UI             0x03            /* 802.2 flags */
+
 /*
  * Print NETBIOS packets.
  */