[PATCH v7 fix 5/8] Implement new filtering language parsing

2017-08-12 Thread Nikolay Marchuk
* basic_filters.c (parse_set, parse_syscall_set): Use set inversion only in qualify mode. * filter.h (parse_filter_action, parse_qualify_action, parse_filter_expression): Add new declarations. * filter_action.c (parse_filter_action): Add new parsing function. (filtering_parse_finish): Use filtering

Re: [PATCH 00/26] Implemented basic protocol specific decoding of NETLINK_ROUTE

2017-08-12 Thread JingPiao Chen
On Sat, Aug 12, 2017 at 03:22:24AM +0300, Dmitry V. Levin wrote: > On Thu, Aug 10, 2017 at 09:03:22AM +0800, JingPiao Chen wrote: > > Note: > > > > rule: > > Before v2.6.18-284-g14c0b97, rule carry struct rtmsg, > > now carry struct fib_rule_hdr. > > > > $ man 7 rtnetlink # or read the old kernel

Re: [PATCH 00/26] Implemented basic protocol specific decoding of NETLINK_ROUTE

2017-08-12 Thread JingPiao Chen
On Sat, Aug 12, 2017 at 03:22:24AM +0300, Dmitry V. Levin wrote: > On Thu, Aug 10, 2017 at 09:03:22AM +0800, JingPiao Chen wrote: > > Note: > > > > rule: > > Before v2.6.18-284-g14c0b97, rule carry struct rtmsg, > > now carry struct fib_rule_hdr. > > > > $ man 7 rtnetlink # or read the old kernel

Re: [PATCH 00/26] Implemented basic protocol specific decoding of NETLINK_ROUTE

2017-08-12 Thread JingPiao Chen
On Sat, Aug 12, 2017 at 03:22:24AM +0300, Dmitry V. Levin wrote: > On Thu, Aug 10, 2017 at 09:03:22AM +0800, JingPiao Chen wrote: > > Note: > > > > rule: > > Before v2.6.18-284-g14c0b97, rule carry struct rtmsg, > > now carry struct fib_rule_hdr. > > > > $ man 7 rtnetlink # or read the old kernel

Re: [PATCH 02/26] netlink: add a basic rtnetlink parser of addr messages

