]> The Tcpdump Group git mirrors - tcpdump/blobdiff - bpf_dump.c
Use more the EXTRACT_U_1() macro (40/n)
[tcpdump] / bpf_dump.c
index 79ad5bb7c8eb433be997037aadbe0a178f7a2e2f..9bad38d387e00ae8321b93caff8b1170437eaf82 100644 (file)
  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
-#ifndef lint
-static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/bpf_dump.c,v 1.13 2000-12-09 02:58:45 fenner Exp $ (LBL)";
-#endif
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
-#include <sys/types.h>
-#include <sys/time.h>
+#include <netdissect-stdinc.h>
 
-#include <pcap.h>
 #include <stdio.h>
 
-#include "interface.h"
+#include "netdissect.h"
 
 void
-bpf_dump(struct bpf_program *p, int option)
+bpf_dump(const struct bpf_program *p, int option)
 {
        struct bpf_insn *insn;
        int i;