File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 3737
3838#include "xlat/rtnl_tc_action_attrs.h"
3939
40+ static const nla_decoder_t tcamsg_nla_decoders [] = {
41+ [TCA_ACT_KIND ] = decode_nla_str ,
42+ [TCA_ACT_OPTIONS ] = NULL , /* unimplemented */
43+ [TCA_ACT_INDEX ] = decode_nla_u32 ,
44+ [TCA_ACT_STATS ] = decode_nla_tc_stats ,
45+ [TCA_ACT_PAD ] = NULL ,
46+ [TCA_ACT_COOKIE ] = NULL /* default parser */
47+ };
48+
4049DECL_NETLINK_ROUTE_DECODER (decode_tcamsg )
4150{
4251 struct tcamsg tca = { .tca_family = family };
@@ -49,6 +58,7 @@ DECL_NETLINK_ROUTE_DECODER(decode_tcamsg)
4958 tprints (", " );
5059 decode_nlattr (tcp , addr + offset , len - offset ,
5160 rtnl_tc_action_attrs , "TCA_ACT_???" ,
52- NULL , 0 , NULL );
61+ tcamsg_nla_decoders ,
62+ ARRAY_SIZE (tcamsg_nla_decoders ), NULL );
5363 }
5464}
You can’t perform that action at this time.
0 commit comments