Home | History | Annotate | Download | only in route

Lines Matching refs:tb

36 int tca_parse(struct nlattr **tb, int maxattr, struct rtnl_tca *g,
41 return nla_parse(tb, maxattr,
45 /* Ugly but tb[] must be in a defined state even if no
47 memset(tb, 0, sizeof(struct nlattr *) * (maxattr + 1));
60 struct nlattr *tb[TCA_MAX + 1];
64 err = nlmsg_parse(n, sizeof(*tm), tb, TCA_MAX, tc_policy);
68 if (tb[TCA_KIND] == NULL)
71 nla_strlcpy(g->tc_kind, tb[TCA_KIND], TCKINDSIZ);
83 if (tb[TCA_OPTIONS]) {
84 g->tc_opts = nl_data_alloc_attr(tb[TCA_OPTIONS]);
91 if (tb[TCA_STATS2]) {
94 err = nla_parse_nested(tbs, TCA_STATS_MAX, tb[TCA_STATS2],
135 if (tb[TCA_STATS]) {
136 struct tc_stats *st = nla_data(tb[TCA_STATS]);
151 if (tb[TCA_XSTATS]) {
152 g->tc_xstats = nl_data_alloc_attr(tb[TCA_XSTATS]);