Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/scapy/consts.py: 100%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# SPDX-License-Identifier: GPL-2.0-only
2# This file is part of Scapy
3# See https://scapy.net/ for more information
4# Copyright (C) Philippe Biondi <phil@secdev.org>
6"""
7This file contains constants
8"""
10from sys import byteorder, platform, maxsize
11import platform as platform_lib
13LINUX = platform.startswith("linux")
14OPENBSD = platform.startswith("openbsd")
15FREEBSD = "freebsd" in platform
16NETBSD = platform.startswith("netbsd")
17DARWIN = platform.startswith("darwin")
18SOLARIS = platform.startswith("sunos")
19WINDOWS = platform.startswith("win32")
20WINDOWS_XP = platform_lib.release() == "XP"
21BSD = DARWIN or FREEBSD or OPENBSD or NETBSD
22# See https://docs.python.org/3/library/platform.html#cross-platform
23IS_64BITS = maxsize > 2**32
24BIG_ENDIAN = byteorder == 'big'
25# LOOPBACK_NAME moved to conf.loopback_name