summaryrefslogtreecommitdiff
path: root/nlattr.h
diff options
context:
space:
mode:
authorJingPiao Chen <chenjingpiao@gmail.com>2017-08-28 00:33:30 +0800
committerJingPiao Chen <chenjingpiao@gmail.com>2017-08-29 15:13:12 +0800
commitb9a437c1471f946e93ab33e7befecc7bc8ff6694 (patch)
treea2726fb24822245352c4464ced9b7b9429dfeee0 /nlattr.h
parent62c573a002f905659cc9f4f21115fa2a9671ff8b (diff)
downloadstrace-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/nlattr.h b/nlattr.h
index 636c7872e..db1fd69f2 100644
--- a/nlattr.h
+++ b/nlattr.h
@@ -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);