linux-user: Support for NETLINK socket options
commita2d866827bd88fb14bd1c973d4fec6b6d98289a6
authorJosh Kunz <jkz@google.com>
Tue, 29 Oct 2019 22:43:10 +0000 (29 15:43 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 5 Nov 2019 09:19:29 +0000 (5 10:19 +0100)
treefe7c42c2ad008ad0a0356dcae87701d904968d35
parent36609b4fa36f0ac934874371874416f7533a5408
linux-user: Support for NETLINK socket options

This change includes support for all AF_NETLINK socket options up to about
kernel version 5.4 (5.4 is not formally released at the time of writing).
Socket options that were introduced in kernel versions before the oldest
currently stable kernel version are guarded by kernel version macros.

This change has been built under gcc 8.3, and clang 9.0, and it passes
`make check`. The netlink options have been tested by emulating some
non-trival software that uses NETLINK socket options, but they have
not been exaustively verified.

Signed-off-by: Josh Kunz <jkz@google.com>
Message-Id: <20191029224310.164025-1-jkz@google.com>
[lv: updated patch according to CODING_STYLE]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/syscall.c