Home
last modified time | relevance | path

Searched refs:attrs (Results 1 – 9 of 9) 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
221 for exttype, extstruct, attrs in extlist:
223 ext = SadbExt(((len(extdata) + len(SadbExt) + len(attrs)) / 8, exttype))
224 extensions += ext.Pack() + extdata + attrs
318 for exttype, ext, attrs in extensions:
321 print " ", exttype, self.DecodeSadbSa(ext), attrs.encode("hex")
322 print " ", exttype, ext, attrs.encode("hex")
Diproute.py507 msg, attrs = self._ParseNLMsg(data, IfAddrMsg)[0]
508 if msg.index == ifindex and attrs["IFA_ADDRESS"] == address:
645 attrs = self._NlAttrU32(NDA_IFINDEX, ifindex) if ifindex else ""
646 return self._Dump(RTM_GETNEIGH, ndmsg, NdMsg, attrs)
685 _, attrs = self.GetIfinfo(dev_name)
686 attrs = self._ParseAttributes(RTM_NEWLINK, IfinfoMsg, attrs)
687 return attrs["IFLA_STATS64"]
691 _, attrs = self.GetIfinfo(dev_name)
692 attrs = self._ParseAttributes(RTM_NEWLINK, IfinfoMsg, attrs)
693 return attrs["IFLA_LINKINFO"]["IFLA_INFO_DATA"]
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
Dneighbour_test.py108 def ExpectNeighbourNotification(self, addr, state, attrs=None): argument
113 if attrs:
114 for name in attrs:
115 self.assertEquals(attrs[name], actual_attrs[name])
Dnetlink.py244 def _Dump(self, command, msg, msgtype, attrs): argument
260 length = len(NLMsgHdr) + len(msg) + len(attrs)
264 request = nlmsghdr.Pack() + msg + 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 …]
Dsock_diag.py393 for diag_msg, attrs in results:
395 return diag_msg, attrs
417 diag_msg, attrs = self.FindSockInfoFromFd(s)
Dxfrm.py624 sainfo = [sa for sa, attrs in self.DumpSaInfo() if sa.id.spi == spi]