]> granicus.if.org Git - strace/commit
rtnl_rule: decode new FRA_* attributes
authorEugene Syromyatnikov <evgsyr@gmail.com>
Mon, 16 Apr 2018 00:02:18 +0000 (02:02 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 30 May 2018 20:50:29 +0000 (20:50 +0000)
commit6c3f75ecfa70f108db7613d73af99865087c868c
treef535768b13876f19f6c903a4a42e066a11d20b7c
parent01f39a8001b587ff24254ab8762ba6b880655a3d
rtnl_rule: decode new FRA_* attributes

* nlattr.h (DECL_NLA(ip_proto), DECL_NLA(rt_proto)): New declarations.
* nlattr.c (decode_nla_ip_proto): New function.
* rtnl_route.c (decode_nla_rt_proto): Likewise.
* rtnl_rule.c (decode_rule_port_rang): Likewise.
(fib_rule_hdr_nla_decoders) <[FRA_PROTOCOL]>: New attribute, introduced
by Linux commit v4.17-rc1~148^2~371.
(fib_rule_hdr_nla_decoders) <[FRA_IP_PROTO], [FRA_SPORT_RANGE],
[FRA_DPORT_RANGE]>: New attributes, introduced by Linux commit
v4.17-rc1~148^2~328^2~4.
* xlat/rtnl_rule_attrs.in (FRA_PROTOCOL, FRA_IP_PROTO, FRA_SPORT_RANGE,
FRA_DPORT_RANGE): New constants.

Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
nlattr.c
nlattr.h
rtnl_route.c
rtnl_rule.c
xlat/rtnl_rule_attrs.in