Compare commits
1 Commits
1c481fb02a
...
93929b0b6d
Author | SHA1 | Date |
---|---|---|
|
93929b0b6d |
4
conn.go
4
conn.go
|
@ -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...)
|
||||
|
|
Loading…
Reference in New Issue