Lines Matching refs:netlink
17 from .. import core as netlink unknown
22 class AddressCache(netlink.Cache):
29 self._protocol = netlink.NETLINK_ROUTE
39 local = netlink.AbstractAddress(local)
56 class Address(netlink.Object):
60 netlink.Object.__init__(self, 'route/addr', 'address', obj)
90 @netlink.nlattr(type=int, immutable=True, fmt=util.num)
104 @netlink.nlattr(type=str, fmt=util.string)
128 @netlink.nlattr(type=str, fmt=util.string)
138 @netlink.nlattr(type=str, fmt=util.string)
173 @netlink.nlattr(type=int, immutable=True, fmt=util.num)
177 return netlink.AddressFamily(fam)
181 if not isinstance(value, netlink.AddressFamily):
182 value = netlink.AddressFamily(value)
187 @netlink.nlattr(type=int, fmt=util.num)
200 @netlink.nlattr(type=str, immutable=True, fmt=util.addr)
204 return netlink.AbstractAddress(a)
208 a = netlink.AbstractAddress(value)
217 @netlink.nlattr(type=str, fmt=util.addr)
221 return netlink.AbstractAddress(a)
225 a = netlink.AbstractAddress(value)
229 @netlink.nlattr(type=str, fmt=util.addr)
233 return netlink.AbstractAddress(a)
237 a = netlink.AbstractAddress(value)
241 @netlink.nlattr(type=str, fmt=util.addr)
245 return netlink.AbstractAddress(a)
250 a = netlink.AbstractAddress(value)
257 @netlink.nlattr(type=str, fmt=util.addr)
261 return netlink.AbstractAddress(a)
265 a = netlink.AbstractAddress(value)
269 @netlink.nlattr(type=int, immutable=True, fmt=util.num)
283 @netlink.nlattr(type=int, immutable=True, fmt=util.num)
297 @netlink.nlattr(type=int, immutable=True, fmt=util.num)
304 @netlink.nlattr(type=int, immutable=True, fmt=util.num)
312 socket = netlink.lookup_socket(netlink.NETLINK_ROUTE)
315 flags = netlink.NLM_F_CREATE
319 raise netlink.KernelError(ret)
325 raise netlink.KernelError(ret)