From 8e32c043e418e4342312b6a690e50f04b182961f Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 2 Aug 2022 13:17:07 +0200 Subject: [PATCH] unix: add missing IFLA_* consts on linux Add these based on uapi/linux/if_link.h as of Linux kernel 5.19. Change-Id: I56be6e6178aad3d10194a45f774ccf307ed461b5 Reviewed-on: https://go-review.googlesource.com/c/sys/+/420694 Run-TryBot: Tobias Klauser Reviewed-by: Ian Lance Taylor TryBot-Result: Gopher Robot Reviewed-by: Dmitri Shuralyov --- unix/linux/types.go | 5 +++++ unix/ztypes_linux.go | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/unix/linux/types.go b/unix/linux/types.go index 9a39c352..2287618e 100644 --- a/unix/linux/types.go +++ b/unix/linux/types.go @@ -1487,6 +1487,11 @@ const ( IFLA_ALT_IFNAME = C.IFLA_ALT_IFNAME IFLA_PERM_ADDRESS = C.IFLA_PERM_ADDRESS IFLA_PROTO_DOWN_REASON = C.IFLA_PROTO_DOWN_REASON + IFLA_PARENT_DEV_NAME = C.IFLA_PARENT_DEV_NAME + IFLA_PARENT_DEV_BUS_NAME = C.IFLA_PARENT_DEV_BUS_NAME + IFLA_GRO_MAX_SIZE = C.IFLA_GRO_MAX_SIZE + IFLA_TSO_MAX_SIZE = C.IFLA_TSO_MAX_SIZE + IFLA_TSO_MAX_SEGS = C.IFLA_TSO_MAX_SEGS IFLA_PROTO_DOWN_REASON_UNSPEC = C.IFLA_PROTO_DOWN_REASON_UNSPEC IFLA_PROTO_DOWN_REASON_MASK = C.IFLA_PROTO_DOWN_REASON_MASK IFLA_PROTO_DOWN_REASON_VALUE = C.IFLA_PROTO_DOWN_REASON_VALUE diff --git a/unix/ztypes_linux.go b/unix/ztypes_linux.go index f6de1eed..ff688116 100644 --- a/unix/ztypes_linux.go +++ b/unix/ztypes_linux.go @@ -1466,6 +1466,11 @@ const ( IFLA_ALT_IFNAME = 0x35 IFLA_PERM_ADDRESS = 0x36 IFLA_PROTO_DOWN_REASON = 0x37 + IFLA_PARENT_DEV_NAME = 0x38 + IFLA_PARENT_DEV_BUS_NAME = 0x39 + IFLA_GRO_MAX_SIZE = 0x3a + IFLA_TSO_MAX_SIZE = 0x3b + IFLA_TSO_MAX_SEGS = 0x3c IFLA_PROTO_DOWN_REASON_UNSPEC = 0x0 IFLA_PROTO_DOWN_REASON_MASK = 0x1 IFLA_PROTO_DOWN_REASON_VALUE = 0x2