Skip to content

Commit 65ac230

Browse files
committed
add SetOption
Signed-off-by: Florian Lehner <[email protected]>
1 parent 4abdea0 commit 65ac230

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nfqueue.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ func (nfqueue *Nfqueue) SetVerdictBatch(id uint32, verdict int) error {
131131
return nfqueue.setVerdict(id, verdict, true, []byte{})
132132
}
133133

134+
// SetOption allows to enable or disable netlink socket options.
135+
func (nfqueue *Nfqueue) SetOption(o netlink.ConnOption, enable bool) error {
136+
return nfqueue.Con.SetOption(o, enable)
137+
}
138+
134139
// Register your own function as callback for a netfilter queue.
135140
//
136141
// The registered callback will stop receiving data if an error

0 commit comments

Comments
 (0)