Home
last modified time | relevance | path

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

/kernel/tests/net/test/
Dnetlink.py69 def _NlAttr(self, nla_type, data): argument
74 return NLAttr((nla_len, nla_type)).Pack() + data + padding
76 def _NlAttrU32(self, nla_type, value): argument
77 return self._NlAttr(nla_type, struct.pack("=I", value))
90 def _Decode(self, command, msg, nla_type, nla_data): argument
92 return nla_type, nla_data
122 nla_name, nla_data = self._Decode(command, msg, nla.nla_type, nla_data)
Diproute.py204 def _NlAttrIPAddress(self, nla_type, family, address): argument
205 return self._NlAttr(nla_type, socket.inet_pton(family, address))
207 def _NlAttrInterfaceName(self, nla_type, interface): argument
208 return self._NlAttr(nla_type, interface + "\x00")
213 def _Decode(self, command, msg, nla_type, nla_data): argument
243 name = self._GetConstantName(nla_type, "RTAX_")
245 name = self._GetConstantName(nla_type, "IFA_")
247 name = self._GetConstantName(nla_type, "IFLA_")
249 name = self._GetConstantName(nla_type, "FRA_")
251 name = self._GetConstantName(nla_type, "RTA_")
[all …]
Dsock_diag.py118 def _Decode(self, command, msg, nla_type, nla_data): argument
125 name = self._GetConstantName(__name__, nla_type, prefix)
128 name = nla_type
Dxfrm.py229 def _Decode(self, command, unused_msg, nla_type, nla_data): argument
231 name = self._GetConstantName(nla_type, "XFRMA_")