Categorygithub.com/capnspacehook/go-nfqueue
modulepackage
1.4.1
Repository: https://github.com/capnspacehook/go-nfqueue.git
Documentation: pkg.go.dev

# README

go-nfqueue PkgGoDev Build Status Go Report Card

This is go-nfqueue and it is written in golang. It provides a C-binding free API to the netfilter based queue subsystem of the Linux kernel.

Privileges

This package processes information directly from the kernel and therefore it requires special privileges. You can provide this privileges by adjusting the CAP_NET_ADMIN capabilities.

	setcap 'cap_net_admin=+ep' /your/executable

For documentation and more examples please take a look at documentation.

Requirements

# Functions

Open a connection to the netfilter queue subsystem.

# Constants

Verdicts.
Verdicts.
Various configuration flags.
Various configuration flags.
Various configuration flags.
Various configuration flags.
Various configuration flags.
Verdicts.
copy modes.
copy modes.
copy modes.
Verdicts.
Verdicts.

# Variables

Various errors.
Various errors.
Various errors.
Various errors.
Various errors.

# Structs

Attribute contains various elements for nfqueue elements.
Config contains options for a Conn.
Nfqueue represents a netfilter queue handler.

# Type aliases

ErrorFunc is a function that receives all errors that happen while reading from a Netlinkgroup.
HookFunc is a function, that receives events from a Netlinkgroup To stop receiving messages on this HookFunc, return something different than 0.