2017-08-12 Thread JingPiao Chen
On Sat, Aug 12, 2017 at 03:05:15AM +0300, Dmitry V. Levin wrote: > On Thu, Aug 10, 2017 at 09:04:52AM +0800, JingPiao Chen wrote: > > * rtnl_addr.c: New file. > > * Makefile.am (strace_SOURCES): Add it. > > * configure.ac (AC_CHECK_HEADERS): Add linux/if_addr.h. > > * netlink_route.h (decode_ifaddr

Re: [PATCH 02/26] netlink: add a basic rtnetlink parser of addr messages

2017-08-12 Thread Dmitry V. Levin
On Sat, Aug 12, 2017 at 11:33:51PM +0800, JingPiao Chen wrote: > On Sat, Aug 12, 2017 at 03:05:15AM +0300, Dmitry V. Levin wrote: > > On Thu, Aug 10, 2017 at 09:04:52AM +0800, JingPiao Chen wrote: > > > * rtnl_addr.c: New file. > > > * Makefile.am (strace_SOURCES): Add it. > > > * configure.ac (AC_

Re: [PATCH 00/26] Implemented basic protocol specific decoding of NETLINK_ROUTE

2017-08-12 Thread Dmitry V. Levin
On Sat, Aug 12, 2017 at 11:32:57PM +0800, JingPiao Chen wrote: > On Sat, Aug 12, 2017 at 03:22:24AM +0300, Dmitry V. Levin wrote: > > On Thu, Aug 10, 2017 at 09:03:22AM +0800, JingPiao Chen wrote: > > > Note: > > > > > > rule: > > > Before v2.6.18-284-g14c0b97, rule carry struct rtmsg, > > > now c

Re: [PATCH v7 1/8] tests: improve syscall syntax testing

2017-08-12 Thread Dmitry V. Levin
On Fri, Aug 11, 2017 at 05:43:46PM +0700, Nikolay Marchuk wrote: > * tests/filtering_syscall-syntax.test: New file. > * tests/syntax.sh: New file. > * tests/options-syntax.test: Move syscall syntax testing to > filtering_syscall-syntax.test. Move check_* functions to syntax.sh. > * tests/Makefile.a

[PATCH v2 01/25] netlink: add a basic rtnetlink parser of addr messages

2017-08-12 Thread JingPiao Chen
* rtnl_addr.c: New file. * Makefile.am (strace_SOURCES): Add it. * configure.ac (AC_CHECK_HEADERS): Add linux/if_addr.h. * netlink_route.h (decode_ifaddrmsg): New prototype. * netlink_route.c (route_decoders): Add RTM_DELADDR, RTM_GETADDR, RTM_GETANYCAST, RTM_GETMULTICAST add RTM_NEWADDR. * xlat/if

[PATCH v2 02/25] tests: check decoding of rtnetlink addr messages

2017-08-12 Thread JingPiao Chen
* tests/netlink_route.c: Include . (test_rtnl_addr): New function. (main): Use it. Co-authored-by: Fabien Siron --- tests/netlink_route.c | 25 + 1 file changed, 25 insertions(+) diff --git a/tests/netlink_route.c b/tests/netlink_route.c index 0a52dbc..872c236 100644 ---

[PATCH v2 00/25] Implemented basic protocol specific decoding of NETLINK_ROUTE

2017-08-12 Thread JingPiao Chen
Changes in v2: addr: using printxval print ifa_scope. route: * decode rtmsg.rtm_table and rtmsg.rtm_scope do not print default string. * renamed xlat/rtm*.in to xlat/routing_*.in rule: big change neigh: * xlat/neighbor_cache_entry_states.in add new entry. JingPiao Chen (25): netlink: add a b

[PATCH v2 03/25] netlink: add a basic rtnetlink parser of route messages

2017-08-12 Thread JingPiao Chen
* defs.h (routing_scopes): New xlat prototype. * netlink_route.c: New file. * Makefile.am (strace_SOURCES): Add it * netlink_route.h (decode_rtmsg): New prototype. * netlink_route.c (route_decoders): Add RTM_DELROUTE, RTM_GETROUTE, and RTM_NEWROUTE. * xlat/ip_type_of_services.in: New file. * xlat/r

[PATCH v2 10/25] tests: check decoding of rtnetlink neightbl messages

2017-08-12 Thread JingPiao Chen
* tests/netlink_route.c (test_rtnl_neightbl): New function. (main): Use it. Co-authored-by: Fabien Siron --- tests/netlink_route.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/tests/netlink_route.c b/tests/netlink_route.c index 62d5570..929902a 100644 --- a/tests/netlink_

[PATCH v2 13/25] netlink: add a basic rtnetlink parser of tc action messages

2017-08-12 Thread JingPiao Chen
* rtnl_tc_action.c: New file. * Makefile.am (strace_SOURCES): Add it. * netlink_route.h (decode_tcamsg): New prototype. * netlink_route.c (route_decoders): Add RTM_DELACTION, RTM_GETACTION and RTM_NEWACTION. Co-authored-by: Fabien Siron --- Makefile.am | 1 + netlink_route.c | 6 +-

[PATCH v2 09/25] netlink: add a basic rtnetlink parser of neightbl messages

2017-08-12 Thread JingPiao Chen
* 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. Co-authored-by: Fabien Siron --- Makefile.am | 1 + netlink_route.c | 6 +

[PATCH v2 12/25] tests: check decoding of rtnetlink tc messages

2017-08-12 Thread JingPiao Chen
* tests/netlink_route.c (test_rtnl_tc): New function. (main): Use it. Co-authored-by: Fabien Siron --- tests/netlink_route.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/tests/netlink_route.c b/tests/netlink_route.c index 929902a..887e904 100644 --- a/tests/netlink

[PATCH v2 07/25] netlink: add a basic rtnetlink parser of neigh messages

2017-08-12 Thread JingPiao Chen
* 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

[PATCH v2 05/25] netlink: add a basic rtnetlink parser of rule messages

2017-08-12 Thread JingPiao Chen
* defs.h (routing_table_ids): New xlat prototype. * netlink_route.c: New file. * Makefile.am (strace_SOURCES): Add it. * defs.h (ip_type_of_services, routing_table_ids): New xlat prototypes. * netlink_route.h (decode_fib_rule_hdr): New prototype. * configure.ac (AC_CHECK_HEADERS): Add linux/fib_rul

[PATCH v2 11/25] netlink: add a basic rtnetlink parser of tc messages

2017-08-12 Thread JingPiao Chen
* rtnl_tc.c: New file. * Makefile.am (strace_SOURCES): Add it. * netlink_route.h (decode_tcmsg): New prototype. * netlink_route.c (route_decoders): Add RTM_DELQDISC, RTM_GETQDISC, RTM_NEWQDISC, RTM_DELTCLASS, RTM_GETTCLASS, RTM_NEWTCLASS, RTM_DELTFILTER, RTM_GETTFILTER and RTM_NEWTFILTER. Co-autho

[PATCH v2 04/25] tests: check decoding of rtnetlink route messages

2017-08-12 Thread JingPiao Chen
* tests/netlink_route.c: Include . (test_rtnl_route): New function. (main): Use it. Co-authored-by: Fabien Siron --- tests/netlink_route.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/tests/netlink_route.c b/tests/netlink_route.c index 872c236..ff68579 1006

[PATCH v2 08/25] tests: check decoding of rtnetlink neigh messages

2017-08-12 Thread JingPiao Chen
* tests/netlink_route.c: Include . (test_rtnl_neigh): New function. (main): Use it. Co-authored-by: Fabien Siron --- tests/netlink_route.c | 24 1 file changed, 24 insertions(+) diff --git a/tests/netlink_route.c b/tests/netlink_route.c index 9996f94..62d5570 100644 ---

[PATCH v2 06/25] tests: check decoding of rtnetlink rule messages

2017-08-12 Thread JingPiao Chen
* tests/netlink_route.c: Include . (test_rtnl_rule): New function. (main): Use it. Co-authored-by: Fabien Siron --- tests/netlink_route.c | 33 + 1 file changed, 33 insertions(+) diff --git a/tests/netlink_route.c b/tests/netlink_route.c index ff68579..9996f94 10

[PATCH v2 14/25] tests: check decoding of rtnetlink tc action messages

2017-08-12 Thread JingPiao Chen
* tests/netlink_route.c (test_rtnl_tca): New function. (main): Use it. Co-authored-by: Fabien Siron --- tests/netlink_route.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/tests/netlink_route.c b/tests/netlink_route.c index 887e904..b45eb39 100644 --- a/tests/netlink_route

[PATCH v2 16/25] tests: check decoding of rtnetlink addrlabel messages

2017-08-12 Thread JingPiao Chen
* tests/netlink_route.c: Include . (test_rtnl_addrlabel): New function. (main): Use it. Co-authored-by: Fabien Siron --- tests/netlink_route.c | 29 + 1 file changed, 29 insertions(+) diff --git a/tests/netlink_route.c b/tests/netlink_route.c index b45eb39..3023c6c 1

[PATCH v2 17/25] netlink: add a basic rtnetlink parser of dcb messages

2017-08-12 Thread JingPiao Chen
* rtnl_dcb.c: New file. * Makefile.am (strace_SOURCES): Add it. * netlink_route.h (decode_dcbmsg): New prototype. * configure.ac (AC_CHECK_HEADERS): Add linux/dcbnl.h. (AC_CHECK_TYPES): Check for struct dcbmsg in . * netlink_route.c (route_decoders): Add RTM_GETDCB and RTM_SETDCB. * xlat/dcb_comman

[PATCH v2 19/25] netlink: add a basic rtnetlink parser of netconf messages

2017-08-12 Thread JingPiao Chen
* rtnl_netconf.c: New file. * Makefile.am (strace_SOURCES): Add it. * netlink_route.h (decode_netconfmsg): New prototype. * configure.ac (AC_CHECK_HEADERS): Add linux/netconf.h. (AC_CHECK_TYPES): Check for struct netconfmsg in . * netlink_route.c (route_decoders): Add RTM_GETNETCONF and RTM_NEWNETC

[PATCH v2 15/25] netlink: add a basic rtnetlink parser of addrlabel messages

2017-08-12 Thread JingPiao Chen
* rtnl_addrlabel.c: New file. * Makefile.am (strace_SOURCES): Add it. * netlink_route.h (decode_ifaddrlblmsg): New prototype. * configure.ac (AC_CHECK_HEADERS): Add linux/if_addrlabel.h. (AC_CHECK_TYPES): Check for struct ifaddrlblmsg in . * netlink_route.c (route_decoders): Add RTM_DELADDRLABEL, R

[PATCH v2 18/25] tests: check decoding of rtnetlink dcb messages

2017-08-12 Thread JingPiao Chen
* tests/netlink_route.c: Include . (test_rtnl_dcb): New function. (main): Use it. Co-authored-by: Fabien Siron --- tests/netlink_route.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/tests/netlink_route.c b/tests/netlink_route.c index 3023c6c..e69d06d 100644 --- a/t

[PATCH v2 21/25] netlink: add a basic rtnetlink parser of mdb messages

2017-08-12 Thread JingPiao Chen
* rtnl_mdb.c: New file. * Makefile.am (strace_SOURCES): Add it. * netlink_route.h (decode_br_port_msg): New prototype. * configure.ac (AC_CHECK_TYPES): Check for struct br_port_msg in . * netlink_route.c (route_decoders): Add RTM_DELMDB, RTM_GETMDB and RTM_NEWMDB. Co-authored-by: Fabien Siron ---

[PATCH v2 22/25] tests: check decoding of rtnetlink mdb messages

2017-08-12 Thread JingPiao Chen
* tests/netlink_route.c: Include and . (test_rtnl_mdb): New function. (main): Use it. Co-authored-by: Fabien Siron --- tests/netlink_route.c | 21 + 1 file changed, 21 insertions(+) diff --git a/tests/netlink_route.c b/tests/netlink_route.c index 99ab7d7..14e6a4c 100644 ---

[PATCH v2 20/25] tests: check decoding of rtnetlink netconf messages

2017-08-12 Thread JingPiao Chen
* tests/netlink_route.c: Include . (test_rtnl_netconf): New function. (main): Use it. Co-authored-by: Fabien Siron --- tests/netlink_route.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/tests/netlink_route.c b/tests/netlink_route.c index e69d06d..99ab7d7 100644 ---

[PATCH v2 23/25] netlink: add a basic rtnetlink parser of nsid messages

2017-08-12 Thread JingPiao Chen
* rtnl_nsid.c: New file. * Makefile.am (strace_SOURCES): Add it. * netlink_route.h (decode_rtgenmsg): New prototype. * netlink_route.c (route_decoders): Add RTM_DELNSID, RTM_GETNSID and RTM_NEWNSID. Co-authored-by: Fabien Siron --- Makefile.am | 1 + netlink_route.c | 6 +- netlink_rou

[PATCH v2 24/25] tests: check decoding of rtnetlink nsid messages

2017-08-12 Thread JingPiao Chen
* tests/netlink_route.c (test_rtnl_nsid): New function. (main): Use it. Co-authored-by: Fabien Siron --- tests/netlink_route.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/tests/netlink_route.c b/tests/netlink_route.c index 14e6a4c..bbe4f4e 100644 --- a/tests/netlink_

[PATCH v2 25/25] Update NEWS

2017-08-12 Thread JingPiao Chen
--- NEWS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/NEWS b/NEWS index ad237e2..702e5d8 100644 --- a/NEWS +++ b/NEWS @@ -21,6 +21,9 @@ Noteworthy changes in release ?.?? (-??-??) * Implemented basic protocol specific decoding of NETLINK_CRYPTO. * Implemented decoding of crypto