1/*-
2 * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from the Stanford/CMU enet packet filter,
6 * (net/enet.c) distributed as part of 4.3BSD, and code contributed
7 * to Berkeley by Steven McCanne and Van Jacobson both of Lawrence
8 * Berkeley Laboratory.
--- 391 unchanged lines hidden (view full) ---
400 mem[pc->k] = A;
401 continue;
402
403 case BPF_STX:
404 mem[pc->k] = X;
405 continue;
406
407 case BPF_JMP|BPF_JA:
408 pc += pc->k;
409 continue;
410
411 case BPF_JMP|BPF_JGT|BPF_K:
412 pc += (A > pc->k) ? pc->jt : pc->jf;
413 continue;
414
415 case BPF_JMP|BPF_JGE|BPF_K:
416 pc += (A >= pc->k) ? pc->jt : pc->jf;
--- 259 unchanged lines hidden ---
2 * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from the Stanford/CMU enet packet filter,
6 * (net/enet.c) distributed as part of 4.3BSD, and code contributed
7 * to Berkeley by Steven McCanne and Van Jacobson both of Lawrence
8 * Berkeley Laboratory.
--- 391 unchanged lines hidden (view full) ---
400 mem[pc->k] = A;
401 continue;
402
403 case BPF_STX:
404 mem[pc->k] = X;
405 continue;
406
407 case BPF_JMP|BPF_JA:
408 pc += pc->k;
409 continue;
410
411 case BPF_JMP|BPF_JGT|BPF_K:
412 pc += (A > pc->k) ? pc->jt : pc->jf;
413 continue;
414
415 case BPF_JMP|BPF_JGE|BPF_K:
416 pc += (A >= pc->k) ? pc->jt : pc->jf;
--- 259 unchanged lines hidden ---