X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/38a55e823f75cb6f77088592b27d19dd83f4e12d..HEAD:/bpf_dump.c diff --git a/bpf_dump.c b/bpf_dump.c index d928161e..2a55cf87 100644 --- a/bpf_dump.c +++ b/bpf_dump.c @@ -18,27 +18,20 @@ * 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.11 2000-06-18 11:12:59 assar Exp $ (LBL)"; -#endif -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif +#include -#include -#include +#include "netdissect-stdinc.h" -#include #include +#include "netdissect.h" #include "interface.h" void -bpf_dump(struct bpf_program *p, int option) +bpf_dump(const struct bpf_program *p, int option) { - struct bpf_insn *insn; + const struct bpf_insn *insn; int i; int n = p->bf_len; @@ -58,10 +51,6 @@ bpf_dump(struct bpf_program *p, int option) return; } for (i = 0; i < n; ++insn, ++i) { -#ifdef BDEBUG - extern int bids[]; - printf(bids[i] > 0 ? "[%02d]" : " -- ", bids[i] - 1); -#endif puts(bpf_image(insn, i)); } }