Lines Matching refs:tb
49 int tb; member
61 struct rtattr * tb[RTA_MAX+1]; in print_mroute() local
86 parse_rtattr(tb, RTA_MAX, RTM_RTA(r), len); in print_mroute()
87 table = rtm_get_table(r, tb); in print_mroute()
89 if (filter.tb > 0 && filter.tb != table) in print_mroute()
92 if (tb[RTA_IIF]) in print_mroute()
93 iif = *(int*)RTA_DATA(tb[RTA_IIF]); in print_mroute()
100 if (tb[RTA_DST] && filter.mdst.bitlen > 0) { in print_mroute()
105 memcpy(&dst.data, RTA_DATA(tb[RTA_DST]), RTA_PAYLOAD(tb[RTA_DST])); in print_mroute()
110 if (tb[RTA_SRC] && filter.msrc.bitlen > 0) { in print_mroute()
115 memcpy(&src.data, RTA_DATA(tb[RTA_SRC]), RTA_PAYLOAD(tb[RTA_SRC])); in print_mroute()
125 if (tb[RTA_SRC]) in print_mroute()
128 RTA_PAYLOAD(tb[RTA_SRC]), in print_mroute()
129 RTA_DATA(tb[RTA_SRC]), in print_mroute()
133 if (tb[RTA_DST]) in print_mroute()
136 RTA_PAYLOAD(tb[RTA_DST]), in print_mroute()
137 RTA_DATA(tb[RTA_DST]), in print_mroute()
148 if (tb[RTA_MULTIPATH]) { in print_mroute()
149 struct rtnexthop *nh = RTA_DATA(tb[RTA_MULTIPATH]); in print_mroute()
152 len = RTA_PAYLOAD(tb[RTA_MULTIPATH]); in print_mroute()
173 if (show_stats && tb[RTA_MFC_STATS]) { in print_mroute()
174 struct rta_mfc_stats *mfcs = RTA_DATA(tb[RTA_MFC_STATS]); in print_mroute()
208 filter.tb = RT_TABLE_DEFAULT; /* for backward compatibility */ in mroute_list()
218 filter.tb = 0; in mroute_list()
225 filter.tb = tid; in mroute_list()