Lines Matching refs:rta_tb
950 struct rtattr *rta, *rta_tb[IFA_MAX+1] = {0,}; in print_addrinfo() local
963 if (rta->rta_type <= IFA_MAX) rta_tb[rta->rta_type] = rta; in print_addrinfo()
965 if (!rta_tb[IFA_LOCAL]) rta_tb[IFA_LOCAL] = rta_tb[IFA_ADDRESS]; in print_addrinfo()
966 if (!rta_tb[IFA_ADDRESS]) rta_tb[IFA_ADDRESS] = rta_tb[IFA_LOCAL]; in print_addrinfo()
971 if ((rta_tb[IFA_LABEL])) { in print_addrinfo()
972 xstrncpy(label, RTA_DATA(rta_tb[IFA_LABEL]), 256); in print_addrinfo()
1000 if (rta_tb[IFA_LOCAL]) { in print_addrinfo()
1001 if (!inet_ntop(ifa->ifa_family, RTA_DATA(rta_tb[IFA_LOCAL]), in print_addrinfo()
1005 if (!rta_tb[IFA_ADDRESS] || !memcmp(RTA_DATA(rta_tb[IFA_ADDRESS]), in print_addrinfo()
1006 RTA_DATA(rta_tb[IFA_LOCAL]), 4)) in print_addrinfo()
1009 if (!inet_ntop(ifa->ifa_family, RTA_DATA(rta_tb[IFA_ADDRESS]), in print_addrinfo()
1018 if (rta_tb[IFA_BROADCAST]) { in print_addrinfo()
1019 if (!inet_ntop(ifa->ifa_family, RTA_DATA(rta_tb[IFA_BROADCAST]), in print_addrinfo()
1024 if (rta_tb[IFA_ANYCAST]) { in print_addrinfo()
1025 if (!inet_ntop(ifa->ifa_family, RTA_DATA(rta_tb[IFA_ANYCAST]), in print_addrinfo()
1036 if (rta_tb[IFA_CACHEINFO]) { in print_addrinfo()
1037 struct ifa_cacheinfo *ci = RTA_DATA(rta_tb[IFA_CACHEINFO]); in print_addrinfo()
1351 struct rtattr *rta, *rta_tb[IFA_MAX+1] = {0,}; in ipaddr_print() local
1363 memset(rta_tb, 0, sizeof(rta_tb)); in ipaddr_print()
1366 if (rta->rta_type <= IFA_MAX) rta_tb[rta->rta_type] = rta; in ipaddr_print()
1368 if (!rta_tb[IFA_LOCAL]) rta_tb[IFA_LOCAL] = rta_tb[IFA_ADDRESS]; in ipaddr_print()
1369 if (rta_tb[IFA_LOCAL]) { in ipaddr_print()
1370 if (!inet_ntop(TT.addressfamily, RTA_DATA(rta_tb[IFA_LOCAL]), in ipaddr_print()