Skip to content

Commit

Permalink
add SetOption()
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Lehner <[email protected]>
  • Loading branch information
florianl committed Mar 25, 2024
1 parent b1a1ca5 commit 1dced9f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nflog.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ func (nflog *Nflog) Close() error {
return err
}

// SetOption allows to enable or disable netlink socket options.
func (nflog *Nflog) SetOption(o netlink.ConnOption, enable bool) error {
return nflog.Con.SetOption(o, enable)
}

// Register your own function as callback for a netfilter log group.
// Errors other than net.Timeout() will be reported via the provided log interface
// and the receiving of netfilter log messages will be stopped.
Expand Down

0 comments on commit 1dced9f

Please sign in to comment.