summaryrefslogtreecommitdiffstats
path: root/Lib/sunos4/IN.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-12-29 16:37:25 (GMT)
committerGuido van Rossum <guido@python.org>1993-12-29 16:37:25 (GMT)
commite30cb84ed2e7de876de160de2bd97575150fa747 (patch)
tree3b30da63451cacff1275af2c78aa95a972abcdd4 /Lib/sunos4/IN.py
parent70f1418d35e7131a171ba872777074dab02e13d6 (diff)
downloadcpython-e30cb84ed2e7de876de160de2bd97575150fa747.zip
cpython-e30cb84ed2e7de876de160de2bd97575150fa747.tar.gz
cpython-e30cb84ed2e7de876de160de2bd97575150fa747.tar.bz2
Initial revision
Diffstat (limited to 'Lib/sunos4/IN.py')
-rwxr-xr-xLib/sunos4/IN.py63
1 files changed, 63 insertions, 0 deletions
diff --git a/Lib/sunos4/IN.py b/Lib/sunos4/IN.py
new file mode 100755
index 0000000..05188af
--- /dev/null
+++ b/Lib/sunos4/IN.py
@@ -0,0 +1,63 @@
+# Symbolic constants from <netinet/in.h>.
+# These constants are SunOS specific! (Possibly even SunOS 4.1.1)
+# See demo/scripts/h2py.py for a tool to help generate a version for
+# your system.
+
+IPPROTO_IP = 0
+IPPROTO_ICMP = 1
+IPPROTO_IGMP = 2
+IPPROTO_GGP = 3
+IPPROTO_TCP = 6
+IPPROTO_EGP = 8
+IPPROTO_PUP = 12
+IPPROTO_UDP = 17
+IPPROTO_IDP = 22
+IPPROTO_HELLO = 63
+IPPROTO_ND = 77
+IPPROTO_RAW = 255
+IPPROTO_MAX = 256
+IPPORT_ECHO = 7
+IPPORT_DISCARD = 9
+IPPORT_SYSTAT = 11
+IPPORT_DAYTIME = 13
+IPPORT_NETSTAT = 15
+IPPORT_FTP = 21
+IPPORT_TELNET = 23
+IPPORT_SMTP = 25
+IPPORT_TIMESERVER = 37
+IPPORT_NAMESERVER = 42
+IPPORT_WHOIS = 43
+IPPORT_MTP = 57
+IPPORT_TFTP = 69
+IPPORT_RJE = 77
+IPPORT_FINGER = 79
+IPPORT_TTYLINK = 87
+IPPORT_SUPDUP = 95
+IPPORT_EXECSERVER = 512
+IPPORT_LOGINSERVER = 513
+IPPORT_CMDSERVER = 514
+IPPORT_EFSSERVER = 520
+IPPORT_BIFFUDP = 512
+IPPORT_WHOSERVER = 513
+IPPORT_ROUTESERVER = 520
+IPPORT_RESERVED = 1024
+IPPORT_USERRESERVED = 5000
+IMPLINK_IP = 155
+IMPLINK_LOWEXPER = 156
+IMPLINK_HIGHEXPER = 158
+IN_CLASSA_NET = 0xff000000
+IN_CLASSA_NSHIFT = 24
+IN_CLASSA_HOST = 0x00ffffff
+IN_CLASSA_MAX = 128
+IN_CLASSB_NET = 0xffff0000
+IN_CLASSB_NSHIFT = 16
+IN_CLASSB_HOST = 0x0000ffff
+IN_CLASSB_MAX = 65536
+IN_CLASSC_NET = 0xffffff00
+IN_CLASSC_NSHIFT = 8
+IN_CLASSC_HOST = 0x000000ff
+INADDR_ANY = 0x00000000
+INADDR_LOOPBACK = 0x7F000001
+INADDR_BROADCAST = 0xffffffff
+IN_LOOPBACKNET = 127
+IP_OPTIONS = 1