diff options
author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2019-01-03 14:46:58 +0100 |
---|---|---|
committer | Eugene Syromyatnikov <evgsyr@gmail.com> | 2019-01-03 14:46:58 +0100 |
commit | 8a5d6d40c75fb30a0d8d1989d122f3e570790671 (patch) | |
tree | 4916e952d9d53792ff11f08aca1829873ce8c950 | |
parent | 87a791897aa88132a148265aa6aa6b61d073bf61 (diff) | |
download | strace-8a5d6d40c75fb30a0d8d1989d122f3e570790671.tar.gz |
rtnl_neigh: add NDA_PROTOCOL attribute
* xlat/rtnl_neigh_attrs.in (NDA_PROTOCOL): New constant, introduced by
Linux commit v4.20-rc6-1429-gdf9b0e30d44c.
* rtnl_neigh.c (ndmsg_nla_decoders) <[NDA_PROTOCOL]>: Decode as an IP
protocol.
-rw-r--r-- | rtnl_neigh.c | 1 | ||||
-rw-r--r-- | xlat/rtnl_neigh_attrs.in | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/rtnl_neigh.c b/rtnl_neigh.c index 5a0b3641c..2926820a2 100644 --- a/rtnl_neigh.c +++ b/rtnl_neigh.c @@ -88,6 +88,7 @@ static const nla_decoder_t ndmsg_nla_decoders[] = { [NDA_MASTER] = decode_nla_ifindex, [NDA_LINK_NETNSID] = decode_nla_u32, [NDA_SRC_VNI] = decode_nla_u32, + [NDA_PROTOCOL] = decode_nla_ip_proto, }; DECL_NETLINK_ROUTE_DECODER(decode_ndmsg) diff --git a/xlat/rtnl_neigh_attrs.in b/xlat/rtnl_neigh_attrs.in index fed013a1b..b59c63d2f 100644 --- a/xlat/rtnl_neigh_attrs.in +++ b/xlat/rtnl_neigh_attrs.in @@ -10,3 +10,4 @@ NDA_IFINDEX 8 NDA_MASTER 9 NDA_LINK_NETNSID 10 NDA_SRC_VNI 11 +NDA_PROTOCOL 12 |