[PATCH 08/26] netlink: add a basic rtnetlink parser of neigh messages

Dmitry V. Levin ldv at altlinux.org
Sat Aug 12 00:10:45 UTC 2017


On Thu, Aug 10, 2017 at 09:07:06AM +0800, JingPiao Chen wrote:
> * rtnl_neigh.c: New file.
> * Makefile.am (strace_SOURCES): Add it.
> * netlink_route.h (decode_ndmsg, decode_rtm_getneigh): New prototypes.
> * configure.ac (AC_CHECK_HEADERS): Add linux/neighbour.h.
> * netlink_route.c (route_decoders): Add RTM_DELNEIGH,
> RTM_DELNEIGH and RTM_NEWNEIGH.
> * xlat/nda_types.in: New file.
> * xlat/neighbor_cache_entry_flags.in: Likewise.
> * xlat/neighbor_cache_entry_states.in: Likewise.
[...]
> diff --git a/xlat/nda_types.in b/xlat/nda_types.in
> new file mode 100644
> index 0000000..08f3066
> --- /dev/null
> +++ b/xlat/nda_types.in
> @@ -0,0 +1,11 @@
> +NDA_UNSPEC		0
> +NDA_DST			1
> +NDA_LLADDR		2
> +NDA_CACHEINFO		3
> +NDA_PROBES		4
> +NDA_VLAN		5
> +NDA_PORT		6
> +NDA_VNI			7
> +NDA_IFINDEX		8
> +NDA_MASTER		9
> +NDA_LINK_NETNSID	10

This list has got a new entry after NDA_LINK_NETNSID.


-- 
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/44b7d2f7/attachment.bin>


More information about the Strace-devel mailing list