diff options
author | JingPiao Chen <chenjingpiao@gmail.com> | 2017-08-28 00:33:30 +0800 |
---|---|---|
committer | JingPiao Chen <chenjingpiao@gmail.com> | 2017-08-29 15:13:12 +0800 |
commit | b9a437c1471f946e93ab33e7befecc7bc8ff6694 (patch) | |
tree | a2726fb24822245352c4464ced9b7b9429dfeee0 /nlattr.h | |
parent | 62c573a002f905659cc9f4f21115fa2a9671ff8b (diff) | |
download | strace-b9a437c1471f946e93ab33e7befecc7bc8ff6694.tar.gz |
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.
Diffstat (limited to 'nlattr.h')
-rw-r--r-- | nlattr.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -56,6 +56,7 @@ DECL_NLA(s8); DECL_NLA(s16); DECL_NLA(s32); DECL_NLA(s64); +DECL_NLA(be64); DECL_NLA(str); DECL_NLA(strn); DECL_NLA(ifindex); |