Searched refs:RTA_DATALEN (Results 1 – 5 of 5) sorted by relevance
/third_party/musl/src/network/ |
D | getifaddrs.c | 117 stats_len = RTA_DATALEN(rta); 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() 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() [all …]
|
D | netlink.h | 86 #define RTA_DATALEN(rta) ((rta)->rta_len-sizeof(struct rtattr)) macro
|
D | if_nameindex.c | 47 namelen = RTA_DATALEN(rta) - 1; in netlink_msg_to_nameindex()
|
/third_party/musl/porting/liteos_a/user/src/network/ |
D | getifaddrs.c | 126 stats_len = RTA_DATALEN(rta); in netlink_msg_to_ifaddr() 146 if (RTA_DATALEN(rta) < sizeof(ifs->name)) { in netlink_msg_to_ifaddr() 147 memcpy(ifs->name, RTA_DATA(rta), RTA_DATALEN(rta)); in netlink_msg_to_ifaddr() 152 …copy_lladdr(&ifs->ifa.ifa_addr, &ifs->addr, RTA_DATA(rta), RTA_DATALEN(rta), ifi->ifi_index, ifi->… in netlink_msg_to_ifaddr() 155 …copy_lladdr(&ifs->ifa.ifa_broadaddr, &ifs->ifu, RTA_DATA(rta), RTA_DATALEN(rta), ifi->ifi_index, i… in netlink_msg_to_ifaddr() 159 memcpy(ifs->ifa.ifa_data, RTA_DATA(rta), RTA_DATALEN(rta)); in netlink_msg_to_ifaddr() 177 …copy_addr(&ifs->ifa.ifa_dstaddr, ifa->ifa_family, &ifs->ifu, RTA_DATA(rta), RTA_DATALEN(rta), ifa-… in netlink_msg_to_ifaddr() 179 …copy_addr(&ifs->ifa.ifa_addr, ifa->ifa_family, &ifs->addr, RTA_DATA(rta), RTA_DATALEN(rta), ifa->i… in netlink_msg_to_ifaddr() 182 …copy_addr(&ifs->ifa.ifa_broadaddr, ifa->ifa_family, &ifs->ifu, RTA_DATA(rta), RTA_DATALEN(rta), if… in netlink_msg_to_ifaddr() 192 …copy_addr(&ifs->ifa.ifa_addr, ifa->ifa_family, &ifs->addr, RTA_DATA(rta), RTA_DATALEN(rta), ifa->i… in netlink_msg_to_ifaddr() [all …]
|
D | if_nameindex.c | 48 namelen = RTA_DATALEN(rta) - 1; in netlink_msg_to_nameindex()
|