From ca096e46e860c29133d442ddcdef9c6999385446 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Thu, 15 Jun 2023 11:26:01 +0200 Subject: [PATCH] unix: add missing IFLA_* consts on linux Change-Id: Ib221d98f8d7e5aac7ff2db207cdd92145fe1dc60 Reviewed-on: https://go-review.googlesource.com/c/sys/+/503715 Run-TryBot: Tobias Klauser Reviewed-by: Ian Lance Taylor Auto-Submit: Tobias Klauser TryBot-Result: Gopher Robot Reviewed-by: Bryan Mills --- unix/linux/types.go | 4 ++++ unix/ztypes_linux.go | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/unix/linux/types.go b/unix/linux/types.go index fff4ed300..c19661ffb 100644 --- a/unix/linux/types.go +++ b/unix/linux/types.go @@ -1517,6 +1517,10 @@ const ( 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_ALLMULTI = C.IFLA_ALLMULTI + IFLA_DEVLINK_PORT = C.IFLA_DEVLINK_PORT + IFLA_GSO_IPV4_MAX_SIZE = C.IFLA_GSO_IPV4_MAX_SIZE + IFLA_GRO_IPV4_MAX_SIZE = C.IFLA_GRO_IPV4_MAX_SIZE 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 56cd76a84..daf91f36d 100644 --- a/unix/ztypes_linux.go +++ b/unix/ztypes_linux.go @@ -1538,6 +1538,10 @@ const ( IFLA_GRO_MAX_SIZE = 0x3a IFLA_TSO_MAX_SIZE = 0x3b IFLA_TSO_MAX_SEGS = 0x3c + IFLA_ALLMULTI = 0x3d + IFLA_DEVLINK_PORT = 0x3e + IFLA_GSO_IPV4_MAX_SIZE = 0x3f + IFLA_GRO_IPV4_MAX_SIZE = 0x40 IFLA_PROTO_DOWN_REASON_UNSPEC = 0x0 IFLA_PROTO_DOWN_REASON_MASK = 0x1 IFLA_PROTO_DOWN_REASON_VALUE = 0x2