[PATCH v3 4/5] netlink: add a basic rtnetlink parser of link messages
Dmitry V. Levin
ldv at altlinux.org
Wed Aug 9 18:08:49 UTC 2017
On Wed, Aug 09, 2017 at 10:14:08AM +0800, JingPiao Chen wrote:
[...]
> diff --git a/rtnl_link.c b/rtnl_link.c
> new file mode 100644
> index 0000000..876baff
> --- /dev/null
> +++ b/rtnl_link.c
[...]
> +#include "defs.h"
> +#include "netlink_route.h"
> +#include "print_fields.h"
> +
> +#include <linux/rtnetlink.h>
Reminder: <sys/socket.h> has to be included before <linux/netlink.h>
because the latter used to be incomplete in older kernel headers.
We introduced netlink.h wrapper to workaround this and related portability
issues, please do not forget to include it instead of <linux/netlink.h>
and before any linux netlink header file.
--
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/20170809/acd99820/attachment.bin>
More information about the Strace-devel
mailing list