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. -- ldv
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Strace-devel mailing list Strace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/strace-devel