mirror of
https://github.com/containers/podman.git
synced 2025-10-18 11:42:55 +08:00

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>
28 lines
424 B
Go
28 lines
424 B
Go
package netlink
|
|
|
|
// According to linux/include/uapi/linux/unix_diag.h
|
|
const (
|
|
UNIX_DIAG_NAME = iota
|
|
UNIX_DIAG_VFS
|
|
UNIX_DIAG_PEER
|
|
UNIX_DIAG_ICONS
|
|
UNIX_DIAG_RQLEN
|
|
UNIX_DIAG_MEMINFO
|
|
UNIX_DIAG_SHUTDOWN
|
|
UNIX_DIAG_UID
|
|
UNIX_DIAG_MAX
|
|
)
|
|
|
|
type UnixDiagInfoResp struct {
|
|
DiagMsg *UnixSocket
|
|
Name *string
|
|
Peer *uint32
|
|
Queue *QueueInfo
|
|
Shutdown *uint8
|
|
}
|
|
|
|
type QueueInfo struct {
|
|
RQueue uint32
|
|
WQueue uint32
|
|
}
|