X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/f5fe14663d9ed32b7a995ed0924c04e705f74237..HEAD:/bpf_dump.c diff --git a/bpf_dump.c b/bpf_dump.c index 9bad38d3..2a55cf87 100644 --- a/bpf_dump.c +++ b/bpf_dump.c @@ -19,20 +19,19 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif +#include -#include +#include "netdissect-stdinc.h" #include #include "netdissect.h" +#include "interface.h" void 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; @@ -52,10 +51,6 @@ bpf_dump(const 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)); } }