]> granicus.if.org Git - strace/commit
rtnl_rule: decode fib_rule_hdr netlink attributes
authorJingPiao Chen <chenjingpiao@gmail.com>
Sun, 27 Aug 2017 16:33:30 +0000 (00:33 +0800)
committerJingPiao Chen <chenjingpiao@gmail.com>
Tue, 29 Aug 2017 07:13:12 +0000 (15:13 +0800)
commitb9a437c1471f946e93ab33e7befecc7bc8ff6694
treea2726fb24822245352c4464ced9b7b9429dfeee0
parent62c573a002f905659cc9f4f21115fa2a9671ff8b
rtnl_rule: decode fib_rule_hdr netlink attributes

* 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.
configure.ac
nlattr.c
nlattr.h
rtnl_rule.c