Lines Matching defs:pc
201 * Execute the filter program starting at pc on the packet p
206 bpf_filter(const struct bpf_insn *pc, u_char *p, u_int wirelen, u_int buflen)
212 if (pc == 0)
218 --pc;
220 ++pc;
221 switch (pc->code) {
230 return (u_int)pc->k;
236 k = pc->k;
260 k = pc->k;
277 k = pc->k;
304 k = X + pc->k;
305 if (pc->k > buflen || X > buflen - pc->k ||
329 k = X + pc->k;
330 if (X > buflen || pc->k > buflen - X ||
349 k = X + pc->k;
350 if (pc->k >= buflen || X >= buflen - pc->k) {
368 k = pc->k;
383 X = (p[pc->k] & 0xf) << 2;
387 A = pc->k;
391 X = pc->k;
395 A = mem[pc->k];
399 X = mem[pc->k];
403 mem[pc->k] = A;
407 mem[pc->k] = X;
411 pc += pc->k;
415 pc += (A > pc->k) ? pc->jt : pc->jf;
419 pc += (A >= pc->k) ? pc->jt : pc->jf;
423 pc += (A == pc->k) ? pc->jt : pc->jf;
427 pc += (A & pc->k) ? pc->jt : pc->jf;
431 pc += (A > X) ? pc->jt : pc->jf;
435 pc += (A >= X) ? pc->jt : pc->jf;
439 pc += (A == X) ? pc->jt : pc->jf;
443 pc += (A & X) ? pc->jt : pc->jf;
481 A += pc->k;
485 A -= pc->k;
489 A *= pc->k;
493 A /= pc->k;
497 A &= pc->k;
501 A |= pc->k;
505 A <<= pc->k;
509 A >>= pc->k;