[PATCH v2 1/7] rtnl_neigh: fix ndm_type field decode in struct ndmsg
Dmitry V. Levin
ldv at altlinux.org
Tue Aug 29 11:05:53 UTC 2017
On Tue, Aug 29, 2017 at 03:45:17PM +0800, JingPiao Chen wrote:
> * defs.h (routing_types): New xlat prototype.
> * rtnl_neigh.c (decode_ndmsg): Fix ndm_type decode.
> * xlat/nda_types.in: Remove it.
> * tests/netlink_route.c (test_rtnl_neigh): Update the test.
> * tests/nlattr_ndmsg.c (init_ndmsg, print_ndmsg): Likewise.
On Tue, Aug 29, 2017 at 03:45:18PM +0800, JingPiao Chen wrote:
> * configure.ac (AC_CHECK_FUNCS): Add be64toh.
> (AC_CHECK_TYPES): Check for struct fib_rule_uid_range
> in <linux/fib_rules.h>.
> * nlattr.c: Include <endian.h>.
> (decode_nla_be64): New function.
> * nlattr.h (decode_nla_be64): New prototype.
> * rtnl_rule.c (decode_rule_addr,
> decode_fib_rule_uid_range): New functions.
> (fib_rule_hdr_nla_decoders): New array.
> (decode_fib_rule_hdr): Use it.
On Tue, Aug 29, 2017 at 03:45:19PM +0800, JingPiao Chen wrote:
> * tests/nlattr_fib_rule_hdr.c: Include <inttypes.h>.
> (FRA_TUN_ID, FRA_UID_RANGE): New macros.
> (main): Check decoding of FRA_DST, FRA_UID_RANGE and FRA_TUN_ID.
On Tue, Aug 29, 2017 at 03:45:20PM +0800, JingPiao Chen wrote:
> * nlattr.c: Include <netinet/in.h> and <arpa/inet.h>.
> (decode_nla_be16): New function.
> * nlattr.h (decode_nla_be16): New prototype.
> * rtnl_neigh.c (decode_neigh_addr,
> decode_nda_cacheinfo): New functions.
> (ndmsg_nla_decoders): New array.
> (decode_ndmsg): Use it.
On Tue, Aug 29, 2017 at 03:45:21PM +0800, JingPiao Chen wrote:
> * tests/nlattr_ndmsg.c: Include <netinet/in.h> and <arpa/inet.h>.
> (NDA_PORT): New macro.
> (main): Check decoding of NDA_DST, NDA_CACHEINFO and NDA_PORT.
On Tue, Aug 29, 2017 at 03:45:22PM +0800, JingPiao Chen wrote:
> * rtnl_netconf.c (netconfmsg_nla_decoders): New array.
> (decode_netconfmsg): Use it.
On Tue, Aug 29, 2017 at 03:45:23PM +0800, JingPiao Chen wrote:
> * rtnl_nsid.c (rtgenmsg_nla_decoders): New array.
> (decode_rtgenmsg): Use it.
Applied, 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/20170829/cc723550/attachment.bin>
More information about the Strace-devel
mailing list