summaryrefslogtreecommitdiffstats
path: root/Lib/linux2/IN.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/linux2/IN.py')
-rwxr-xr-xLib/linux2/IN.py72
1 files changed, 68 insertions, 4 deletions
diff --git a/Lib/linux2/IN.py b/Lib/linux2/IN.py
index 86710d1..1f49f01 100755
--- a/Lib/linux2/IN.py
+++ b/Lib/linux2/IN.py
@@ -36,6 +36,8 @@ def __STRING(x): return "x"
# Included from linux/socket.h
# Included from asm/socket.h
+
+# Included from asm/sockios.h
FIOSETOWN = 0x8901
SIOCSPGRP = 0x8902
FIOGETOWN = 0x8903
@@ -56,6 +58,7 @@ SO_OOBINLINE = 10
SO_NO_CHECK = 11
SO_PRIORITY = 12
SO_LINGER = 13
+SO_BSDCOMPAT = 14
# Included from linux/sockios.h
SIOCADDRT = 0x890B
@@ -87,6 +90,8 @@ SIOCGIFSLAVE = 0x8929
SIOCSIFSLAVE = 0x8930
SIOCADDMULTI = 0x8931
SIOCDELMULTI = 0x8932
+SIOCGIFBR = 0x8940
+SIOCSIFBR = 0x8941
OLD_SIOCDARP = 0x8950
OLD_SIOCGARP = 0x8951
OLD_SIOCSARP = 0x8952
@@ -98,11 +103,14 @@ SIOCGRARP = 0x8961
SIOCSRARP = 0x8962
SIOCGIFMAP = 0x8970
SIOCSIFMAP = 0x8971
+SIOCADDDLCI = 0x8980
+SIOCDELDLCI = 0x8981
SIOCDEVPRIVATE = 0x89F0
SIOCPROTOPRIVATE = 0x89E0
# Included from linux/uio.h
-MAX_IOVEC = 8
+UIO_MAXIOV = 16
+SCM_RIGHTS = 1
SOCK_STREAM = 1
SOCK_DGRAM = 2
SOCK_RAW = 3
@@ -137,6 +145,7 @@ SOMAXCONN = 128
MSG_OOB = 1
MSG_PEEK = 2
MSG_DONTROUTE = 4
+MSG_PROXY = 16
SOL_IP = 0
SOL_IPX = 256
SOL_AX25 = 257
@@ -148,6 +157,7 @@ IP_TOS = 1
IPTOS_LOWDELAY = 0x10
IPTOS_THROUGHPUT = 0x08
IPTOS_RELIABILITY = 0x04
+IPTOS_MINCOST = 0x02
IP_TTL = 2
IP_HDRINCL = 3
IP_OPTIONS = 4
@@ -169,12 +179,18 @@ SOPRI_BACKGROUND = 2
# Included from sys/types.h
# Included from linux/types.h
-__FD_SETSIZE = 256
-# Included from asm/types.h
+# Included from linux/posix_types.h
+__FD_SETSIZE = 1024
+def __FDELT(d): return ((d) / __NFDBITS)
+
+
+# Included from asm/posix_types.h
def __FD_ZERO(fdsetp): return \
+# Included from asm/types.h
+
# Included from sys/bitypes.h
# Included from pthread/mit/posix.h
@@ -204,7 +220,6 @@ IN_CLASSC_HOST = (0xffffffff & ~IN_CLASSC_NET)
def IN_MULTICAST(a): return IN_CLASSD(a)
IN_MULTICAST_NET = 0xF0000000
-INADDR_NONE = 0xffffffff
IN_LOOPBACKNET = 127
INADDR_LOOPBACK = 0x7f000001
INADDR_UNSPEC_GROUP = 0xe0000000
@@ -213,6 +228,55 @@ INADDR_MAX_LOCAL_GROUP = 0xe00000ff
# Included from asm/byteorder.h
__LITTLE_ENDIAN = 1234
+
+# Included from linux/config.h
+
+# Included from linux/autoconf.h
+CONFIG_MODULES = 1
+CONFIG_KERNELD = 1
+CONFIG_NET = 1
+CONFIG_PCI = 1
+CONFIG_SYSVIPC = 1
+CONFIG_BINFMT_AOUT = 1
+CONFIG_BINFMT_ELF = 1
+CONFIG_KERNEL_ELF = 1
+CONFIG_M586 = 1
+CONFIG_BLK_DEV_FD = 1
+CONFIG_BLK_DEV_IDE = 1
+CONFIG_BLK_DEV_IDECD = 1
+CONFIG_INET = 1
+CONFIG_IP_NOSR = 1
+CONFIG_SKB_LARGE = 1
+CONFIG_SCSI = 1
+CONFIG_BLK_DEV_SD = 1
+CONFIG_BLK_DEV_SR = 1
+CONFIG_SCSI_AHA152X = 1
+CONFIG_NETDEVICES = 1
+CONFIG_DUMMY_MODULE = 1
+CONFIG_NET_ETHERNET = 1
+CONFIG_NET_VENDOR_3COM = 1
+CONFIG_EL3 = 1
+CONFIG_EXT2_FS = 1
+CONFIG_FAT_FS_MODULE = 1
+CONFIG_MSDOS_FS_MODULE = 1
+CONFIG_VFAT_FS_MODULE = 1
+CONFIG_PROC_FS = 1
+CONFIG_NFS_FS_MODULE = 1
+CONFIG_ISO9660_FS_MODULE = 1
+CONFIG_SERIAL = 1
+CONFIG_MOUSE = 1
+CONFIG_PSMOUSE = 1
+UTS_SYSNAME = "Linux"
+UTS_MACHINE = "unknown"
+UTS_NODENAME = "(none)"
+UTS_DOMAINNAME = "(none)"
+DEF_INITSEG = 0x9000
+DEF_SYSSEG = 0x1000
+DEF_SETUPSEG = 0x9020
+DEF_SYSSIZE = 0x7F00
+NORMAL_VGA = 0xffff
+EXTENDED_VGA = 0xfffe
+ASK_VGA = 0xfffd
def __constant_ntohl(x): return \
def __constant_ntohs(x): return \