Home
last modified time | relevance | path

Searched refs:subrta (Results 1 – 2 of 2) sorted by relevance

/external/iproute2/lib/
Dlibnetlink.c932 struct rtattr *subrta; in rta_addattr32() local
940 subrta = (struct rtattr *)(((char *)rta) + RTA_ALIGN(rta->rta_len)); in rta_addattr32()
941 subrta->rta_type = type; in rta_addattr32()
942 subrta->rta_len = len; in rta_addattr32()
943 memcpy(RTA_DATA(subrta), &data, 4); in rta_addattr32()
951 struct rtattr *subrta; in rta_addattr_l() local
960 subrta = (struct rtattr *)(((char *)rta) + RTA_ALIGN(rta->rta_len)); in rta_addattr_l()
961 subrta->rta_type = type; in rta_addattr_l()
962 subrta->rta_len = len; in rta_addattr_l()
964 memcpy(RTA_DATA(subrta), data, alen); in rta_addattr_l()
/external/toybox/toys/pending/
Dip.c455 struct rtattr *subrta; in add_varlen_rtattr_to_buffer() local
460 subrta = (struct rtattr*)(((char*)rta) + RTA_ALIGN(rta->rta_len)); in add_varlen_rtattr_to_buffer()
461 subrta->rta_type = type; in add_varlen_rtattr_to_buffer()
462 subrta->rta_len = len; in add_varlen_rtattr_to_buffer()
464 memcpy(RTA_DATA(subrta), data, alen); in add_varlen_rtattr_to_buffer()