Lines Matching refs:prefixlen
137 "family prefixlen flags scope index")
427 def _Address(self, version, command, addr, prefixlen, flags, scope, ifindex):
430 ifaddrmsg = IfAddrMsg((family, prefixlen, flags, scope, ifindex)).Pack()
436 def AddAddress(self, address, prefixlen, ifindex):
438 RTM_NEWADDR, address, prefixlen,
441 def DelAddress(self, address, prefixlen, ifindex):
443 RTM_DELADDR, address, prefixlen, 0, 0, ifindex)
455 def _Route(self, version, command, table, dest, prefixlen, nexthop, dev,
460 rtmsg = RTMsg((family, prefixlen, 0, 0, RT_TABLE_UNSPEC,
480 def AddRoute(self, version, table, dest, prefixlen, nexthop, dev):
481 self._Route(version, RTM_NEWROUTE, table, dest, prefixlen, nexthop, dev,
484 def DelRoute(self, version, table, dest, prefixlen, nexthop, dev):
485 self._Route(version, RTM_DELROUTE, table, dest, prefixlen, nexthop, dev,
490 prefixlen = {4: 32, 6: 128}[version]
491 prefixlen, None, oif, mark, uid)