Home | History | Annotate | Download | only in test

Lines Matching full:ifindex

157     "family ifindex state flags type")
479 def _Address(self, version, command, addr, prefixlen, flags, scope, ifindex):
482 ifaddrmsg = IfAddrMsg((family, prefixlen, flags, scope, ifindex)).Pack()
488 def _WaitForAddress(self, sock, address, ifindex):
500 raise AssertionError("Address %s did not appear on ifindex %d: %s" %
501 (address, ifindex, e.strerror))
503 if msg.index == ifindex and attrs["IFA_ADDRESS"] == address:
506 def AddAddress(self, address, prefixlen, ifindex):
522 ifindex: The interface index to add the address to.
537 RT_SCOPE_UNIVERSE, ifindex)
540 self._WaitForAddress(sock, address, ifindex)
542 def DelAddress(self, address, prefixlen, ifindex):
544 RTM_DELADDR, address, prefixlen, 0, 0, ifindex)
546 def GetAddress(self, address, ifindex=0):
553 self._Address(6, RTM_GETADDR, address, 0, 0, RT_SCOPE_UNIVERSE, ifindex)
605 def DumpRoutes(self, version, ifindex):
608 if r['RTA_TABLE'] == ifindex]