mirror of
https://github.com/containers/podman.git
synced 2025-10-17 19:24:04 +08:00
update github.com/vishvananda/netlink to v1.3.0
There seems to be one change[1] which breaks our tests, the route Dst field is no longer nil for a default route but rather the empty ipnet, i.e. 0.0.0.0/0 and ::/0 so fix that up in our code. [1] https://github.com/vishvananda/netlink/pull/852 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
15
vendor/github.com/vishvananda/netlink/tcp_linux.go
generated
vendored
15
vendor/github.com/vishvananda/netlink/tcp_linux.go
generated
vendored
@ -8,6 +8,7 @@ import (
|
||||
|
||||
const (
|
||||
tcpBBRInfoLen = 20
|
||||
memInfoLen = 16
|
||||
)
|
||||
|
||||
func checkDeserErr(err error) error {
|
||||
@ -351,3 +352,17 @@ func (t *TCPBBRInfo) deserialize(b []byte) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *MemInfo) deserialize(b []byte) error {
|
||||
if len(b) != memInfoLen {
|
||||
return errors.New("Invalid length")
|
||||
}
|
||||
|
||||
rb := bytes.NewBuffer(b)
|
||||
m.RMem = native.Uint32(rb.Next(4))
|
||||
m.WMem = native.Uint32(rb.Next(4))
|
||||
m.FMem = native.Uint32(rb.Next(4))
|
||||
m.TMem = native.Uint32(rb.Next(4))
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user