82 lines
1.7 KiB
Python
82 lines
1.7 KiB
Python
|
# Generated by h2py from /usr/include/netinet/in.h
|
||
|
IPPROTO_IP = 0
|
||
|
IPPROTO_ICMP = 1
|
||
|
IPPROTO_IGMP = 2
|
||
|
IPPROTO_GGP = 3
|
||
|
IPPROTO_ENCAP = 4
|
||
|
IPPROTO_TCP = 6
|
||
|
IPPROTO_EGP = 8
|
||
|
IPPROTO_PUP = 12
|
||
|
IPPROTO_UDP = 17
|
||
|
IPPROTO_IDP = 22
|
||
|
IPPROTO_HELLO = 63
|
||
|
IPPROTO_ND = 77
|
||
|
IPPROTO_EON = 80
|
||
|
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
|
||
|
IN_CLASSD_NET = 0xf0000000
|
||
|
IN_CLASSD_NSHIFT = 28
|
||
|
IN_CLASSD_HOST = 0x0fffffff
|
||
|
INADDR_ANY = 0x00000000
|
||
|
INADDR_LOOPBACK = 0x7F000001
|
||
|
INADDR_BROADCAST = 0xffffffff
|
||
|
INADDR_UNSPEC_GROUP = 0xe0000000
|
||
|
INADDR_ALLHOSTS_GROUP = 0xe0000001
|
||
|
INADDR_MAX_LOCAL_GROUP = 0xe00000ff
|
||
|
IN_LOOPBACKNET = 127
|
||
|
IP_OPTIONS = 1
|
||
|
IP_HDRINCL = 2
|
||
|
IP_TOS = 3
|
||
|
IP_TTL = 4
|
||
|
IP_RECVOPTS = 5
|
||
|
IP_RECVRETOPTS = 6
|
||
|
IP_RECVDSTADDR = 7
|
||
|
IP_RETOPTS = 8
|
||
|
IP_MULTICAST_IF = 0x10
|
||
|
IP_MULTICAST_TTL = 0x11
|
||
|
IP_MULTICAST_LOOP = 0x12
|
||
|
IP_ADD_MEMBERSHIP = 0x13
|
||
|
IP_DROP_MEMBERSHIP = 0x14
|
||
|
IP_DEFAULT_MULTICAST_TTL = 1
|
||
|
IP_DEFAULT_MULTICAST_LOOP = 1
|