Made BPF disassembly in wiretap.c a bit easier to read.
svn path=/trunk/; revision=292
This commit is contained in:
parent
2b29a6bcad
commit
caf9c3e964
|
@ -1,3 +1,6 @@
|
|||
May 12, 1999
|
||||
Guy added support for Netmon 2.0 files.
|
||||
|
||||
March 1, 1999
|
||||
Added first code for display filters.
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue