Skip to content

Commit c894d44

Browse files
committed
add SetOption()
Signed-off-by: Florian Lehner <[email protected]>
1 parent b1a1ca5 commit c894d44

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nflog.go

+5
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ func (nflog *Nflog) Close() error {
113113
return err
114114
}
115115

116+
// SetOption allows to enable or disable netlink socket options.
117+
func (nflog *Nflog) SetOption(o netlink.ConnOption, enable bool) error {
118+
return nflog.Con.SetOption(o, enable)
119+
}
120+
116121
// Register your own function as callback for a netfilter log group.
117122
// Errors other than net.Timeout() will be reported via the provided log interface
118123
// and the receiving of netfilter log messages will be stopped.

0 commit comments

Comments
 (0)