1import socket 2import platform 3import multiprocessing 4from distutils.version import LooseVersion 5 6SocketBase = socket.socket 7MpPipe = multiprocessing.Pipe 8MpQueue = multiprocessing.Queue 9MpProcess = multiprocessing.Process 10ipdb_nl_async = True 11nlm_generator = False 12nla_via_getattr = False 13async_qsize = 4096 14commit_barrier = 0 15gc_timeout = 60 16db_transaction_limit = 1 17cache_expire = 60 18 19# save uname() on startup time: it is not so 20# highly possible that the kernel will be 21# changed in runtime, while calling uname() 22# every time is a bit expensive 23uname = tuple(platform.uname()) 24machine = platform.machine() 25arch = platform.architecture()[0] 26kernel = LooseVersion(uname[2]).version[:3] 27 28AF_BRIDGE = getattr(socket, 'AF_BRIDGE', 7) 29AF_NETLINK = getattr(socket, 'AF_NETLINK', 16) 30 31data_plugins_pkgs = [] 32data_plugins_path = [] 33 34netns_path = ['/var/run/netns', 35 '/var/run/docker/netns'] 36 37entry_points_aliases = {'pr2modules.netlink.exceptions': 38 'pyroute2.netlink.exceptions'} 39