Lines Matching refs:tb
93 static void hsr_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[]) in hsr_print_opt() argument
97 if (!tb) in hsr_print_opt()
100 if (tb[IFLA_HSR_SLAVE1] && in hsr_print_opt()
101 RTA_PAYLOAD(tb[IFLA_HSR_SLAVE1]) < sizeof(__u32)) in hsr_print_opt()
103 if (tb[IFLA_HSR_SLAVE2] && in hsr_print_opt()
104 RTA_PAYLOAD(tb[IFLA_HSR_SLAVE2]) < sizeof(__u32)) in hsr_print_opt()
106 if (tb[IFLA_HSR_SEQ_NR] && in hsr_print_opt()
107 RTA_PAYLOAD(tb[IFLA_HSR_SEQ_NR]) < sizeof(__u16)) in hsr_print_opt()
109 if (tb[IFLA_HSR_SUPERVISION_ADDR] && in hsr_print_opt()
110 RTA_PAYLOAD(tb[IFLA_HSR_SUPERVISION_ADDR]) < ETH_ALEN) in hsr_print_opt()
113 if (tb[IFLA_HSR_SLAVE1]) in hsr_print_opt()
117 ll_index_to_name(rta_getattr_u32(tb[IFLA_HSR_SLAVE1]))); in hsr_print_opt()
121 if (tb[IFLA_HSR_SLAVE2]) in hsr_print_opt()
125 ll_index_to_name(rta_getattr_u32(tb[IFLA_HSR_SLAVE2]))); in hsr_print_opt()
129 if (tb[IFLA_HSR_SEQ_NR]) in hsr_print_opt()
133 rta_getattr_u16(tb[IFLA_HSR_SEQ_NR])); in hsr_print_opt()
135 if (tb[IFLA_HSR_SUPERVISION_ADDR]) in hsr_print_opt()
139 ll_addr_n2a(RTA_DATA(tb[IFLA_HSR_SUPERVISION_ADDR]), in hsr_print_opt()
140 RTA_PAYLOAD(tb[IFLA_HSR_SUPERVISION_ADDR]), in hsr_print_opt()