From bd2e13477e9c63125302cd9da2d61879c6aa1721 Mon Sep 17 00:00:00 2001 From: Matt Layher Date: Sat, 23 Jan 2021 15:24:52 -0500 Subject: [PATCH] unix: add NLMSGERR constants for netlink extended acknowledgement Change-Id: I8d23fc227d1f61b823abcf610479005356c52088 Reviewed-on: https://go-review.googlesource.com/c/sys/+/286072 Trust: Matt Layher Run-TryBot: Matt Layher TryBot-Result: Go Bot Reviewed-by: Tobias Klauser --- unix/linux/types.go | 8 ++++++++ unix/ztypes_linux.go | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/unix/linux/types.go b/unix/linux/types.go index 321cb8f6..7efe890c 100644 --- a/unix/linux/types.go +++ b/unix/linux/types.go @@ -3655,3 +3655,11 @@ const ( CLOSE_RANGE_UNSHARE = C.CLOSE_RANGE_UNSHARE CLOSE_RANGE_CLOEXEC = C.CLOSE_RANGE_CLOEXEC ) + +// Netlink extended acknowledgement TLVs. + +const ( + NLMSGERR_ATTR_MSG = C.NLMSGERR_ATTR_MSG + NLMSGERR_ATTR_OFFS = C.NLMSGERR_ATTR_OFFS + NLMSGERR_ATTR_COOKIE = C.NLMSGERR_ATTR_COOKIE +) diff --git a/unix/ztypes_linux.go b/unix/ztypes_linux.go index 33ca5034..c769e73c 100644 --- a/unix/ztypes_linux.go +++ b/unix/ztypes_linux.go @@ -3714,3 +3714,9 @@ const ( CLOSE_RANGE_UNSHARE = 0x2 CLOSE_RANGE_CLOEXEC = 0x4 ) + +const ( + NLMSGERR_ATTR_MSG = 0x1 + NLMSGERR_ATTR_OFFS = 0x2 + NLMSGERR_ATTR_COOKIE = 0x3 +)