Home
last modified time | relevance | path

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

/external/ipsec-tools/src/racoon/
Dgrabmyaddr.c133 struct rtattr * rta_tb[IFA_MAX+1]; in recvaddrs() local
181 memset(rta_tb, 0, sizeof(rta_tb)); in recvaddrs()
182 parse_rtattr(rta_tb, IFA_MAX, IFA_RTA(m), h->nlmsg_len - NLMSG_LENGTH(sizeof(*m))); in recvaddrs()
184 if (rta_tb[IFA_LOCAL] == NULL) in recvaddrs()
185 rta_tb[IFA_LOCAL] = rta_tb[IFA_ADDRESS]; in recvaddrs()
186 if (rta_tb[IFA_LOCAL] == NULL) in recvaddrs()
199 memcpy(&sin->sin_addr, RTA_DATA(rta_tb[IFA_LOCAL]), 4); in recvaddrs()
202 memcpy(&sin->sin6_addr, RTA_DATA(rta_tb[IFA_LOCAL]), 16); in recvaddrs()
/external/iproute2/ip/
Dipaddress.c1484 struct rtattr *rta_tb[IFA_MAX+1]; in print_addrinfo() local
1499 parse_rtattr(rta_tb, IFA_MAX, IFA_RTA(ifa), in print_addrinfo()
1502 ifa_flags = get_ifa_flags(ifa, rta_tb[IFA_FLAGS]); in print_addrinfo()
1504 if (!rta_tb[IFA_LOCAL]) in print_addrinfo()
1505 rta_tb[IFA_LOCAL] = rta_tb[IFA_ADDRESS]; in print_addrinfo()
1506 if (!rta_tb[IFA_ADDRESS]) in print_addrinfo()
1507 rta_tb[IFA_ADDRESS] = rta_tb[IFA_LOCAL]; in print_addrinfo()
1519 if (rta_tb[IFA_LABEL]) in print_addrinfo()
1520 label = RTA_DATA(rta_tb[IFA_LABEL]); in print_addrinfo()
1527 if (rta_tb[IFA_LOCAL]) { in print_addrinfo()
[all …]
/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 …]