nfq

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2018 License: MIT Imports: 5 Imported by: 0

README

nfq-go

libnetfilter_queue wrapper for Go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NFQ

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

NFQ ...

func New

func New(num uint16, callback func(Packet)) (*NFQ, error)

New ...

func (*NFQ) Close

func (nfq *NFQ) Close()

Close ...

type Packet

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

Packet ...

func (Packet) Accept

func (p Packet) Accept() error

Accept ...

func (Packet) Data

func (p Packet) Data() []byte

Data ...

func (Packet) Drop

func (p Packet) Drop() error

Drop ...

func (Packet) Mark

func (p Packet) Mark() uint32

Mark ...

func (Packet) Queue

func (p Packet) Queue(num uint16) error

Queue ...

func (Packet) Repeat

func (p Packet) Repeat() error

Repeat ...

func (Packet) WithData

func (p Packet) WithData(data []byte) Packet

WithData ...

func (Packet) WithMark

func (p Packet) WithMark(mark uint32) Packet

WithMark ...

Jump to

Keyboard shortcuts

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