Searched refs:nla_type (Results 1 – 6 of 6) sorted by relevance
/kernel/tests/net/test/ |
D | tcp_metrics.py | 64 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)
|
D | netlink.py | 72 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 …]
|
D | genetlink.py | 83 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_")
|
D | iproute.py | 249 def _NlAttrInterfaceName(self, nla_type, interface): argument 250 return self._NlAttr(nla_type, interface + "\x00") 255 def _Decode(self, command, msg, nla_type, nla_data, nested=0): argument 287 name = self._GetConstantName(nla_type, "RTAX_") 289 name = self._GetConstantName(nla_type, "IFLA_INFO_") 291 name = self._GetConstantName(nla_type, "IFLA_VTI_") 293 name = self._GetConstantName(nla_type, "IFA_") 295 name = self._GetConstantName(nla_type, "IFLA_") 297 name = self._GetConstantName(nla_type, "FRA_") 299 name = self._GetConstantName(nla_type, "RTA_") [all …]
|
D | sock_diag.py | 117 def _Decode(self, command, msg, nla_type, nla_data): argument 124 name = self._GetConstantName(__name__, nla_type, prefix) 127 name = nla_type
|
D | xfrm.py | 363 def _Decode(self, command, unused_msg, nla_type, nla_data): argument 365 name = self._GetConstantName(nla_type, "XFRMA_")
|