Home
last modified time | relevance | path

Searched refs:rta_tb (Results 1 – 3 of 3) sorted by relevance

/external/iproute2/ip/
Dipaddress.c950 struct rtattr * rta_tb[IFA_MAX+1]; in print_addrinfo() local
965 parse_rtattr(rta_tb, IFA_MAX, IFA_RTA(ifa), in print_addrinfo()
968 ifa_flags = get_ifa_flags(ifa, rta_tb[IFA_FLAGS]); in print_addrinfo()
970 if (!rta_tb[IFA_LOCAL]) in print_addrinfo()
971 rta_tb[IFA_LOCAL] = rta_tb[IFA_ADDRESS]; in print_addrinfo()
972 if (!rta_tb[IFA_ADDRESS]) in print_addrinfo()
973 rta_tb[IFA_ADDRESS] = rta_tb[IFA_LOCAL]; in print_addrinfo()
984 if (rta_tb[IFA_LABEL]) in print_addrinfo()
985 label = RTA_DATA(rta_tb[IFA_LABEL]); in print_addrinfo()
992 if (rta_tb[IFA_LOCAL]) { in print_addrinfo()
[all …]
/external/ipsec-tools/src/racoon/
Dgrabmyaddr.c129 struct rtattr * rta_tb[IFA_MAX+1]; in recvaddrs() local
177 memset(rta_tb, 0, sizeof(rta_tb)); in recvaddrs()
178 parse_rtattr(rta_tb, IFA_MAX, IFA_RTA(m), h->nlmsg_len - NLMSG_LENGTH(sizeof(*m))); in recvaddrs()
180 if (rta_tb[IFA_LOCAL] == NULL) in recvaddrs()
181 rta_tb[IFA_LOCAL] = rta_tb[IFA_ADDRESS]; in recvaddrs()
182 if (rta_tb[IFA_LOCAL] == NULL) in recvaddrs()
195 memcpy(&sin->sin_addr, RTA_DATA(rta_tb[IFA_LOCAL]), 4); in recvaddrs()
198 memcpy(&sin->sin6_addr, RTA_DATA(rta_tb[IFA_LOCAL]), 16); in recvaddrs()
/external/toybox/toys/pending/
Dip.c950 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()
[all …]