mirror of
https://github.com/rancher/plugins.git
synced 2025-09-07 18:51:21 +00:00
Update of netlink version
This is required for https://github.com/containernetworking/cni/issues/251 because version of netlink used doesn't support creating tap devices.
This commit is contained in:
12
vendor/github.com/vishvananda/netlink/nl/route_linux.go
generated
vendored
12
vendor/github.com/vishvananda/netlink/nl/route_linux.go
generated
vendored
@@ -40,3 +40,15 @@ func DeserializeRtMsg(b []byte) *RtMsg {
|
||||
func (msg *RtMsg) Serialize() []byte {
|
||||
return (*(*[syscall.SizeofRtMsg]byte)(unsafe.Pointer(msg)))[:]
|
||||
}
|
||||
|
||||
type RtNexthop struct {
|
||||
syscall.RtNexthop
|
||||
}
|
||||
|
||||
func DeserializeRtNexthop(b []byte) *RtNexthop {
|
||||
return (*RtNexthop)(unsafe.Pointer(&b[0:syscall.SizeofRtNexthop][0]))
|
||||
}
|
||||
|
||||
func (msg *RtNexthop) Serialize() []byte {
|
||||
return (*(*[syscall.SizeofRtNexthop]byte)(unsafe.Pointer(msg)))[:]
|
||||
}
|
||||
|
Reference in New Issue
Block a user