netfilter

package module
v0.0.0-...-3ea0f55 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2014 License: MIT Imports: 7 Imported by: 0

README

netfilter

Documentation

Index

Constants

View Source
const (
	FILTER_READ_LEN = 512
)
View Source
const (
	LINK_LAYER_LEN = 14
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer struct {
	// contains filtered or unexported fields
}

func NewBuffer

func NewBuffer() (*Buffer, error)

func (*Buffer) Next

func (ds *Buffer) Next(numBytes int) ([]byte, error)

func (*Buffer) Peek

func (ds *Buffer) Peek(numBytes int) ([]byte, error)

func (*Buffer) PutBack

func (ds *Buffer) PutBack(buf []byte) error

func (*Buffer) Write

func (ds *Buffer) Write(buf []byte) error

func (*Buffer) WriteNoCopy

func (ds *Buffer) WriteNoCopy(buf []byte) error

type Filter

type Filter struct {
	In chan []byte
	// contains filtered or unexported fields
}

func NewFilter

func NewFilter() *Filter

func (*Filter) Run

func (filter *Filter) Run()

func (*Filter) Stop

func (filter *Filter) Stop()

type Filter2

type Filter2 struct {
	In chan []byte
	// contains filtered or unexported fields
}

func NewFilter2

func NewFilter2() *Filter2

func (*Filter2) Run

func (filter *Filter2) Run()

func (*Filter2) Stop

func (filter *Filter2) Stop()

Directories

Path Synopsis
dns

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL