Browse Source

rtnl_addr: decode IFA_RT_PRIORITY and IFA_TARGET_NETNSID

* rtnl_addr.c (ifaddrmsg_nla_decoders): Decode IFA_RT_PRIORITY as u32,
decode IFA_TARGET_NETNSID as s32.
Eugene Syromyatnikov 1 year ago
parent
commit
21902c5503
1 changed files with 10 additions and 8 deletions
  1. 10
    8
      rtnl_addr.c

+ 10
- 8
rtnl_addr.c View File

@@ -73,14 +73,16 @@ decode_ifa_flags(struct tcb *const tcp,
73 73
 }
74 74
 
75 75
 static const nla_decoder_t ifaddrmsg_nla_decoders[] = {
76
-	[IFA_ADDRESS]	= decode_ifa_address,
77
-	[IFA_LOCAL]	= decode_ifa_address,
78
-	[IFA_LABEL]	= decode_nla_str,
79
-	[IFA_BROADCAST]	= decode_ifa_address,
80
-	[IFA_ANYCAST]	= decode_ifa_address,
81
-	[IFA_CACHEINFO]	= decode_ifa_cacheinfo,
82
-	[IFA_MULTICAST]	= decode_ifa_address,
83
-	[IFA_FLAGS]	= decode_ifa_flags
76
+	[IFA_ADDRESS]		= decode_ifa_address,
77
+	[IFA_LOCAL]		= decode_ifa_address,
78
+	[IFA_LABEL]		= decode_nla_str,
79
+	[IFA_BROADCAST]		= decode_ifa_address,
80
+	[IFA_ANYCAST]		= decode_ifa_address,
81
+	[IFA_CACHEINFO]		= decode_ifa_cacheinfo,
82
+	[IFA_MULTICAST]		= decode_ifa_address,
83
+	[IFA_FLAGS]		= decode_ifa_flags,
84
+	[IFA_RT_PRIORITY]	= decode_nla_u32,
85
+	[IFA_TARGET_NETNSID]	= decode_nla_s32,
84 86
 };
85 87
 
86 88
 DECL_NETLINK_ROUTE_DECODER(decode_ifaddrmsg)

Loading…
Cancel
Save