chore(netlink): debug log ip rule commands in netlink instead of routing package
This commit is contained in:
8
internal/netlink/helpers_test.go
Normal file
8
internal/netlink/helpers_test.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package netlink
|
||||
|
||||
import "net/netip"
|
||||
|
||||
func makeNetipPrefix(n byte) netip.Prefix {
|
||||
const bits = 24
|
||||
return netip.PrefixFrom(netip.AddrFrom4([4]byte{n, n, n, 0}), bits)
|
||||
}
|
||||
Reference in New Issue
Block a user