Main Page Modules Data Structures File List Data Fields Globals Related Pages

# bpf_insn Struct Reference
[Packet.dll definitions and data structures]

A single BPF pseudo-instruction. More...

`#include <Packet32.h>`

## Data Fields
USHORT | code
| Instruction type and addressing mode.
UCHAR | jt
| Jump if true.
UCHAR | jf
| Jump if false.
int | k
| Generic field used for various purposes.

## Detailed Description

A single BPF pseudo-instruction.

bpf_insn contains a single instruction for the BPF register-machine. It is used to send a filter program to the driver.

Definition at line 113 of file Packet32.h.

## Field Documentation

USHORT code

| Instruction type and addressing mode. Definition at line 114 of file Packet32.h. Referenced by bpf_dump(), BPFtoX86(), and daemon_unpackapplyfilter().

UCHAR jf

| Jump if false. Definition at line 116 of file Packet32.h. Referenced by bpf_dump(), BPFtoX86(), and daemon_unpackapplyfilter().

UCHAR jt

| Jump if true. Definition at line 115 of file Packet32.h. Referenced by bpf_dump(), BPFtoX86(), and daemon_unpackapplyfilter().

int k

| Generic field used for various purposes. Definition at line 117 of file Packet32.h. Referenced by bpf_dump(), BPFtoX86(), and daemon_unpackapplyfilter().

The documentation for this struct was generated from the following file:

- Packet32.h

documentation. Copyright (c) 2002-2003 Politecnico di Torino. All rights reserved.