Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
Runtime owns one kernel queue and a bounded userspace flow table. The nft rules that reference it must always use queue bypass.
func Start ¶
Start binds a fail-open netfilter queue and starts its packet and event loops. The caller must install nft rules with queue bypass after this succeeds and remove those rules before Close.
func (*Runtime) Close ¶
Close unbinds the owned queue and closes its netlink socket. Callers should remove the nft table first; its queue statements use bypass as a second fail-open safeguard.
func (*Runtime) SetCallback ¶
SetCallback replaces the current event callback without interrupting packet inspection. Callback execution is isolated from the NFQUEUE receive loop.
func (*Runtime) SetInterfaces ¶
SetInterfaces refreshes the exact active interface-index mapping and drops flow state only for interfaces whose identity changed or was removed.