File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 4040
4141# include "xlat/rtnl_netconf_attrs.h"
4242
43+ static const nla_decoder_t netconfmsg_nla_decoders [] = {
44+ [NETCONFA_IFINDEX ] = decode_nla_ifindex ,
45+ [NETCONFA_FORWARDING ] = decode_nla_s32 ,
46+ [NETCONFA_RP_FILTER ] = decode_nla_s32 ,
47+ [NETCONFA_MC_FORWARDING ] = decode_nla_s32 ,
48+ [NETCONFA_PROXY_NEIGH ] = decode_nla_s32 ,
49+ [NETCONFA_IGNORE_ROUTES_WITH_LINKDOWN ] = decode_nla_s32 ,
50+ [NETCONFA_INPUT ] = decode_nla_s32
51+ };
52+
4353DECL_NETLINK_ROUTE_DECODER (decode_netconfmsg )
4454{
4555 struct netconfmsg ncm = { .ncm_family = family };
@@ -52,7 +62,8 @@ DECL_NETLINK_ROUTE_DECODER(decode_netconfmsg)
5262 tprints (", " );
5363 decode_nlattr (tcp , addr + offset , len - offset ,
5464 rtnl_netconf_attrs , "NETCONFA_???" ,
55- NULL , 0 , NULL );
65+ netconfmsg_nla_decoders ,
66+ ARRAY_SIZE (netconfmsg_nla_decoders ), NULL );
5667 }
5768}
5869
You can’t perform that action at this time.
0 commit comments