summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Syromyatnikov <evgsyr@gmail.com>2019-01-03 14:46:58 +0100
committerEugene Syromyatnikov <evgsyr@gmail.com>2022-09-02 17:55:13 +0200
commit37f4bd7da76822f98120ef53080e36ee524cbd76 (patch)
tree3257d44c9820509707d9e32fa3d3d1aae15a5780
parentc1c7da503d75de9bfbbdd93f9ba33662dd5cecf3 (diff)
downloadstrace-37f4bd7da76822f98120ef53080e36ee524cbd76.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--src/rtnl_neigh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtnl_neigh.c b/src/rtnl_neigh.c
index a173ed2d6..ba1518c01 100644
--- a/src/rtnl_neigh.c
+++ b/src/rtnl_neigh.c
@@ -146,7 +146,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_u8,
+ [NDA_PROTOCOL] = decode_nla_ip_proto,
[NDA_NH_ID] = decode_nla_u32,
[NDA_FDB_EXT_ATTRS] = decode_nda_fdb_ext_attrs,
[NDA_FLAGS_EXT] = decode_nda_ext_flags,