[PATCH v2 1/4] rtnl_mdb: decode br_port_msg netlink attributes
Dmitry V. Levin
ldv at altlinux.org
Tue Sep 26 20:31:05 UTC 2017
On Tue, Sep 12, 2017 at 10:54:58PM +0800, JingPiao Chen wrote:
> * configure.ac (AC_CHECK_TYPES): Check for struct br_mdb_entry
> in <linux/if_bridge.h>.
> (AC_CHECK_MEMBERS): Check for flags and vid fields in struct br_mdb_entry.
> * rtnl_mdb.c: Include "xlat/mdb_flags.h", "xlat/mdb_states.h",
> "xlat/rtnl_mdba_mdb_attrs.h", "xlat/rtnl_mdba_mdb_eattr_attrs.h",
> "xlat/rtnl_mdba_mdb_entry_attrs.h" ,"xlat/rtnl_mdba_router_attrs.h"
> and "xlat/rtnl_mdba_router_pattr_attrs.h".
> (decode_mdba_mdb_entry_info, decode_mdba_mdb_entry,
> decode_mdba_mdb, decode_multicast_router_type,
> decode_mdba_router_port, decode_mdba_router): New functions.
> (mdba_mdb_eattr_nla_decoders, mdba_mdb_entry_nla_decoders,
> mdba_mdb_nla_decoders, mdba_router_pattr_nla_decoders,
> mdba_router_nla_decoders, br_port_msg_nla_decoders): New arrays.
> (decode_br_port_msg): Use br_port_msg_nla_decoders.
> * xlat/mdb_flags.in: New file.
> * xlat/mdb_states.in: Likewise.
> * xlat/multicast_router_types.in: Likewise.
> * xlat/rtnl_mdba_mdb_attrs.in: Likewise.
> * xlat/rtnl_mdba_mdb_eattr_attrs.in: Likewise.
> * xlat/rtnl_mdba_mdb_entry_attrs.in: Likewise.
> * xlat/rtnl_mdba_router_attrs.in: Likewise.
> * xlat/rtnl_mdba_router_pattr_attrs.in: Likewise.
On Tue, Sep 12, 2017 at 10:54:59PM +0800, JingPiao Chen wrote:
> Extend TEST_NESTED_NLATTR_OBJECT macro for multi-nested netlink attribute.
> Such as:
> [MDBA_MDB] = {
> [MDBA_MDB_ENTRY] = {
> [MDBA_MDB_ENTRY_INFO] {
> struct br_mdb_entry
> [MDBA_MDB_EATTR attributes]
> }
> }
> }
>
> * tests/test_nlattr.h (TEST_NESTED_NLATTR_OBJECT_EX_,
> TEST_NESTED_NLATTR_OBJECT_EX): New macros.
> (TEST_NESTED_NLATTR_OBJECT): Use TEST_NESTED_NLATTR_OBJECT_EX_.
On Tue, Sep 12, 2017 at 10:55:00PM +0800, JingPiao Chen wrote:
> * tests/nlattr_mdba_mdb_entry.c: New file.
> * tests/gen_tests.in (nlattr_mdba_mdb_entry): New entry.
> * tests/pure_executables.list: Add nlattr_mdba_mdb_entry.
> * tests/.gitignore: Likewise.
On Tue, Sep 12, 2017 at 10:55:01PM +0800, JingPiao Chen wrote:
> * tests/nlattr_mdba_router_port.c: New file.
> * tests/gen_tests.in (nlattr_mdba_router_port): New entry.
> * tests/pure_executables.list: Add nlattr_mdba_router_port.
> * tests/.gitignore: Likewise.
Thanks, applied the series some time ago but forgot to send this message
in time, sorry about that.
--
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/20170926/b1d9c081/attachment.bin>
More information about the Strace-devel
mailing list