Compare commits

..

1 Commits

Author SHA1 Message Date
Nick Garlis 93929b0b6d
Merge f8c01f0bf3 into 8a8ad2be81 2025-06-30 19:29:59 +00:00
1 changed files with 1 additions and 3 deletions

View File

@ -116,9 +116,7 @@ func WithTestDial(f nltest.Func) ConnOption {
}
// WithSockOptions sets the specified socket options when creating a new netlink
// connection. Note that when using WithSockOptions, you are responsible for
// providing a large-enough read and write buffer, whereas normally, the
// nftables package automatically enlarges the buffers as needed.
// connection.
func WithSockOptions(opts ...SockOption) ConnOption {
return func(cc *Conn) {
cc.sockOptions = append(cc.sockOptions, opts...)