unix: add NLMSGERR constants for netlink extended acknowledgement

Change-Id: I8d23fc227d1f61b823abcf610479005356c52088
Reviewed-on: https://go-review.googlesource.com/c/sys/+/286072
Trust: Matt Layher <mdlayher@gmail.com>
Run-TryBot: Matt Layher <mdlayher@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
This commit is contained in:
Matt Layher
2021-01-23 15:24:52 -05:00
parent 8e9fff1a3a
commit bd2e13477e
2 changed files with 14 additions and 0 deletions

View File

@@ -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
)

View File

@@ -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
)