summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi/linux/netlink_route.go
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2021-02-05 02:04:06 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2021-09-26 23:34:44 +0200
commite30c52d292d5f03883a83d0a6bec71335ab99342 (patch)
tree60d49c63deb8fa6ed4677428e49e7eacf9dc3225 /pkg/abi/linux/netlink_route.go
parentea43d9ffc0fd7bc1f42bada76006dbcf26f752af (diff)
Implement dummy network interfacesfeature/dummy-iface
Diffstat (limited to 'pkg/abi/linux/netlink_route.go')
-rw-r--r--pkg/abi/linux/netlink_route.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/abi/linux/netlink_route.go b/pkg/abi/linux/netlink_route.go
index 932a06bac..71e45cbfc 100644
--- a/pkg/abi/linux/netlink_route.go
+++ b/pkg/abi/linux/netlink_route.go
@@ -165,6 +165,16 @@ const (
IFLA_GSO_MAX_SIZE = 41
)
+// Interface link info attributes, from uapi/linux/if_link.h.
+const (
+ IFLA_INFO_UNSPEC = 0
+ IFLA_INFO_KIND = 1
+ IFLA_INFO_DATA = 2
+ IFLA_INFO_XSTATS = 3
+ IFLA_INFO_SLAVE_KIND = 4
+ IFLA_INFO_SLAVE_DATA = 5
+)
+
// InterfaceAddrMessage is struct ifaddrmsg, from uapi/linux/if_addr.h.
//
// +marshal