[PATCH 09/26] tests: check decoding of rtnetlink neigh messages

Dmitry V. Levin ldv at altlinux.org
Sat Aug 12 00:11:47 UTC 2017


On Thu, Aug 10, 2017 at 09:07:07AM +0800, JingPiao Chen wrote:
> * tests/netlink_route.c (test_rtnl_neigh): New function.
> (main): Use it.
> 
> Co-authored-by: Fabien Siron <fabien.siron at epita.fr>
> ---
>  tests/netlink_route.c | 21 +++++++++++++++++++++
>  1 file changed, 21 insertions(+)
> 
> diff --git a/tests/netlink_route.c b/tests/netlink_route.c
> index 0c62584..3aba2a0 100644
> --- a/tests/netlink_route.c
> +++ b/tests/netlink_route.c
> @@ -290,6 +290,26 @@ test_rtnl_rule(const int fd)
>  }
>  #endif
>  
> +static void
> +test_rtnl_neigh(const int fd)
> +{
> +	void *const nlh0 = tail_alloc(NLMSG_HDRLEN);
> +	const struct ndmsg msg = {

Shouldn't <linux/neighbour.h> be included first?


-- 
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/20170812/fd826d58/attachment.bin>


More information about the Strace-devel mailing list