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 Apr 27, 2024
1 parent 92370e1 commit 639e3c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nfqueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ func (nfqueue *Nfqueue) SetVerdictBatch(id uint32, verdict int) error {
return nfqueue.setVerdict(id, verdict, true, []byte{})
}

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

// Register your own function as callback for a netfilter queue.
//
// The registered callback will stop receiving data if an error
Expand Down

0 comments on commit 639e3c9

Please sign in to comment.