]> granicus.if.org Git - strace/commitdiff
rtnl_addr: decode IFA_RT_PRIORITY and IFA_TARGET_NETNSID
authorEugene Syromyatnikov <evgsyr@gmail.com>
Fri, 14 Dec 2018 18:53:25 +0000 (19:53 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 8 Jul 2019 21:04:00 +0000 (21:04 +0000)
* rtnl_addr.c (ifaddrmsg_nla_decoders): Decode IFA_RT_PRIORITY as u32,
decode IFA_TARGET_NETNSID as s32.

rtnl_addr.c

index 88ef39c1950086cda795b14c5d648647ba6bbf18..e572eaa79a803e006c2da9d4086d054661955298 100644 (file)
@@ -73,14 +73,16 @@ decode_ifa_flags(struct tcb *const tcp,
 }
 
 static const nla_decoder_t ifaddrmsg_nla_decoders[] = {
-       [IFA_ADDRESS]   = decode_ifa_address,
-       [IFA_LOCAL]     = decode_ifa_address,
-       [IFA_LABEL]     = decode_nla_str,
-       [IFA_BROADCAST] = decode_ifa_address,
-       [IFA_ANYCAST]   = decode_ifa_address,
-       [IFA_CACHEINFO] = decode_ifa_cacheinfo,
-       [IFA_MULTICAST] = decode_ifa_address,
-       [IFA_FLAGS]     = decode_ifa_flags
+       [IFA_ADDRESS]           = decode_ifa_address,
+       [IFA_LOCAL]             = decode_ifa_address,
+       [IFA_LABEL]             = decode_nla_str,
+       [IFA_BROADCAST]         = decode_ifa_address,
+       [IFA_ANYCAST]           = decode_ifa_address,
+       [IFA_CACHEINFO]         = decode_ifa_cacheinfo,
+       [IFA_MULTICAST]         = decode_ifa_address,
+       [IFA_FLAGS]             = decode_ifa_flags,
+       [IFA_RT_PRIORITY]       = decode_nla_u32,
+       [IFA_TARGET_NETNSID]    = decode_nla_s32,
 };
 
 DECL_NETLINK_ROUTE_DECODER(decode_ifaddrmsg)