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

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

A BPF pseudo-assembly program. More...

`#include <Packet32.h>`

## Data Fields
UINT | bf_len
| Indicates the number of instructions of the program, i.e. the number of struct bpf_insn that will follow.
bpf_insn * | bf_insns
| A pointer to the first instruction of the program.

## Detailed Description

A BPF pseudo-assembly program.

The program will be injected in the kernel by the PacketSetBPF() function and applied to every incoming packet.

Definition at line 123 of file Packet32.h.

## Field Documentation

struct bpf_insn* bf_insns

| A pointer to the first instruction of the program. Definition at line 125 of file Packet32.h. Referenced by bpf_dump(), daemon_unpackapplyfilter(), PacketSetBpf(), pcap_compile(), pcap_freecode(), pcap_offline_filter(), and pcap_pack_bpffilter().

UINT bf_len

| Indicates the number of instructions of the program, i.e. the number of struct bpf_insn that will follow. Definition at line 124 of file Packet32.h. Referenced by bpf_dump(), daemon_unpackapplyfilter(), PacketSetBpf(), pcap_compile(), pcap_freecode(), pcap_pack_bpffilter(), and pcap_updatefilter_remote().

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

- Packet32.h

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