Home
last modified time | relevance | path

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

/system/core/libsysutils/src/
DNetlinkEvent.cpp95 struct rtattr *rta = (struct rtattr *) in parseBinaryNetlinkMessage() local
99 while(RTA_OK(rta, len)) { in parseBinaryNetlinkMessage()
100 switch(rta->rta_type) { in parseBinaryNetlinkMessage()
104 (char *) RTA_DATA(rta)); in parseBinaryNetlinkMessage()
112 rta = RTA_NEXT(rta, len); in parseBinaryNetlinkMessage()
/system/core/libnetutils/
Difc_utils.c261 struct rtattr *rta; in ifc_act_on_address() local
308 rta = (struct rtattr *) (((char *) &req) + NLMSG_ALIGN(req.n.nlmsg_len)); in ifc_act_on_address()
309 rta->rta_type = IFA_LOCAL; in ifc_act_on_address()
310 rta->rta_len = RTA_LENGTH(addrlen); in ifc_act_on_address()
312 memcpy(RTA_DATA(rta), addr, addrlen); in ifc_act_on_address()