diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-01-28 20:45:18 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-01-28 20:45:18 +0000 |
commit | d8284c9de3cb9d60f1b65ba4266da6442aeb6431 (patch) | |
tree | 354827c4273823ecd203315ebbe52e3b0dd5e32d /pkg/abi | |
parent | b870658bb6258f1d20fd27a0a711c77b058baf7b (diff) | |
parent | d99329e58492ef91b44a0bac346f757e8af2a7ec (diff) |
Merge release-20200115.0-120-gd99329e (automated)
Diffstat (limited to 'pkg/abi')
-rw-r--r-- | pkg/abi/linux/netlink_route.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pkg/abi/linux/netlink_route.go b/pkg/abi/linux/netlink_route.go index 0e3582ab6..40bec566c 100644 --- a/pkg/abi/linux/netlink_route.go +++ b/pkg/abi/linux/netlink_route.go @@ -205,6 +205,9 @@ type RouteMessage struct { Flags uint32 } +// SizeOfRouteMessage is the size of RouteMessage. +const SizeOfRouteMessage = 12 + // Route types, from uapi/linux/rtnetlink.h. const ( // RTN_UNSPEC represents an unspecified route type. @@ -331,3 +334,13 @@ const ( RTF_GATEWAY = 0x2 RTF_UP = 0x1 ) + +// RtAttr is the header of optional addition route information, as a netlink +// attribute. From include/uapi/linux/rtnetlink.h. +type RtAttr struct { + Len uint16 + Type uint16 +} + +// SizeOfRtAttr is the size of RtAttr. +const SizeOfRtAttr = 4 |