]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-netbios.c
print-802_11: cleanup handle_deauth()
[tcpdump] / print-netbios.c
index 98331d991ee013d754fdc4c32295c56d2329dccd..664d568a844358baa4dea654f7630d6d1074e03f 100644 (file)
  * Contributed by Brad Parker ([email protected]).
  */
 
-#ifndef lint
-static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-netbios.c,v 1.13 1999-11-21 09:36:57 fenner Exp $";
-#endif
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
-#include <sys/param.h>
-#include <sys/socket.h>
+#include <tcpdump-stdinc.h>
 
-#include <netinet/in.h>
-#include <netinet/in_systm.h>
-#include <netinet/ip.h>
-#include <netinet/ip_var.h>
-#include <netinet/udp.h>
-#include <netinet/udp_var.h>
-#include <netinet/tcp.h>
-#include <netinet/tcpip.h>
-
-#ifdef __STDC__
 #include <stdlib.h>
-#endif
 #include <stdio.h>
 #include <string.h>
 
 #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.
  */