Made BPF disassembly in wiretap.c a bit easier to read.

svn path=/trunk/; revision=292
This commit is contained in:
Gilbert Ramirez 1999-05-19 13:49:35 +00:00
parent 2b29a6bcad
commit caf9c3e964
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
May 12, 1999
Guy added support for Netmon 2.0 files.
March 1, 1999
Added first code for display filters.

View File

@ -176,7 +176,7 @@ bpf_image(struct bpf_instruction *p, int n)
case BPF_JMP|BPF_JEQ|BPF_K:
op = "jeq";
fmt = "#0x%x";
fmt = "#0x%08x";
break;
case BPF_JMP|BPF_JSET|BPF_K:
@ -266,7 +266,7 @@ bpf_image(struct bpf_instruction *p, int n)
case BPF_ALU|BPF_AND|BPF_K:
op = "and";
fmt = "#0x%x";
fmt = "#0x%08x";
break;
case BPF_ALU|BPF_OR|BPF_K: