]> granicus.if.org Git - strace/commit
netlink: add a basic rtnetlink parser of rule messages
authorJingPiao Chen <chenjingpiao@gmail.com>
Sun, 13 Aug 2017 02:22:23 +0000 (10:22 +0800)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 14 Aug 2017 01:06:59 +0000 (01:06 +0000)
commita0d3f258d0e584eb684dec14a8e085ca553163af
tree15e3cada86669206dcdd3d7ebcfc6ab97ec9e412
parenta114dd92fe20e4a0cb81a4f7d90aa79ed0e7d26f
netlink: add a basic rtnetlink parser of rule messages

* defs.h (routing_table_ids): New xlat prototype.
* rtnl_rule.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_rules.h.
* netlink_route.c (route_decoders): Add RTM_DELRULE, RTM_GETRULE,
and RTM_NEWRULE.
* xlat/fib_rule_actions.in: New file.
* xlat/fib_rule_flags.in: Likewise.

Co-authored-by: Fabien Siron <fabien.siron@epita.fr>
Makefile.am
configure.ac
defs.h
netlink_route.c
netlink_route.h
rtnl_rule.c [new file with mode: 0644]
xlat/fib_rule_actions.in [new file with mode: 0644]
xlat/fib_rule_flags.in [new file with mode: 0644]