Move comments to the right places.

This commit is contained in:
Jung-uk Kim 2008-08-28 22:41:31 +00:00
parent 882a54f65f
commit eaa830ed41
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182417

View File

@ -133,17 +133,17 @@ bpf_validate(const struct bpf_insn *f, int len)
return (1);
for (i = 0; i < len; ++i) {
/*
* Check that that jumps are forward, and within
* the code block.
*/
p = &f[i];
/*
* Check that the instruction is valid.
* Check that the code is valid.
*/
if ((p->code & 0xff00) ||
!(bpf_code_map[p->code >> 4] & (1 << (p->code & 0xf))))
return (0);
/*
* Check that that jumps are forward, and within
* the code block.
*/
if (BPF_CLASS(p->code) == BPF_JMP) {
register int from = i + 1;