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

# jitter.c File Reference

`#include "stdarg.h"`
`#include "ntddk.h"`
`#include "ntiologc.h"`
`#include "ndis.h"`
`#include "packet.h"`
`#include "win_bpf.h"`

Go to the source code of this file.

## Functions
void | emit_lenght (binary_stream *stream, ULONG value, UINT len)
void | emit_code (binary_stream *stream, ULONG value, UINT len)
BPF_filter_function | BPFtoX86 (struct bpf_insn *prog, UINT nins, INT *mem)
| Translates a set of BPF instructions in a set of x86 ones.
JIT_BPF_Filter * | BPF_jitter (struct bpf_insn *fp, INT nins)
| BPF jitter, builds an x86 function from a BPF program.
void | BPF_Destroy_JIT_Filter (JIT_BPF_Filter *Filter)
| Deletes a filtering function that was previously created by BPF_jitter().
## Variables
emit_func | emitm

## Function Documentation

void emit_code | ( | binary_stream * | stream,
|  | ULONG | value,
|  | UINT | len
| ) |

| Definition at line 44 of file jitter.c. References binary_stream::cur_ip, and binary_stream::ibuf. Referenced by BPFtoX86().

void emit_lenght | ( | binary_stream * | stream,
|  | ULONG | value,
|  | UINT | len
| ) |

| Definition at line 35 of file jitter.c. References binary_stream::bpf_pc, binary_stream::cur_ip, and binary_stream::refs. Referenced by BPFtoX86().

## Variable Documentation

emit_func emitm

| Definition at line 30 of file jitter.c. Referenced by BPFtoX86().

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