Home
last modified time | relevance | path

Searched refs:RTA_DATA (Results 1 – 17 of 17) sorted by relevance

/third_party/ltp/testcases/kernel/crypto/
Dcrypto_user01.c52 const struct crypto_report_larval *p = RTA_DATA(rta); in validate_attr()
58 const struct crypto_report_hash *p = RTA_DATA(rta); in validate_attr()
64 const struct crypto_report_blkcipher *p = RTA_DATA(rta); in validate_attr()
71 const struct crypto_report_aead *p = RTA_DATA(rta); in validate_attr()
78 const struct crypto_report_comp *p = RTA_DATA(rta); in validate_attr()
84 const struct crypto_report_rng *p = RTA_DATA(rta); in validate_attr()
90 const struct crypto_report_cipher *p = RTA_DATA(rta); in validate_attr()
96 const struct crypto_report_akcipher *p = RTA_DATA(rta); in validate_attr()
102 const struct crypto_report_kpp *p = RTA_DATA(rta); in validate_attr()
108 const struct crypto_report_acomp *p = RTA_DATA(rta); in validate_attr()
/third_party/musl/src/network/
Dgetifaddrs.c138 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()
187 memcpy(ifs->name, RTA_DATA(rta), RTA_DATALEN(rta)); in netlink_msg_to_ifaddr()
Dif_nameindex.c57 memcmp(map->name, RTA_DATA(rta), namelen) == 0) in netlink_msg_to_nameindex()
73 memcpy(map->name, RTA_DATA(rta), namelen); in netlink_msg_to_nameindex()
Dnetlink.h85 #define RTA_DATA(rta) ((void*)((char*)(rta)+sizeof(struct rtattr))) macro
/third_party/musl/porting/liteos_a/user/src/network/
Dgetifaddrs.c147 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()
196 memcpy(ifs->name, RTA_DATA(rta), RTA_DATALEN(rta)); in netlink_msg_to_ifaddr()
Dif_nameindex.c58 memcmp(map->name, RTA_DATA(rta), namelen) == 0) in netlink_msg_to_nameindex()
74 memcpy(map->name, RTA_DATA(rta), namelen); in netlink_msg_to_nameindex()
/third_party/toybox/toys/pending/
Dip.c463 memcpy(RTA_DATA(subrta), data, alen); in add_varlen_rtattr_to_buffer()
486 memcpy(RTA_DATA(rta), data, alen); in add_string_to_rtattr()
894 snprintf(link->iface, IFNAMSIZ, "%s",(char *) RTA_DATA(attr)); in get_link_info()
900 inet_ntop(AF_INET, RTA_DATA(attr), link->laddr, 64); in get_link_info()
901 else fill_address(RTA_DATA(attr), link->laddr); in get_link_info()
907 inet_ntop(AF_INET, RTA_DATA(attr), link->bcast, 64); in get_link_info()
908 else fill_address(RTA_DATA(attr), link->bcast); in get_link_info()
911 link->mtu = *((int*)(RTA_DATA(attr))); in get_link_info()
914 snprintf(link->qdiscpline, IFNAMSIZ, "%s", (char *) RTA_DATA(attr)); in get_link_info()
917 link->rt_stat = *((struct rtnl_link_stats*) RTA_DATA(attr)); in get_link_info()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
Dnetlink.c201 *((char *) RTA_DATA(rta)) = linkmode; in netlink_send_oper_ifla()
210 *((char *) RTA_DATA(rta)) = operstate; in netlink_send_oper_ifla()
Dpriv_netlink.h72 #define RTA_DATA(rta) ((void *) (((char *) (rta)) + RTA_LENGTH(0))) macro
Ddriver_nl80211.c1070 os_memcpy(ifname, RTA_DATA(attr), RTA_PAYLOAD(attr)); in wpa_driver_nl80211_event_rtm_newlink()
1245 os_memcpy(ifname, RTA_DATA(attr), RTA_PAYLOAD(attr)); in wpa_driver_nl80211_event_rtm_dellink()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/
Dnetlink.c201 *((char *) RTA_DATA(rta)) = linkmode; in netlink_send_oper_ifla()
210 *((char *) RTA_DATA(rta)) = operstate; in netlink_send_oper_ifla()
Dpriv_netlink.h72 #define RTA_DATA(rta) ((void *) (((char *) (rta)) + RTA_LENGTH(0))) macro
Ddriver_nl80211.c1070 os_memcpy(ifname, RTA_DATA(attr), RTA_PAYLOAD(attr)); in wpa_driver_nl80211_event_rtm_newlink()
1245 os_memcpy(ifname, RTA_DATA(attr), RTA_PAYLOAD(attr)); in wpa_driver_nl80211_event_rtm_dellink()
/third_party/glib/gio/
Dgnetworkmonitornetlink.c375 dest = RTA_DATA (attr); in read_netlink_messages()
377 gateway = RTA_DATA (attr); in read_netlink_messages()
379 oif = RTA_DATA (attr); in read_netlink_messages()
/third_party/ltp/testcases/kernel/containers/share/
Dns_ifmove.c116 memcpy(RTA_DATA(rta), &pid, sizeof(pid)); in main()
/third_party/ltp/testcases/lib/
Dtst_net_iface_prefix.c83 inet_ntop(family, RTA_DATA(retrta), pradd, in read_iface_prefix()
/third_party/libnl/include/linux-private/linux/
Drtnetlink.h190 #define RTA_DATA(rta) ((void*)(((char*)(rta)) + RTA_LENGTH(0))) macro