Home
last modified time | relevance | path

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

/system/extras/tests/net_test/
Diproute.py216 def _NlAttr(self, nla_type, data): argument
221 return NLAttr((nla_len, nla_type)).Pack() + data + padding
223 def _NlAttrU32(self, nla_type, value): argument
224 return self._NlAttr(nla_type, struct.pack("=I", value))
226 def _NlAttrIPAddress(self, nla_type, family, address): argument
227 return self._NlAttr(nla_type, socket.inet_pton(family, address))
229 def _NlAttrInterfaceName(self, nla_type, interface): argument
230 return self._NlAttr(nla_type, interface + "\x00")
242 def _Decode(self, command, family, nla_type, nla_data): argument
272 if nla_type == RTAX_MTU:
[all …]
/system/extras/taskstats/
Dtaskstats.c45 uint32_t nlmsg_pid, uint8_t genl_cmd, uint16_t nla_type, in send_command() argument
54 nla_put(message, nla_type, nla_len, nla_data); in send_command()
77 if (attr->nla_type == CTRL_ATTR_FAMILY_ID) { in parse_family_id()
109 switch (attr->nla_type) { in parse_aggregate_task_stats()
132 switch (attr->nla_type) { in parse_task_stats()