Searched refs:subrta (Results 1 – 2 of 2) sorted by relevance
717 struct rtattr *subrta; in rta_addattr32() local723 subrta = (struct rtattr*)(((char*)rta) + RTA_ALIGN(rta->rta_len)); in rta_addattr32()724 subrta->rta_type = type; in rta_addattr32()725 subrta->rta_len = len; in rta_addattr32()726 memcpy(RTA_DATA(subrta), &data, 4); in rta_addattr32()734 struct rtattr *subrta; in rta_addattr_l() local741 subrta = (struct rtattr*)(((char*)rta) + RTA_ALIGN(rta->rta_len)); in rta_addattr_l()742 subrta->rta_type = type; in rta_addattr_l()743 subrta->rta_len = len; in rta_addattr_l()744 memcpy(RTA_DATA(subrta), data, alen); in rta_addattr_l()
1503 struct rtattr *subrta; in rta_add_attr_32() local1510 subrta = (struct rtattr*)(void *) in rta_add_attr_32()1512 subrta->rta_type = type; in rta_add_attr_32()1513 subrta->rta_len = len; in rta_add_attr_32()1514 memcpy(RTA_DATA(subrta), &data, sizeof(data)); in rta_add_attr_32()