• Home
  • Raw
  • Download

Lines Matching refs:netlink

47 from .. import core as netlink  unknown
112 class LinkCache(netlink.Cache):
120 self._protocol = netlink.NETLINK_ROUTE
142 class Link(netlink.Object):
146 netlink.Object.__init__(self, 'route/link', 'link', obj)
183 @netlink.nlattr(type=int, immutable=True, fmt=util.num)
198 @netlink.nlattr(type=str, fmt=util.bold)
215 @netlink.nlattr(type=str, fmt=util.string)
248 @netlink.nlattr(type=int, fmt=util.num)
258 @netlink.nlattr(type=int, immutable=True, fmt=util.num)
268 @netlink.nlattr(type=str, fmt=util.addr)
272 return netlink.AbstractAddress(a)
279 @netlink.nlattr(type=str, fmt=util.addr)
283 return netlink.AbstractAddress(a)
290 @netlink.nlattr(type=str, immutable=True, fmt=util.string)
300 @netlink.nlattr(type=int, fmt=util.num)
310 @netlink.nlattr(type=str, immutable=True, fmt=util.string)
322 @netlink.nlattr(type=str, immutable=True, fmt=util.string, title='state')
334 @netlink.nlattr(type=str, immutable=True, fmt=util.string)
346 @netlink.nlattr(type=str, fmt=util.string)
356 @netlink.nlattr(type=str, fmt=util.string)
379 sock = netlink.lookup_socket(netlink.NETLINK_ROUTE)
385 sock = netlink.lookup_socket(netlink.NETLINK_ROUTE)
391 sock = netlink.lookup_socket(netlink.NETLINK_ROUTE)
394 flags = netlink.NLM_F_CREATE
398 raise netlink.KernelError(ret)
403 sock = netlink.lookup_socket(netlink.NETLINK_ROUTE)
406 raise netlink.NetlinkError('Original link not available')
409 raise netlink.KernelError(ret)
414 sock = netlink.lookup_socket(netlink.NETLINK_ROUTE)
418 raise netlink.KernelError(ret)
539 sock = netlink.lookup_socket(netlink.NETLINK_ROUTE)