Lines Matching refs:rta_tb
232 struct rtattr *rta_tb[IFA_MAX+1]; in print_addrinfo() local
246 parse_rtattr(rta_tb, IFA_MAX, IFA_RTA(ifa), n->nlmsg_len - NLMSG_LENGTH(sizeof(*ifa))); in print_addrinfo()
248 ifa_flags = rta_tb[IFA_FLAGS] ? *(__u32*)RTA_DATA(rta_tb[IFA_FLAGS]) : ifa->ifa_flags; in print_addrinfo()
250 if (!rta_tb[IFA_LOCAL]) in print_addrinfo()
251 rta_tb[IFA_LOCAL] = rta_tb[IFA_ADDRESS]; in print_addrinfo()
252 if (!rta_tb[IFA_ADDRESS]) in print_addrinfo()
253 rta_tb[IFA_ADDRESS] = rta_tb[IFA_LOCAL]; in print_addrinfo()
263 if (rta_tb[IFA_LABEL]) in print_addrinfo()
264 label = RTA_DATA(rta_tb[IFA_LABEL]); in print_addrinfo()
271 if (rta_tb[IFA_LOCAL]) { in print_addrinfo()
275 memcpy(&dst.data, RTA_DATA(rta_tb[IFA_LOCAL]), RTA_PAYLOAD(rta_tb[IFA_LOCAL])); in print_addrinfo()
309 if (rta_tb[IFA_LOCAL]) { in print_addrinfo()
310 fputs_stdout(rt_addr_n2a(ifa->ifa_family, RTA_DATA(rta_tb[IFA_LOCAL]))); in print_addrinfo()
312 if (rta_tb[IFA_ADDRESS] == NULL in print_addrinfo()
313 || memcmp(RTA_DATA(rta_tb[IFA_ADDRESS]), RTA_DATA(rta_tb[IFA_LOCAL]), 4) == 0 in print_addrinfo()
318 rt_addr_n2a(ifa->ifa_family, RTA_DATA(rta_tb[IFA_ADDRESS])), in print_addrinfo()
324 if (rta_tb[IFA_BROADCAST]) { in print_addrinfo()
327 RTA_DATA(rta_tb[IFA_BROADCAST])) in print_addrinfo()
330 if (rta_tb[IFA_ANYCAST]) { in print_addrinfo()
333 RTA_DATA(rta_tb[IFA_ANYCAST])) in print_addrinfo()
363 if (rta_tb[IFA_LABEL]) in print_addrinfo()
364 fputs_stdout((char*)RTA_DATA(rta_tb[IFA_LABEL])); in print_addrinfo()
365 if (rta_tb[IFA_CACHEINFO]) { in print_addrinfo()
366 struct ifa_cacheinfo *ci = RTA_DATA(rta_tb[IFA_CACHEINFO]); in print_addrinfo()