Searched refs:subrta (Results 1 – 2 of 2) sorted by relevance
932 struct rtattr *subrta; in rta_addattr32() local940 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() local960 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()
455 struct rtattr *subrta; in add_varlen_rtattr_to_buffer() local460 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()