# Generated by h2py from /usr/include/netinet/in.h
IPPROTO_IP = 0
IPPROTO_HOPOPTS = IPPROTO_IP
IPPROTO_ICMP = 1
IPPROTO_IGMP = 2
IPPROTO_GGP = 3
IPPROTO_IPIP = 4
IPPROTO_IPV4 = IPPROTO_IPIP
IPPROTO_TCP = 6
IPPROTO_EGP = 8
IPPROTO_PUP = 12
IPPROTO_UDP = 17
IPPROTO_IDP = 22
IPPROTO_TP = 29
IPPROTO_IPV6 = 41
IPPROTO_ROUTING = 43
IPPROTO_FRAGMENT = 44
IPPROTO_ESP = 50
IPPROTO_AH = 51
IPPROTO_ICMPV6 = 58
IPPROTO_NONE = 59
IPPROTO_DSTOPTS = 60
IPPROTO_EON = 80
IPPROTO_ENCAP = 98
IPPROTO_RAW = 255
IPPROTO_MAX = 256
IPPORT_RESERVED = 1024
IPPORT_USERRESERVED = 49151
IPPORT_HIFIRSTAUTO = 49152
IPPORT_HILASTAUTO = 65535
def __IPADDR(x): return ((u_int32_t)(x))

IN_CLASSA_NSHIFT = 24
IN_CLASSA_MAX = 128
IN_CLASSB_NSHIFT = 16
IN_CLASSB_MAX = 65536
IN_CLASSC_NSHIFT = 8
IN_CLASSD_NSHIFT = 28
def IN_MULTICAST(i): return IN_CLASSD(i)

IN_LOOPBACKNET = 127
def IN6_IS_ADDR_LINKLOCAL(addr): return \

def IN6_IS_ADDR_LOOPBACK(addr): return \

def IN6_IS_ADDR_MULTICAST(addr): return \

def IN6_IS_ADDR_SITELOCAL(addr): return \

def IN6_IS_ADDR_UNSPECIFIED(addr): return \

def IN6_IS_ADDR_V4COMPAT(addr): return \

def IN6_IS_ADDR_V4MAPPED(addr): return \

IN6_NODE_LOCAL = 0x1
IN6_LINK_LOCAL = 0x2
IN6_SITE_LOCAL = 0x5
IN6_ORG_LOCAL = 0x8
IN6_GLOBAL = 0xE
def IN6_IS_ADDR_MC_NODELOCAL(addr): return \

def IN6_IS_ADDR_MC_LINKLOCAL(addr): return \

def IN6_IS_ADDR_MC_SITELOCAL(addr): return \

def IN6_IS_ADDR_MC_ORGLOCAL(addr): return \

def IN6_IS_ADDR_MC_GLOBAL(addr): return \

SIN6_LEN = 1
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 = 9
IP_MULTICAST_TTL = 10
IP_MULTICAST_LOOP = 11
IP_ADD_MEMBERSHIP = 12
IP_DROP_MEMBERSHIP = 13
IP_PORTRANGE = 19
IP_AUTH_LEVEL = 20
IP_ESP_TRANS_LEVEL = 21
IP_ESP_NETWORK_LEVEL = 22
IPV6_MULTICAST_IF = 23
IPV6_MULTICAST_HOPS = 24
IPV6_MULTICAST_LOOP = 25
IPV6_JOIN_GROUP = 26
IPV6_ADD_MEMBERSHIP = IPV6_JOIN_GROUP
IPV6_LEAVE_GROUP = 27
IPV6_DROP_MEMBERSHIP = IPV6_LEAVE_GROUP
IPV6_ADDRFORM = 28
IPV6_UNICAST_HOPS = 29
IPV6_PKTINFO = 30
IPV6_HOPLIMIT = 31
IPV6_NEXTHOP = 32
IPV6_HOPOPTS = 33
IPV6_DSTOPTS = 34
IPV6_RTHDR = 35
IPV6_PKTOPTIONS = 36
IPV6_CHECKSUM = 37
ICMPV6_FILTER = 38
IPSEC_OUTSA = 39
IPSEC_LEVEL_BYPASS = 0x00
IPSEC_LEVEL_NONE = 0x00
IPSEC_LEVEL_AVAIL = 0x01
IPSEC_LEVEL_USE = 0x02
IPSEC_LEVEL_REQUIRE = 0x03
IPSEC_LEVEL_UNIQUE = 0x04
IPSEC_LEVEL_DEFAULT = IPSEC_LEVEL_AVAIL
IPSEC_AUTH_LEVEL_DEFAULT = IPSEC_LEVEL_DEFAULT
IPSEC_ESP_TRANS_LEVEL_DEFAULT = IPSEC_LEVEL_DEFAULT
IPSEC_ESP_NETWORK_LEVEL_DEFAULT = IPSEC_LEVEL_DEFAULT
IPV6_RTHDR_TYPE_0 = 0
IPV6_RTHDR_LOOSE = 0
IPV6_RTHDR_STRICT = 1
IP_DEFAULT_MULTICAST_TTL = 1
IP_DEFAULT_MULTICAST_LOOP = 1
IP_MAX_MEMBERSHIPS = 20
IP_PORTRANGE_DEFAULT = 0
IP_PORTRANGE_HIGH = 1
IP_PORTRANGE_LOW = 2
INET_ADDRSTRLEN = 16
INET6_ADDRSTRLEN = 46
IPPROTO_MAXID = (IPPROTO_AH + 1)
IPCTL_FORWARDING = 1
IPCTL_SENDREDIRECTS = 2
IPCTL_DEFTTL = 3
IPCTL_DEFMTU = 4
IPCTL_SOURCEROUTE = 5
IPCTL_DIRECTEDBCAST = 6
IPCTL_IPPORT_FIRSTAUTO = 7
IPCTL_IPPORT_LASTAUTO = 8
IPCTL_IPPORT_HIFIRSTAUTO = 9
IPCTL_IPPORT_HILASTAUTO = 10
IPCTL_IPPORT_MAXQUEUE = 11
IPCTL_ENCDEBUG = 12
IPCTL_MAXID = 13

# Included from sys/cdefs.h

# Included from machine/cdefs.h

# Included from m68k/cdefs.h
def __P(protos): return protos		 

def __STRING(x): return #x

def __P(protos): return ()		 

def __STRING(x): return "x"

def __attribute__(x): return  

def __kprintf_attribute__(a): return __attribute__(a)

