Home
last modified time | relevance | path

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

/bionic/libc/bionic/
Difaddrs.cpp178 if (RTA_PAYLOAD(rta) < sizeof(new_addr->addr)) { in __getifaddrs_callback()
179 new_addr->SetAddress(AF_PACKET, RTA_DATA(rta), RTA_PAYLOAD(rta)); in __getifaddrs_callback()
180 new_addr->SetPacketAttributes(ifi->ifi_index, ifi->ifi_type, RTA_PAYLOAD(rta)); in __getifaddrs_callback()
183 if (RTA_PAYLOAD(rta) < sizeof(new_addr->ifa_ifu)) { in __getifaddrs_callback()
184 new_addr->SetBroadcastAddress(AF_PACKET, RTA_DATA(rta), RTA_PAYLOAD(rta)); in __getifaddrs_callback()
185 new_addr->SetPacketAttributes(ifi->ifi_index, ifi->ifi_type, RTA_PAYLOAD(rta)); in __getifaddrs_callback()
188 if (RTA_PAYLOAD(rta) < sizeof(new_addr->name)) { in __getifaddrs_callback()
189 memcpy(new_addr->name, RTA_DATA(rta), RTA_PAYLOAD(rta)); in __getifaddrs_callback()
224 new_addr->SetAddress(msg->ifa_family, RTA_DATA(rta), RTA_PAYLOAD(rta)); in __getifaddrs_callback()
229 new_addr->SetBroadcastAddress(msg->ifa_family, RTA_DATA(rta), RTA_PAYLOAD(rta)); in __getifaddrs_callback()
[all …]
Dnet_if.cpp100 new_link->data.if_name = strndup(reinterpret_cast<char*>(RTA_DATA(rta)), RTA_PAYLOAD(rta)); in __if_nameindex_callback()
/bionic/libc/kernel/uapi/linux/
Drtnetlink.h177 #define RTA_PAYLOAD(rta) ((int) ((rta)->rta_len) - RTA_LENGTH(0)) macro