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
|
// WithSockOptions sets the specified socket options when creating a new netlink
|
||||||
// connection. Note that when using WithSockOptions, you are responsible for
|
// connection.
|
||||||
// providing a large-enough read and write buffer, whereas normally, the
|
|
||||||
// nftables package automatically enlarges the buffers as needed.
|
|
||||||
func WithSockOptions(opts ...SockOption) ConnOption {
|
func WithSockOptions(opts ...SockOption) ConnOption {
|
||||||
return func(cc *Conn) {
|
return func(cc *Conn) {
|
||||||
cc.sockOptions = append(cc.sockOptions, opts...)
|
cc.sockOptions = append(cc.sockOptions, opts...)
|
||||||
|
|
Loading…
Reference in New Issue