]> granicus.if.org Git - strace/commit
tests: check decoding of NETLINK_SOCK_DIAG AF_PACKET messages
authorJingPiao Chen <chenjingpiao@gmail.com>
Tue, 13 Jun 2017 03:58:25 +0000 (11:58 +0800)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 15 Jun 2017 22:44:04 +0000 (22:44 +0000)
commita9345e97e2e3ef399ad907244f6c1bf3867ac80c
tree45dccc4bb67af217aaf61a819582472b8ff60b5d
parente822874c36149493b06c29b650610df9dd32b4ae
tests: check decoding of NETLINK_SOCK_DIAG AF_PACKET messages

* tests/netlink_sock_diag.c: Include <linux/if_ether.h>
and <linux/packet_diag.h>.
(test_packet_diag_req, test_packet_diag_msg): New functions.
(main): Use them.

Co-authored-by: Fabien Siron <fabien.siron@epita.fr>
tests/netlink_sock_diag.c