• Home
  • Raw
  • Download

Lines Matching refs:rta

111 	struct rtattr *rta;  in netlink_msg_to_ifaddr()  local
115 for (rta = NLMSG_RTA(h, sizeof(*ifi)); NLMSG_RTAOK(rta, h); rta = RTA_NEXT(rta)) { in netlink_msg_to_ifaddr()
116 if (rta->rta_type != IFLA_STATS) continue; in netlink_msg_to_ifaddr()
117 stats_len = RTA_DATALEN(rta); in netlink_msg_to_ifaddr()
134 for (rta = NLMSG_RTA(h, sizeof(*ifi)); NLMSG_RTAOK(rta, h); rta = RTA_NEXT(rta)) { in netlink_msg_to_ifaddr()
135 switch (rta->rta_type) { in netlink_msg_to_ifaddr()
137 if (RTA_DATALEN(rta) < sizeof(ifs->name)) { in netlink_msg_to_ifaddr()
138 memcpy(ifs->name, RTA_DATA(rta), RTA_DATALEN(rta)); in netlink_msg_to_ifaddr()
143 …copy_lladdr(&ifs->ifa.ifa_addr, &ifs->addr, RTA_DATA(rta), RTA_DATALEN(rta), ifi->ifi_index, ifi->… in netlink_msg_to_ifaddr()
146 …copy_lladdr(&ifs->ifa.ifa_broadaddr, &ifs->ifu, RTA_DATA(rta), RTA_DATALEN(rta), ifi->ifi_index, i… in netlink_msg_to_ifaddr()
150 memcpy(ifs->ifa.ifa_data, RTA_DATA(rta), RTA_DATALEN(rta)); in netlink_msg_to_ifaddr()
162 for (rta = NLMSG_RTA(h, sizeof(*ifa)); NLMSG_RTAOK(rta, h); rta = RTA_NEXT(rta)) { in netlink_msg_to_ifaddr()
163 switch (rta->rta_type) { in netlink_msg_to_ifaddr()
168 …copy_addr(&ifs->ifa.ifa_dstaddr, ifa->ifa_family, &ifs->ifu, RTA_DATA(rta), RTA_DATALEN(rta), ifa-… in netlink_msg_to_ifaddr()
170 …copy_addr(&ifs->ifa.ifa_addr, ifa->ifa_family, &ifs->addr, RTA_DATA(rta), RTA_DATALEN(rta), ifa->i… in netlink_msg_to_ifaddr()
173 …copy_addr(&ifs->ifa.ifa_broadaddr, ifa->ifa_family, &ifs->ifu, RTA_DATA(rta), RTA_DATALEN(rta), if… in netlink_msg_to_ifaddr()
183 …copy_addr(&ifs->ifa.ifa_addr, ifa->ifa_family, &ifs->addr, RTA_DATA(rta), RTA_DATALEN(rta), ifa->i… in netlink_msg_to_ifaddr()
186 if (RTA_DATALEN(rta) < sizeof(ifs->name)) { in netlink_msg_to_ifaddr()
187 memcpy(ifs->name, RTA_DATA(rta), RTA_DATALEN(rta)); in netlink_msg_to_ifaddr()