]> granicus.if.org Git - strace/commit
Decode AF_SMC netlink messages unconditionally
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 19 Aug 2018 08:43:47 +0000 (10:43 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 21 Aug 2018 11:28:14 +0000 (11:28 +0000)
commit9d2848e51762394996e4bbd15c31c6f1e76580b1
treec6028d9c31f77c9f64f47303b6d73a10df7cb0e2
parent14ae61f37b7c4ec236f011ab5c5866b43f6766b4
Decode AF_SMC netlink messages unconditionally

As smc_diag.h is bundled, there is little sense to build AF_SMC support
conditionally.

* netlink_smc_diag.c [!AF_SMC]: Include xlat/addrfams.h under
XLAT_MACROS_ONLY, enable the rest of file.
* netlink_sock_diag.c: Include xlat/addrfams.h under XLAT_MACROS_ONLY.
(diag_decoders): Remove "ifdef AF_SMC" condition for [AF_SMC], reorder
in accordance with address family values.
* tests/nlattr_smc_diag_msg.c [!AF_SMC]: Define AF_SMC to 43, enable
the rest of test.
netlink_smc_diag.c
netlink_sock_diag.c
tests/nlattr_smc_diag_msg.c