Home
last modified time | relevance | path

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

/kernel/tests/net/test/
Dnetlink.py72 def _NlAttr(self, nla_type, data): argument
77 return NLAttr((nla_len, nla_type)).Pack() + data + padding
79 def _NlAttrIPAddress(self, nla_type, family, address): argument
80 return self._NlAttr(nla_type, socket.inet_pton(family, address))
82 def _NlAttrStr(self, nla_type, value): argument
84 return self._NlAttr(nla_type, value.encode("UTF-8"))
86 def _NlAttrU32(self, nla_type, value): argument
87 return self._NlAttr(nla_type, struct.pack("=I", value))
100 def _Decode(self, command, msg, nla_type, nla_data): argument
102 return nla_type, nla_data
[all …]
Diproute.py253 def _NlAttrInterfaceName(self, nla_type, interface): argument
254 return self._NlAttr(nla_type, interface + "\x00")
259 def _Decode(self, command, msg, nla_type, nla_data, nested=0): argument
291 name = self._GetConstantName(nla_type, "RTAX_")
293 name = self._GetConstantName(nla_type, "IFLA_INFO_")
295 name = self._GetConstantName(nla_type, "IFLA_VTI_")
297 name = self._GetConstantName(nla_type, "IFA_")
299 name = self._GetConstantName(nla_type, "IFLA_")
301 name = self._GetConstantName(nla_type, "FRA_")
303 name = self._GetConstantName(nla_type, "RTA_")
[all …]
Dtcp_metrics.py64 def _Decode(self, command, msg, nla_type, nla_data): argument
67 name = self._GetConstantName(__name__, nla_type, "TCP_METRICS_ATTR_")
94 nla_type = TCP_METRICS_ATTR_SADDR_IPV4
97 nla_type = TCP_METRICS_ATTR_SADDR_IPV6
98 return self._NlAttrIPAddress(nla_type, family, address)
107 nla_type = globals()[nla_name]
108 return self._NlAttrIPAddress(nla_type, family, address)
Dgenetlink.py83 if nla.nla_type != CTRL_ATTR_OP_ID:
84 raise ValueError("Expected CTRL_ATTR_OP_ID, got %d" % nla.nla_type)
88 if nla.nla_type != CTRL_ATTR_OP_FLAGS:
95 def _Decode(self, command, msg, nla_type, nla_data): argument
98 name = self._GetConstantName(__name__, nla_type, "CTRL_ATTR_")
Dsock_diag.py117 def _Decode(self, command, msg, nla_type, nla_data): argument
124 name = self._GetConstantName(__name__, nla_type, prefix)
127 name = nla_type
Dxfrm.py371 def _Decode(self, command, unused_msg, nla_type, nla_data): argument
373 name = self._GetConstantName(nla_type, "XFRMA_")