Home
last modified time | relevance | path

Searched refs:attrs (Results 1 – 7 of 7) sorted by relevance

/kernel/tests/net/test/
Dpf_key.py187 ext, attrs = cstruct.Read(data, struct_type)
189 ext, attrs, = data, ""
191 return exttype, ext, attrs
222 for exttype, extstruct, attrs in extlist:
224 ext = SadbExt(((len(extdata) + len(SadbExt) + len(attrs)) / 8, exttype))
225 extensions += ext.Pack() + extdata + attrs
319 for exttype, ext, attrs in extensions:
323 (exttype, self.DecodeSadbSa(ext), attrs.encode("hex")))
324 print(" %s %s %s" % (exttype, ext, attrs.encode("hex")))
Dgenetlink.py117 hdr, attrs = self._GetMsg(Genlmsghdr)
118 return attrs["CTRL_ATTR_FAMILY_ID"]
Dtcp_metrics.py125 hdr, attrs = self._GetMsg(genetlink.Genlmsghdr)
126 return attrs
Dsock_diag_test.py129 def assertMarkIs(self, mark, attrs): argument
130 self.assertEqual(mark, attrs.get("INET_DIAG_MARK", None))
133 diag_msg, attrs = info
149 self.assertMarkIs(mark, attrs)
652 diag_msg, attrs = self.sock_diag.GetSockInfo(diag_req)
659 diag_msg, attrs = self.sock_diag.GetSockInfo(diag_req)
668 diag_msg, attrs = self.sock_diag.GetSockInfo(diag_req)
677 for diag_msg, attrs in infos),
718 diag_msg, attrs = self.sock_diag.GetSockInfo(child)
720 self.assertMarkIs(self.netid, attrs)
[all …]
Dneighbour_test.py152 def ExpectNeighbourNotification(self, addr, state, attrs=None): argument
157 if attrs:
158 for name in attrs:
159 self.assertEqual(attrs[name], actual_attrs[name])
Dsock_diag.py393 for diag_msg, attrs in results:
395 return diag_msg, attrs
417 diag_msg, attrs = self.FindSockInfoFromFd(s)
Dxfrm.py632 sainfo = [sa for sa, attrs in self.DumpSaInfo() if sa.id.spi == spi]