[PATCH 8/8] tests: check decoding of NETLINK_SOCK_DIAG AF_SMC messages

Dmitry V. Levin ldv at altlinux.org
Tue Jun 13 20:48:29 UTC 2017


On Tue, Jun 13, 2017 at 10:13:25PM +0800, JingPiao Chen wrote:
> * tests/netlink_sock_diag.c: Include <linux/smc.h>
> and <linux/smc_diag.h>.
> (test_smc_diag_req, test_smc_diag_msg): New functions.
> (main): Use them.
> ---
>  tests/netlink_sock_diag.c | 266 ++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 266 insertions(+)
> 
> diff --git a/tests/netlink_sock_diag.c b/tests/netlink_sock_diag.c
> index 8171e2e..50ef507 100644
> --- a/tests/netlink_sock_diag.c
> +++ b/tests/netlink_sock_diag.c
> @@ -40,6 +40,10 @@
>  #include <linux/netlink.h>
>  #include <linux/netlink_diag.h>
>  #include <linux/packet_diag.h>
> +#ifdef AF_SMC
> +# include <linux/smc.h>
> +# include <linux/smc_diag.h>
> +#endif

Does this test really need <linux/smc.h>?


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170613/514b83b6/attachment.bin>


More information about the Strace-devel mailing list