[PATCH v2 09/25] netlink: add a basic rtnetlink parser of neightbl messages

Dmitry V. Levin ldv at altlinux.org
Mon Aug 14 14:04:57 UTC 2017


On Mon, Aug 14, 2017 at 09:45:32AM +0800, JingPiao Chen wrote:
> On Mon, Aug 14, 2017 at 04:23:21AM +0300, Dmitry V. Levin wrote:
> > On Sun, Aug 13, 2017 at 10:22:27AM +0800, JingPiao Chen wrote:
> > > * rtnl_neightbl.c: New file.
> > > * Makefile.am (strace_SOURCES): Add it.
> > > * netlink_route.h (decode_ndtmsg): New prototype.
> > > * netlink_route.c (route_decoders): Add RTM_GETNEIGHTBL,
> > > RTM_NEWNEIGHTBL and RTM_SETNEIGHTBL.
> > [...]
> > > +#include "defs.h"
> > > +#include "netlink_route.h"
> > > +#include "print_fields.h"
> > > +
> > > +#ifdef HAVE_LINUX_NEIGHBOUR_H
> > > +# include <linux/neighbour.h>
> > > +#endif
> > > +
> > > +DECL_NETLINK_ROUTE_DECODER(decode_ndtmsg)
> > > +{
> > > +	struct ndtmsg ndtmsg = { .ndtm_family = family };
> > 
> > If <linux/neighbour.h> is not available, then <linux/rtnetlink.h>
> > has to be used, otherwise the code won't compile on older systems.
> 
> Need I send v3? ldv/next branch have fixed the problem, thank you.

There is no need to resend this time.  Merged, thanks!


-- 
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/20170814/18b46022/attachment.bin>


More information about the Strace-devel mailing list