# Generated by h2py from /usr/include/netinet/in.h

# Included from sys/types.h

# Included from standards.h
_POSIX_C_SOURCE = 199309L
_POSIX_C_SOURCE = 1
_XOPEN_SOURCE = 400
_POSIX_PII = 199703L
_XOPEN_SOURCE = 420
_XOPEN_SOURCE = 420
_XOPEN_SOURCE = 400
_POSIX_C_SOURCE = 199506L
_POSIX_C_SOURCE = 199506L
_POSIX_SOURCE = 1
_POSIX_C_SOURCE = 1
_ISO_C_SOURCE = 1
_ISO_C_SOURCE = 1
_XOPEN_SOURCE = 500
_XOPEN_SOURCE = 420
_XOPEN_SOURCE = 400
_POSIX_C_SOURCE = 199309L
_POSIX_C_SOURCE = 199506L
_ISO_C_SOURCE = 1
def __(__args__): return ()

def __(__args__): return __args__

def __I(__args__): return ()

def __I(__args__): return __args__

def __C99(__dname__): return _C##__dname__

def __C99(__dname__): return __dname__

def __R500(__dname__): return _E##__dname__

def __R500(__dname__): return __dname__

def __R(__dname__): return _E##__dname__

def __R(__dname__): return __dname__

def __R5C94(__dname__): return _E##__dname__

def __R5C94(__dname__): return __dname__

def __V40_OC(__dname__): return _E##__dname__

def __V40_OC(__dname__): return __dname__

def __PII(__dname__): return _P##__dname__

def __PIIX(__dname__): return _E##__dname__

def __PII(__dname__): return __dname__

def __PIIX(__dname__): return __dname__

def __P_C(__dname__): return _P##__dname__

def __P_C(__dname__): return __dname__

__WCHAR_T_LEN = 4

# Included from time_t.h
__SIZE_T = 1
____SIGSET_T = 1
def _Pfield(_arg_): return _arg_

def _Pfield(_arg_): return __##_arg_

PTHREAD_TEB_VERSION = 2
PTHREAD_TEB_EFLG_USER = 0x01
PTHREAD_TEB_EFLG_INITIAL = 0x02
PTHREAD_TEB_CREATOR_PTHREAD = 1
PTHREAD_TEB_CREATOR_CMA = 2
PTHREAD_TEB_CREATOR_D4 = 3
PTHREAD_TEB_CREATOR_D4EXC = 4
NULL = 0L
TRUE = 1
FALSE = 0
CPU_NONE = (-1)
P_MYID = (-1)
def major(x): return ((major_t)  (((dev_t)(x)>>20)&07777))

def minor(x): return ((minor_t)  ((dev_t)(x)&03777777))

def GETUNIT(dev): return ((unit_t)   (minor(dev)>>6)&037777)

def GETDEVS(dev): return ((devs_t)   (minor(dev))&077)

def GETCAMUNIT(x): return ((unit_t) (((GETUNIT(x))>>5)&0770)|((GETUNIT(x)>>4)&07))

def GETCAMTARG(x): return ((unit_t) ((x >> 3)&07))

def GETREUNIT(x): return ((unit_t) ((x)&07))


# Included from mach/machine/vm_types.h
_MACH_ALPHA_VM_TYPES_H_ = 1

# Included from sys/select.h

# Included from kern/event.h

# Included from kern/queue.h

# Included from kern/spl.h

# Included from machine/spl.h
SPLEXTREME = 7
SPLDEVRT = 6
SPLCLOCK = 5
SPLHIGH = 4
SPLSCHED = 4
SPLDEVHIGH = 4
SPLTTY = 4
SPLIMP = 4
SPLBIO = 4
SPLMEMCHN = 4
SPLDEVLOW = 3
SPLNET = 2
SPLSOFTC = 1
SPL1 = 1
SPLNONE = 0
def splx(S): return swap_ipl_preempt_check(S)

def splx_nopreempt(S): return swap_ipl(S)


# Included from mach/boolean.h

# Included from mach/machine/boolean.h
TRUE = 1
FALSE = 0

# Included from kern/lock.h
RWS_BLOCK_SIZE_SHIFT = 6
LF_RECWRITE = 0x07
LF_WRITE = 0x20
LF_READ_SLEEPING = 0x40
MAX_LOCK = 32
MAX_SLOCK = 32
LOCKINFO_SHIFT = 4
LI_SPLMASK = 0x07
LI_RWS = 0x08
LI_ORDERED = 0x10
LI_ORDNEXT = 0x20
LI_DOHIER = 0x40
LI_VALID = 0x80
LI_PROBE = 0x1000
LOCKSTATS_SHIFT = 6
NQLCKS_MAX = MAX_SLOCK
SIMPLE_LOCKS = 0
MCS_LOCKS = 1
MACH_SLOCKS = 1
def simple_lock_try(l): return (1)	 

def simple_lock_locked(l): return (1)	 

def simple_lock_holder(l): return (1)	 

def rws_read_lock_try(l): return (1)	 

def SLOCK_LOCKED(l): return simple_lock_locked(l)

def SLOCK_HOLDER(l): return simple_lock_holder(l)

def lock_read_done(l): return lock_done(l)

def lock_write_done(l): return lock_done(l)

def lock_read_done_recursive(l): return lock_done(l);

def lock_read_recursive(l): return \

def lock_read_recursive_try(l): return \


# Included from kern/assert.h

# Included from kern/macro_help.h
NEVER = FALSE
ALWAYS = TRUE
def LOCK_READERS(l): return lock_readers(l)

def LOCK_LOCKED(l): return lock_locked(l)

def LOCK_HOLDER(l): return lock_holder(l)

def LOCK_READERS(l): return (1)

def LOCK_LOCKED(l): return (1)

def LOCK_HOLDER(l): return (1)

def dequeue(queue): return dequeue_head(queue)

def queue_empty(q): return queue_end((q), queue_first(q))

def round_mpq(size): return (size)

def mpqueue_init(q): return \

QWAIT = ALWAYS
QNOWAIT = NEVER
QWAIT = 1
QNOWAIT = 0
def event_init(evp): return  \

def event_clear(evp): return \

def event_terminate(evp): return  \

FD_NBBY = 8
FD_MAX_NOFILE = 4096
NBBY = 8
MAX_NOFILE = 4096
MAXSELFD = MAX_NOFILE
FD_MAX_NOFILE = MAX_NOFILE
FD_SETSIZE = FD_MAX_NOFILE

# Included from sys/systm.h
NUMSYSCALLARGS = 6
MAXCOMPATNAMSZ = 16
MAXSTANZANAMSZ = 16
MAXREVSZ = 16
ULTBIN = "Ultrix4.2"
ULT42V11 = 0x0101
ULT42V11A = "1.1"
CM_DEBUG = 1
CM_TRACE = 2
CM_STATIC = 4
CM_CONFIG = 8
CM_DYNAMIC = 0x10
CM_TRACE_THIS = 0x100
MAXHABITATS = 16
MAXSTATICMODS = 16
FDFS_MAJOR = 12
PROMPRINT = 0x1
CONSPRINT = 0x2
MEMPRINT = 0x4
PANICPRINT = 0x8
PRE_PANICPRINT = 0x10
LSCALE = 1000
def atomic_incq(x): return __ATOMIC_INCREMENT_QUAD(x)

def atomic_incl(x): return __ATOMIC_INCREMENT_LONG(x)

def atomic_decq(x): return __ATOMIC_DECREMENT_QUAD(x)

def atomic_decl(x): return __ATOMIC_DECREMENT_LONG(x)


# Included from sys/usercopy.h
def remque(q): return _remque((caddr_t)(q))


# Included from machine/builtins.h
__BUILTINS_LOADED = 1

# Included from machine/kintrinsics.h
def mtpr_ipir(CPU): return asm("call_pal 13", CPU)

def mtpr_mces(S): return asm("call_pal 17", S)

def mtpr_fen(S): return asm("call_pal 43", S)

def mtpr_usp(USP): return asm("call_pal 56", USP)

def ecb(va): return asm("ecb (%a0)", va)

def wh64(va): return asm("wh64 (%a0)", va)

def amask(mask): return asm("amask %a0, %v0", mask)

def cache_aligned_data_size(type): return \

def cache_aligned_packed_data(name): return \

def cache_aligned_packed_const_data(name): return \

BINARY = 2

# Included from sys/socket.h

# Included from sys/uio.h

# Included from sys/limits.h

# Included from machine/machlimits.h
CHAR_BIT = 8
SCHAR_MIN = (-128)
SCHAR_MAX = 127
CHAR_MAX = 127
CHAR_MIN = (-128)
SHRT_MAX = 32767
SHRT_MIN = (-32768)
INT_MAX = 2147483647
INT_MIN = (-INT_MAX-1)
LONG_MAX = 9223372036854775807
LONG_MIN = (-LONG_MAX-1)
MB_LEN_MAX = 4
_POSIX_ARG_MAX = 4096
_POSIX_CHILD_MAX = 6
_POSIX_LINK_MAX = 8
_POSIX_MAX_CANON = 255
_POSIX_NAME_MAX = 14
_POSIX_NGROUPS_MAX = 0
_POSIX_MAX_INPUT = 255
_POSIX_OPEN_MAX = 16
_POSIX_PATH_MAX = 255
_POSIX_PIPE_BUF = 512
_POSIX_SSIZE_MAX = 32767
_POSIX_STREAM_MAX = 8
_POSIX_TZNAME_MAX = 3
_POSIX_LOGIN_NAME_MAX = 9
_POSIX_TTY_NAME_MAX = 9
_POSIX2_BC_BASE_MAX = 99
_POSIX2_BC_DIM_MAX = 2048
_POSIX2_BC_SCALE_MAX = 99
_POSIX2_BC_STRING_MAX = 1000
_POSIX2_COLL_WEIGHTS_MAX = 2
_POSIX2_EXPR_NEST_MAX = 32
_POSIX2_LINE_MAX = 2048
_POSIX2_RE_DUP_MAX = 255
BC_BASE_MAX = _POSIX2_BC_BASE_MAX
BC_DIM_MAX = _POSIX2_BC_DIM_MAX
BC_SCALE_MAX = _POSIX2_BC_SCALE_MAX
BC_STRING_MAX = _POSIX2_BC_STRING_MAX
COLL_WEIGHTS_MAX = 6
EXPR_NEST_MAX = _POSIX2_EXPR_NEST_MAX
LINE_MAX = _POSIX2_LINE_MAX
RE_DUP_MAX = _POSIX2_RE_DUP_MAX
LOGIN_NAME_MAX = 64
TTY_NAME_MAX = 13

# Included from sys/syslimits.h
ARG_MAX = 38912
CHILD_MAX = 100
CHILD_MAX = 256
LINK_MAX = 65533
_LINK_MAX_V3 = 32767
MAX_CANON = 255
MAX_INPUT = 512
NAME_MAX = 255
NGROUPS_MAX = 32
SSIZE_MAX = LONG_MAX
TZNAME_MAX = 255
OPEN_MAX = 64
PATH_MAX = 1023
PIPE_BUF = 4096
CHARCLASS_NAME_MAX = 255
FLT_DIG = 6
DBL_DIG = 15
DBL_MAX = 1.79769313486231570e+308
TMP_MAX = 16384
NL_ARGMAX = 9
NL_MSGMAX = 65535
NL_SETMAX = 65535
NL_TEXTMAX = 8192
PASS_MAX = 80
NL_LANGMAX = PATH_MAX
NL_NMAX = 10
LONG_BIT = 32
LONG_BIT = 64
WORD_BIT = 32
NZERO = 0
NZERO = 20
ATEXIT_MAX = 32
ATEXIT_MAX = 2048
IOV_MAX = 1024
_XOPEN_IOV_MAX = 16

# Included from machine/machtime.h
CLOCKS_PER_SEC = 1000000
PID_MAX = INT_MAX

# Included from sys/rt_limits.h
TIMER_MAX = 32
RTSIG_MAX = 16
CLOCKDRIFT_MAX = 10000000
DELAYTIMER_MAX = INT_MAX
AIO_LISTIO_MAX = 64
AIO_MAX = 64
AIO_PRIO_DFL = 5
AIO_PRIO_MIN = 0
AIO_PRIO_MAX = 9
SIGQUEUE_MAX = 64
SEM_NAME_MAX = _POSIX_PATH_MAX
MQ_OPEN_MAX = 64
MQ_PRIO_MAX = 256
MQ_NAME_MAX = _POSIX_PATH_MAX
_POSIX_AIO_LISTIO_MAX = 2
_POSIX_AIO_MAX = 1
_POSIX_CLOCKDRIFT_MAX = 10000000
_POSIX_CLOCKRES_MIN = 20000000
_POSIX_DELAYTIMER_MAX = 32
_POSIX_INTERVAL_MAX = 1092
_POSIX_SEM_NSEMS_MAX = 256
_POSIX_SEM_VALUE_MAX = 32767
_POSIX_TIMER_MAX = 32
_POSIX_MQ_OPEN_MAX = 8
_POSIX_MQ_PRIO_MAX = 32
_POSIX_SIGQUEUE_MAX = 32
_POSIX_RTSIG_MAX = 8
_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4
_POSIX_THREAD_KEYS_MAX = 128
_POSIX_THREAD_THREADS_MAX = 64
PTHREAD_KEYS_MAX = 255
PTHREAD_STACK_MIN = 8192
PTHREAD_DESTRUCTOR_ITERATIONS = _POSIX_THREAD_DESTRUCTOR_ITERATIONS
UIO_MAXIOV = IOV_MAX
UIO_SMALLIOV = 8
SOCK_STREAM = 1
SOCK_DGRAM = 2
SOCK_RAW = 3
SOCK_RDM = 4
SOCK_SEQPACKET = 5
SO_DEBUG = 0x0001
SO_ACCEPTCONN = 0x0002
SO_REUSEADDR = 0x0004
SO_KEEPALIVE = 0x0008
SO_DONTROUTE = 0x0010
SO_BROADCAST = 0x0020
SO_USELOOPBACK = 0x0040
SO_LINGER = 0x0080
SO_OOBINLINE = 0x0100
SO_REUSEPORT = 0x0200
SO_OPTIONS_VMS = SO_DEBUG+SO_ACCEPTCONN+SO_REUSEADDR+SO_KEEPALIVE+ \
                       SO_DONTROUTE+SO_BROADCAST+SO_USELOOPBACK+ \
                       SO_LINGER+SO_OOBINLINE+SO_REUSEPORT
SO_FULL_DUPLEX_CLOSE = 0x2000
SO_EXPANDED_RIGHTS = 0x1016
SO_DEFAULT_ATTR = 0x1017
SO_RCV_ATTR = 0x1018
SO_AUTHENTICATION = 0x1019
SO_ACCESS_ERROR = 0x1020
SO_SEC_ATTRIBUTES = 0x1021
SO_REMOTE_KEY = 0x1022
SO_NEW_ATTRS_ONLY = 0x1023
SO_SET_TNET_TCB = 0x1024
SO_GET_TNET_TCB = 0x1025
SO_EXPANDED_RIGHTS = 0x0400
SO_PAIRABLE = 0x0800
SO_UMC = 0x01000
SO_REUSERAD = 0x02000
SO_CLUA_IN_NOLOCAL = 0x10000
SO_REUSEALIASPORT = 0x20000
SO_CLUA_IN_NOALIAS = 0x40000
SO_CLUA_DEFAULT_SRC = 0x80000
SO_RESVPORT = 0x100000
SO_SNDBUF = 0x1001
SO_RCVBUF = 0x1002
SO_SNDLOWAT = 0x1003
SO_RCVLOWAT = 0x1004
SO_SNDTIMEO = 0x1005
SO_RCVTIMEO = 0x1006
SO_ERROR = 0x1007
SO_TYPE = 0x1008
SO_STATE = 0x1009
SO_FAMILY = 0x100a
SO_XSE = 0x100b
SO_SHARE = 0x1009
SO_CCL = 0x100a
SO_STATE = 0x100b
SO_FAMILY = 0x100c
SO_XSE = 0x100d
SOL_SOCKET = 0xffff
AF_UNSPEC = 0
AF_UNIX = 1
AF_INET = 2
AF_IMPLINK = 3
AF_PUP = 4
AF_CHAOS = 5
AF_NS = 6
AF_ISO = 7
AF_OSI = AF_ISO
AF_ECMA = 8
AF_DATAKIT = 9
AF_CCITT = 10
AF_SNA = 11
AF_DECnet = 12
AF_DLI = 13
AF_LAT = 14
AF_HYLINK = 15
AF_APPLETALK = 16
AF_ROUTE = 17
AF_LINK = 18
__pseudo_AF_XTP = 19
pseudo_AF_XTP = 19
AF_NETMAN = 20
AF_X25 = 21
AF_CTF = 22
AF_WAN = 23
AF_USER = 24
AF_LAST = 25
AF_INET6 = 26
AF_AAL = 27
AF_KEY = 28
AF_MAX = 35
SHUT_RD = 0
SHUT_WR = 1
SHUT_RDWR = 2
_SS_MAXSIZE = 128
PF_UNSPEC = AF_UNSPEC
PF_UNIX = AF_UNIX
PF_INET = AF_INET
PF_IMPLINK = AF_IMPLINK
PF_PUP = AF_PUP
PF_CHAOS = AF_CHAOS
PF_NS = AF_NS
PF_ISO = AF_ISO
PF_OSI = AF_ISO
PF_ECMA = AF_ECMA
PF_DATAKIT = AF_DATAKIT
PF_CCITT = AF_CCITT
PF_SNA = AF_SNA
PF_DECnet = AF_DECnet
PF_DLI = AF_DLI
PF_LAT = AF_LAT
PF_HYLINK = AF_HYLINK
PF_APPLETALK = AF_APPLETALK
PF_ROUTE = AF_ROUTE
PF_LINK = AF_LINK
PF_XTP = __pseudo_AF_XTP
PF_XTP = pseudo_AF_XTP
PF_NETMAN = AF_NETMAN
PF_X25 = AF_X25
PF_CTF = AF_CTF
PF_WAN = AF_WAN
PF_USER = AF_USER
PF_LAST = AF_LAST
PF_INET6 = AF_INET6
PF_AAL = AF_AAL
PF_KEY = AF_KEY
PF_MAX = AF_MAX
SOMAXCONN = 1024
MSG_MAXIOVLEN = 16
MSG_OOB = 0x1
MSG_PEEK = 0x2
MSG_DONTROUTE = 0x4
MSG_EOR = 0x8
MSG_TRUNC = 0x10
MSG_CTRUNC = 0x20
MSG_WAITALL = 0x40
MSG_WIRE = 0x80
MSG_AIO = 0x2000
MSG_NONBLOCK = 0x4000
MSG_COMPAT = 0x8000
MSG_SENDFILE = 0x10000
def _ALIGN(p): return \

def CMSG_SPACE(length): return _CMSG_SPACE(length)

def CMSG_LEN(length): return _CMSG_LEN(length)

def CMSG_DATALEN(cmsg): return _CMSG_DATALEN(cmsg)

def CMSG_FIRSTHDR(mhdr): return \

def CMSG_FIRSTHDR(mhdr): return \

def _CMSG_ALIGN(p): return \

def CMSG_FIRSTHDR(mhdr): return \

SCM_RIGHTS = 0x01
INET_ADDRSTRLEN = 16
IPPROTO_IP = 0
IPPROTO_HOPOPTS = 0
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_RSVP = 46
IPPROTO_ESP = 50
IPPROTO_AH = 51
IPPROTO_ICMPV6 = 58
IPPROTO_NONE = 59
IPPROTO_DSTOPTS = 60
IPPROTO_EON = 80
IPPROTO_IFMP = 101
IPPROTO_IPCOMP = 108
IPPROTO_RAW = 255
IPPROTO_MAX = 256
IPPORT_RESERVED = 1024
IPPORT_USERRESERVED = 5000
IPPORT_TIMESERVER = 37
def IN_CLASSA(i): return (((int)(i) & 0x80000000) == 0)

IN_CLASSA_NET = 0xff000000
IN_CLASSA_NSHIFT = 24
IN_CLASSA_HOST = 0x00ffffff
IN_CLASSA_MAX = 128
def IN_CLASSB(i): return (((int)(i) & 0xc0000000) == 0x80000000)

IN_CLASSB_NET = 0xffff0000
IN_CLASSB_NSHIFT = 16
IN_CLASSB_HOST = 0x0000ffff
IN_CLASSB_MAX = 65536
def IN_CLASSC(i): return (((int)(i) & 0xe0000000) == 0xc0000000)

IN_CLASSC_NET = 0xffffff00
IN_CLASSC_NSHIFT = 8
IN_CLASSC_HOST = 0x000000ff
def IN_CLASSD(i): return (((int)(i) & 0xf0000000) == 0xe0000000)

IN_CLASSD_NET = 0xf0000000
IN_CLASSD_NSHIFT = 28
IN_CLASSD_HOST = 0x0fffffff
def IN_MULTICAST(i): return IN_CLASSD(i)

def IN_EXPERIMENTAL(i): return (((int)(i) & 0xe0000000) == 0xe0000000)

def IN_BADCLASS(i): return (((int)(i) & 0xf0000000) == 0xf0000000)

INADDR_NONE = 0xffffffff
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 = 9
IP_MULTICAST_TTL = 10
IP_MULTICAST_LOOP = 11
IP_ADD_MEMBERSHIP = 12
IP_DROP_MEMBERSHIP = 13
IP_MULTICAST_VIF = 14
OIP_MULTICAST_IF = 16
OIP_MULTICAST_TTL = 17
OIP_MULTICAST_LOOP = 18
OIP_ADD_MEMBERSHIP = 19
OIP_DROP_MEMBERSHIP = 20
OIP_MULTICAST_VIF = 21
IP_RSVP_ON = 15
IP_RSVP_OFF = 16
IP_RSVP_VIF_ON = 17
IP_RSVP_VIF_OFF = 18
IP_PROXY = 19
IP_RSVP_ON = 25
IP_RSVP_OFF = 26
IP_RSVP_VIF_ON = 27
IP_RSVP_VIF_OFF = 28
IP_PROXY = 29
IP_DEFAULT_MULTICAST_TTL = 1
IP_DEFAULT_MULTICAST_LOOP = 1
IP_MAX_MEMBERSHIPS = 20

# Included from machine/endian.h
LITTLE_ENDIAN = 1234
BIG_ENDIAN = 4321
PDP_ENDIAN = 3412
BYTE_ORDER = LITTLE_ENDIAN
def ntohl(x): return nuxi_32(x)

def ntohs(x): return nuxi_16(x)

def htonl(x): return nuxi_32(x)

def htons(x): return nuxi_16(x)


# Included from inttypes.h

# Included from netinet/in6.h
from IN import *

# Included from netinet/in6_machtypes.h

# Included from sys/bitypes.h
IN6_MSB16_SHIFT = 0
IN6_MSB32_SHIFT = 0
IN6_MSW32_SHIFT = 0
IN6_BIT_ORDER = +1
IN6_MSB64_SHIFT = 0
IN6_MSW64_SHIFT = 0
IN6_MSL64_SHIFT = 0
IN6_MSB16_SHIFT = (16 - 8)
IN6_MSB32_SHIFT = (32 - 8)
IN6_MSW32_SHIFT = (32 - 16)
IN6_BIT_ORDER = -1
IN6_MSB64_SHIFT = (64 - 8)
IN6_MSW64_SHIFT = (64 - 16)
IN6_MSL64_SHIFT = (64 - 32)
def IN6_MSB64_OFFSET(n): return (IN6_MSB64_SHIFT + ((n) * IN6_BIT_ORDER * 8))

def IN6_MSW64_OFFSET(n): return (IN6_MSB64_SHIFT + ((n) * IN6_BIT_ORDER * 16))

def IN6_MSL64_OFFSET(n): return (IN6_MSB64_SHIFT + ((n) * IN6_BIT_ORDER * 32))

IN6_LSB64_SHIFT = IN6_MSB64_OFFSET(7)
IN6_LSW64_SHIFT = IN6_MSW64_OFFSET(3)
IN6_LSL64_SHIFT = IN6_MSL64_OFFSET(1)
def IN6__MK0_MSB64_VALUE(a): return ( ((u_int64_t) (a)) << IN6_MSB64_OFFSET(0))

def IN6__MK0_MSW64_VALUE(a): return ( ((u_int64_t) (a)) << IN6_MSW64_OFFSET(0))

def IN6__MK0_MSL64_VALUE(a): return ( ((u_int64_t) (a)) << IN6_MSL64_OFFSET(0) )

def IN6_MSB32_OFFSET(n): return (IN6_MSB32_SHIFT + ((n) * IN6_BIT_ORDER * 8))

def IN6_MSW32_OFFSET(n): return (IN6_MSB32_SHIFT + ((n) * IN6_BIT_ORDER * 16))

IN6_LSB32_SHIFT = IN6_MSB32_OFFSET(3)
IN6_LSW32_SHIFT = IN6_MSW32_OFFSET(1)
def IN6__MK0_MSB32_VALUE(a): return ( ((u_int32_t) (a)) << IN6_MSB32_OFFSET(0) )

def IN6__MK0_MSW32_VALUE(a): return (( (u_int32_t) (a)) << IN6_MSW32_OFFSET(0) )

def IN6_MSB16_OFFSET(n): return (IN6_MSB16_SHIFT + ((n) * IN6_BIT_ORDER * 8))

IN6_LSB16_SHIFT = IN6_MSB16_OFFSET(1)
def IN6__MK0_MSB16_VALUE(a): return ( ((u_int16_t) (a)) << IN6_MSB16_OFFSET(0))


# Included from net/if.h

# Included from netinet/if_trnstat.h
MV_RESPONSE = 0x00
MV_BEACON = 0x02
MV_CLAIM_TOKEN = 0x03
MV_RING_PURGE = 0x04
MV_ACTIVE_MON_PRES = 0x05
MV_STANDBY_MON_PRES = 0x06
MV_DUP_ADDR_TEST = 0x07
MV_LOBE_MEDIA_TEST = 0x08
MV_TRANSMIT_FORW = 0x09
MV_RMV_RING_STATION = 0x0B
MV_CHANGE_PARM = 0x0C
MV_INIT_RING_STN = 0x0D
MV_REQ_STN_ADDR = 0x0E
MV_REQ_STN_STATE = 0x0F
MV_REQ_STN_ATTACH = 0x10
MV_REQ_INIT = 0x20
MV_REPORT_STN_ADDR = 0x22
MV_REPORT_STN_STATE = 0x23
MV_REPORT_STN_ATTACH = 0x24
MV_REPORT_NEW_MONITOR = 0x25
MV_REPORT_SUA_CHANGE = 0x26
MV_REPORT_RNG_POLL_FAIL = 0x27
MV_REPORT_MONTIOR_ERR = 0x28
MV_REPORT_ERR = 0x29
MV_REPORT_TRANSMIT_FORW = 0x2A
BT_SET_RECOV_MODE = 0x01
BT_SET_SIGNAL_LOSS = 0x02
BT_SET_BIT_STREAMING = 0x03
BT_SET_CONT_STREAMING = 0x04
M_NO_ERROR = 0x0000
M_MON_ERROR = 0x0001
M_DUPLICATE_MON = 0x0002
M_DUPLICATE_ADDR = 0x0003
MIB1231_COMM_NO_OP = 1
MIB1231_COMM_OPEN = 2
MIB1231_COMM_RESET = 3
MIB1231_COMM_CLOSE = 4
MIB1231_RSTATUS_NO_PROB = 0x0000
MIB1231_RSTATUS_RING_RECOVERY = 0x0020
MIB1231_RSTATUS_SINGLE_STATION = 0x0040
MIB1231_RSTATUS_REMOVE_RCVD = 0x0100
MIB1231_RSTATUS_RESERVED = 0x0200
MIB1231_RSTATUS_AUTO_REM_ERROR = 0x0400
MIB1231_RSTATUS_LOBE_WIRE_FAULT = 0x0800
MIB1231_RSTATUS_TRANSMIT_BEACON = 0x1000
MIB1231_RSTATUS_SOFT_ERROR = 0x2000
MIB1231_RSTATUS_HARD_ERROR = 0x4000
MIB1231_RSTATUS_SIGNAL_LOSS = 0x8000
MIB1231_RSTATUS_NO_STATUS = 0x20000
MIB1231_RSTATE_OPENED = 1
MIB1231_RSTATE_CLOSED = 2
MIB1231_RSTATE_OPENING = 3
MIB1231_RSTATE_CLOSING = 4
MIB1231_RSTATE_OPEN_FAILURE = 5
MIB1231_RSTATE_RING_FAILURE = 6
MIB1231_ROSTATUS_NOOPEN = 1
MIB1231_ROSTATUS_BADPARM = 2
MIB1231_ROSTATUS_LOBEFAILED = 3
MIB1231_ROSTATUS_SIG_LOSS = 4
MIB1231_ROSTATUS_INS_TIMEOUT = 5
MIB1231_ROSTATUS_RING_FAILED = 6
MIB1231_ROSTATUS_BEACONING = 7
MIB1231_ROSTATUS_DUPLICATE_MAC = 8
MIB1231_ROSTATUS_REQ_FAILED = 9
MIB1231_ROSTATUS_REM_RECVD = 10
MIB1231_ROSTATUS_OPEN = 11
MIB1231_RSPEED_UNKNOWN = 1
MIB1231_RSPEED_1_MEG = 2
MIB1231_RSPEED_4_MEG = 3
MIB1231_RSPEED_16_MEG = 4
MIB1231_ACTMON_TRUE = 1
MIB1231_ACTMON_FALSE = 2

# Included from netinet/if_ds1stat.h
CCT_ID_LEN = 32
MARK_PRESENT = 1

# Included from sys/time.h

# Included from sys/unix_defs.h
def USPLNET(s): return USPL(s,net)

def USPLTTY(s): return USPL(s,tty)

def USPLIMP(s): return USPL(s,imp)

def USPLBIO(s): return USPL(s,bio)

def USPLVM(s): return USPL(s,vm)

def USPLHI(s): return USPL(s,hi)

def USPLCLOCK(s): return USPL(s,clock)

def USPLSOFTCLOCK(s): return USPL(s,softclock)

def USPLHIGH(s): return USPL(s,high)

def USPLSCHED(s): return USPL(s,sched)

def USPLX(s): return splx(s)

def usimple_lock(l): return simple_lock(l)

def usimple_unlock(l): return simple_unlock(l)

def usimple_lock_try(l): return simple_lock_try(l)

def usimple_lock_init(l): return simple_lock_init(l)

def usimple_lock_terminate(l): return simple_lock_terminate(l)

def usimple_lock_addr(l): return simple_lock_addr(l)

def ulock_try_write(l): return (1)

def ulock_try_read(l): return (1)

def usimple_lock_try(l): return (1)

FUNNEL_NULL = (0)
def MP_ONLY(clause): return (clause)

def MP_DECL(decl): return decl;

def UNI_ONLY(clause): return (clause)

def VSTATS_LOCK(l): return usimple_lock(l)

def VSTATS_UNLOCK(l): return usimple_unlock(l)

def BM(clause): return clause

def NM(clause): return clause


# Included from sys/signal.h

# Included from sys/siginfo.h

# Included from sys/signalmisc.h
SIGEV_SIGNAL = (0)
SIGEV_NONE = (1)
SIGEV_THREAD = (2)
SIGEV_MAX_SIZE = (64)

# Included from sys/timemisc.h
SI_MAX_SIZE = (128)
SI_QUEUE = -1
SI_USER = 0
SI_NOINFO = 1
SI_TIMER = 0x10
SI_ASYNCIO = 0x20
SI_MESGQ = 0x40
ILL_ILLOPC = 1
ILL_ILLOPN = 2
ILL_ILLADR = 3
ILL_ILLTRP = 4
ILL_PRVOPC = 5
ILL_PRVREG = 6
ILL_COPROC = 7
ILL_BADSTK = 8
NSIGILL = 8
FPE_INTDIV = 1
FPE_INTOVF = 2
FPE_FLTDIV = 3
FPE_FLTOVF = 4
FPE_FLTUND = 5
FPE_FLTRES = 6
FPE_FLTINV = 7
FPE_FLTSUB = 8
NSIGFPE = 8
SEGV_MAPERR = 1
SEGV_ACCERR = 2
SEGV_STKOVF = 3
NSIGSEGV = 3
BUS_ADRALN = 1
BUS_ADRERR = 2
BUS_OBJERR = 3
BUS_MEMERR = 4
NSIGBUS = 4
TRAP_BRKPT = 1
TRAP_TRACE = 2
NSIGTRAP = 2
CLD_EXITED = 1
CLD_KILLED = 2
CLD_DUMPED = 3
CLD_TRAPPED = 4
CLD_STOPPED = 5
CLD_CONTINUED = 6
CLD_SIGEXITING = 7
NSIGCLD = 7
POLL_IN = 1
POLL_OUT = 2
POLL_MSG = 3
POLL_ERR = 4
POLL_PRI = 5
POLL_HUP = 6
NSIGPOLL = 6
def SIGQ_FREE(xqp): return \

def sigq_clear_queue(xq): return \

ALL_SIGQ_SIGS = (-1)
SQ_RESV = 0x1
SQ_OWN = 0x2
SQ_FREE = 0X4
SQ_POST = 0x8
SQ_INQ = 0x10
SQ_PEND = 0x20
SQ_MUSTQ = 0x40
SQ_ITIMER = 0x80
SQ_QUOTA = 0x100
SQ_ABORT = 0x200
SQ_UAST = 0x400
def SIP_TO_SQP(xsip): return \

SIGHUP = 1
SIGINT = 2
SIGQUIT = 3
SIGILL = 4
SIGTRAP = 5
SIGABRT = 6
SIGEMT = 7
SIGFPE = 8
SIGKILL = 9
SIGBUS = 10
SIGSEGV = 11
SIGSYS = 12
SIGPIPE = 13
SIGALRM = 14
SIGTERM = 15
SIGURG = 16
SIGSTOP = 17
SIGTSTP = 18
SIGCONT = 19
SIGCHLD = 20
SIGTTIN = 21
SIGTTOU = 22
SIGPOLL = 23
SIGXCPU = 24
SIGXFSZ = 25
SIGVTALRM = 26
SIGPROF = 27
SIGWINCH = 28
SIGINFO = 29
SIGUSR1 = 30
SIGUSR2 = 31
SIGRESV = 32
SIGIOINT = SIGURG
SIGIO = SIGPOLL
SIGAIO = SIGIO
SIGPTY = SIGIO
SIGIOT = SIGABRT
SIGLOST = SIGIOT
SIGPWR = SIGINFO
SIG_BLOCK = 1
SIG_UNBLOCK = 2
SIG_SETMASK = 3
SA_NOCLDSTOP = 0x00000004
SA_SIGINFO = 0x00000040

# Included from machine/signal.h
def _SIGEMPTYSET(setp): return \

def _SIGFILLSET(setp): return \

def _SIGFIRSTSET(setp): return \

def _SIGFIRSTSET(setp): return \

def _SIGANYSET(setp): return \

R_V0 = 0
R_A0 = 16
R_A1 = 17
R_A2 = 18
R_A3 = 19
R_A4 = 20
R_A5 = 21
R_SP = 30

# Included from machine/context.h
def __XSE(__bar): return __bar

def __XSE(__bar): return __##__bar

ILL_RESAD_FAULT = 0x0
ILL_PRIVIN_FAULT = 0x1
ILL_RESOP_FAULT = 0x2
ILL_INST_FAULT = 0x3
ILL_MODE_FAULT = 0x4
FPE_INTOVF_TRAP = 0x1
FPE_INTDIV_TRAP = 0x2
FPE_FLTOVF_TRAP = 0x3
FPE_FLTDIV_TRAP = 0x4
FPE_FLTUND_TRAP = 0x5
FPE_DECOVF_TRAP = 0x6
FPE_SUBRNG_TRAP = 0x7
FPE_FLTOVF_FAULT = 0x8
FPE_FLTDIV_FAULT = 0x9
FPE_FLTUND_FAULT = 0xa
FPE_UNIMP_FAULT = 0xb
FPE_INVALID_FAULT = 0xc
FPE_INEXACT_FAULT = 0xd
FPE_HPARITH_TRAP = 0xe
FPE_INTOVF_FAULT = 0xf
FPE_ILLEGAL_SHADOW_TRAP = 0x10
FPE_GENTRAP = 0x11
BRK_USERBP = 0
BRK_KERNELBP = 1
BRK_ABORT = 2
BRK_BD_TAKEN = 3
BRK_BD_NOTTAKEN = 4
BRK_SSTEPBP = 5
BRK_OVERFLOW = 6
BRK_DIVZERO = 7
BRK_RANGE = 8
BRK_STACKOVERFLOW = 9
sigemptyset = _SIGEMPTYSET
sigfillset = _SIGFILLSET
sigfirstset = _SIGFIRSTSET
siganyset = _SIGANYSET
def sigmask(m): return (1L << ((m)-1))

SS_ONSTACK = 0x00000001
SS_DISABLE = 0x00000002
SS_NOMASK = 0x00000004
SS_UCONTEXT = 0x00000008
SS_STACKMAGIC = 0xfaba0000
SS_STACKMAGIC = (-361771494843351040)
_SSTACKFLAGS = (SS_ONSTACK|SS_DISABLE|SS_UCONTEXT)
MINSIGSTKSZ = (4096)
SIGSTKSZ = (16384)
SA_ONSTACK = 0x00000001
SA_RESTART = 0x00000002
SA_NODEFER = 0x00000008
SA_RESETHAND = 0x00000010
SA_NOCLDWAIT = 0x00000020
SA_SIGINFO = 0x00000040
SA_CLDNOTIFY = 0x00000080
SIGCLD = SIGCHLD
def SIGMASK(s): return sigmask(s)

SIGMAX = 48
NSIG = (SIGMAX+1)
ONSIG = (32)
SIG_STK = 0x00000001
SIG_STD = 0x00000002
SV_ONSTACK = SA_ONSTACK
SV_INTERRUPT = SA_RESTART
def sigpause(__a): return _Esigpause(__a)

def sigignore(__a): return _Esigignore(__a)


# Included from sys/procset.h
def _XSE(_id_): return _##_id_

def _XSE(_id_): return _id_

P_INITPID = 1
P_INITUID = 0
P_INITPGID = 0

# Included from sys/context_t.h
def thread_signal_disposition(signo): return (sigprop[signo] & SA_THREAD)

SA_KILL = 0x100
SA_CORE = 0x200
SA_STOP = 0x400
SA_TTYSTOP = 0x800
SA_IGNORE = 0x1000
SA_CONT = 0x2000
SA_CANTMASK = 0x4000
SA_THREAD = 0x8000
SA_PROCESS = 0x10000
SA_GROUP = 0x20000
SA_CATCH = 0x40000
SA_OMASK = 0x80000
SA_NORESET = 0x100000
SA_JOBC = 0x200000
SA_UCONTEXT = 0x400000
SA_S1170 = 0x800000
SA_SIGWAIT = 0x1000000
SA_UNWAIT = 0x2000000
SA_DEBUGGER = 0x4000000
SIGEV_GROUP = 0x01
SIGEV_CTTY = 0x02
SIGEV_SINFO = 0x08
SIGEV_DYN = 0x80
SIGEV_NOOP = 0x400
SIGEV_UNREF = 0x800

# Included from time.h
NULL = 0L
CLK_TCK = 60

# Included from sys/timers.h
TIMEOFDAY = 1
DELIVERY_SIGNALS = 1
DELIVERY_EVENTS = 2
TIMEOFDAY = 1
SIGEV_MAX_SIZE = (64)
MAX_SECONDS = LONG_MAX
NSEC_PER_USEC = (1000)
NSEC_PER_SEC = (1000000000)
TIMER_ABS = 1
TIMER_ABSTIME = 0x00000001
CLOCK_REALTIME = 1
TIMELEN = 26
TMZNLEN = 50
NLTBMAX = 64
ITIMER_REAL = 0
ITIMER_VIRTUAL = 1
ITIMER_PROF = 2
TOD_MAX_SECONDS = 100000000
DST_NONE = 0
DST_USA = 1
DST_AUST = 2
DST_WET = 3
DST_MET = 4
DST_EET = 5
DST_CAN = 6
MAX_SECONDS = LONG_MAX
NSEC_PER_USEC = (1000)
NSEC_PER_SEC = (1000000000)
TIMER_ABS = 1
TIMER_ABSTIME = 0x00000001
CLOCK_REALTIME = 1
PSX4T_CPU = 0xff
PSX4T_ACTIVE = 0x100
PSX4T_ABORT = 0x200
PSX4T_ABSTIME = 0X400
SEC_IFF_LOADING = 0x10000000
IF_LOCAL = 0
NETMASTERCPU = 0
NETALLCPU = 1
DVRFUN = 0x1
DVRFUNRESET = 0x2
DVRFUNWATCH = 0x4
IFF_UP = 0x1
IFF_BROADCAST = 0x2
IFF_DEBUG = 0x4
IFF_LOOPBACK = 0x8
IFF_POINTOPOINT = 0x10
IFF_NOTRAILERS = 0x20
IFF_RUNNING = 0x40
IFF_NOARP = 0x80
IFF_PROMISC = 0x100
IFF_ALLMULTI = 0x200
IFF_MULTICAST = 0x400
IFF_SIMPLEX = 0x800
IFF_OACTIVE = 0x1000
IFF_PFCOPYALL = 0x2000
IFF_UIOMOVE = 0x10000
IFF_PKTOK = 0x20000
IFF_SOCKBUF = 0x40000
IFF_VAR_MTU = 0x80000
IFF_NOCHECKSUM = 0x100000
IFF_RESERVED = 0x4000000
IFF_TAGGING = 0x8000000
IFF_MULTINET = 0x200000
IFF_QUORUMLOSS = 0x400000
IFF_VMIFNET = 0x800000
IFF_CLUIF = 0x1000000
IFF_DETACHED = 0x2000000
IFF_DYNPROTO = 0x200000
IFF_MOP = 0x400000
IFF_SLIP = 0x800000
IFF_DELETE = 0x1000000
IFF_NONAME = 0x2000000
IFF_CLUSTER = 0x4000000
IFF_MULTINET = 0x8000000
IFF_QUORUMLOSS = 0x10000000
IFF_VMIFNET = 0x20000000
IFF_CLUIF = 0x40000000
IFF_DETACHED = 0x80000000
IFF_D1 = 0x8000
IFF_D2 = 0x4000
IFF_SNAP = IFF_D1
IFF_CANTCHANGE = \
	(IFF_BROADCAST|IFF_POINTOPOINT|IFF_SIMPLEX|IFF_RUNNING|\
	IFF_OACTIVE|IFF_MULTICAST|IFF_UIOMOVE|IFF_PKTOK|IFF_SOCKBUF|\
	IFF_VAR_MTU|IFF_CLUIF|IFF_RESERVED|IFF_TAGGING)

# Included from net/if_types.h
IFT_OTHER = 0x1
IFT_1822 = 0x2
IFT_HDH1822 = 0x3
IFT_X25DDN = 0x4
IFT_X25 = 0x5
IFT_ETHER = 0x6
IFT_ISO88023 = 0x7
IFT_ISO88024 = 0x8
IFT_ISO88025 = 0x9
IFT_ISO88026 = 0xa
IFT_STARLAN = 0xb
IFT_P10 = 0xc
IFT_P80 = 0xd
IFT_HY = 0xe
IFT_FDDI = 0xf
IFT_LAPB = 0x10
IFT_SDLC = 0x11
IFT_T1 = 0x12
IFT_CEPT = 0x13
IFT_ISDNBASIC = 0x14
IFT_ISDNPRIMARY = 0x15
IFT_PTPSERIAL = 0x16
IFT_PPP = 0x17
IFT_LOOP = 0x18
IFT_EON = 0x19
IFT_XETHER = 0x1a
IFT_NSIP = 0x1b
IFT_SLIP = 0x1c
IFT_ULTRA = 0x1d
IFT_DS3 = 0x1e
IFT_SIP = 0x1f
IFT_FRAMERELAY = 0x20
IFT_RS232 = 0x21
IFT_PARALLEL = 0x22
IFT_ARCNET = 0x23
IFT_ARCNET_PLUS = 0x24
IFT_ATM = 0x25
IFT_MIO25 = 0x26
IFT_SONET = 0x27
IFT_X25PLE = 0x28
IFT_ISO88022LLC = 0x29
IFT_LOCALTALK = 0x2a
IFT_SMDSDXI = 0x2b
IFT_FRAMERELAYS = 0x2c
IFT_V35 = 0x2d
IFT_HSSI = 0x2e
IFT_HPPI = 0x2f
IFT_MODEM = 0x30
IFT_AAL5 = 0x31
IFT_SONETPATH = 0x32
IFT_SOBETVI = 0x33
IFT_SMDSICIP = 0x34
IFT_PROPVIRT = 0x35
IFT_PROPMULTI = 0x36
IFT_IEEE80212 = 0x37
IFT_FIBRECHAN = 0x38
IFT_HPPI_I = 0x39
IFT_FRAMEREALYI = 0x3a
IFT_LANE8023 = 0x3b
IFT_LANE8025 = 0x3c
IFT_ATMECIR = 0x3d
IFT_FASTETHER = 0x3e
IFT_ISDNX25 = 0x3f
IFT_V11 = 0x40
IFT_V36 = 0x41
IFT_G70364K = 0x42
IFT_G7022MB = 0x43
IFT_QLLC = 0x44
IFT_LAG = 0xa1
IFT_VLAN = 0x87
IFT_WANDD = 0xc8
IFT_RM = 0xc9
IFT_SYNC = 0xca
IFT_IPV4 = 0xd0
IFT_IPV6 = 0xd1
IFT_IP624 = 0xd2
IFG_ANY = 0x0
IFG_UNKNOWN = 0x1
IFG_INFRARED = 0x2
IFG_RED = 0x3
IFG_ORANGE = 0x4
IFG_YELLOW = 0x5
IFG_GREEN = 0x6
IFG_BLUE = 0x7
IFG_INDIGO = 0x8
IFG_VIOLET = 0x9
IFG_ULTRAVIOLET = 0xa
IFG_MAX = 0xa
def IFQ_LOCKINIT_SPLIMP(ifq): return IFQ_LOCKINIT(ifq)

IFQ_MAXLEN = 1024
IFNET_SLOWHZ = 1
IFNAMSIZ = 16
IF_NAMESIZE = IFNAMSIZ
IFAF_PERMIT = 0x1
IFAF_DENY = 0x2
IFAF_DENYLOG = 0x4
IFAF_MAXBUFSIZE = 0x8000
IFAF_MAXENTRIES = 0x331
IP_MINMTU = 68
LO_DEVS_MAX = 255*255*255
LOMTU = 4096
HIMTU = 65535
SLIP_DEVS_MAX = 64
IFE_NOTLAST = 0x0
IFE_LASTBLOCK = 0x1
IFE_SUCCESS = 0x0
IFE_RETRY = 0x1
IFE_FAIL = 0x2
FDX_ENB = 1
FDX_DIS = 2
AUTO_ENB = 1
AUTO_DIS = 2
CTR_ETHER = 0
CTR_DDCMP = 1
CTR_FDDI = 2
FDDIMIB_SMT = 3
FDDIMIB_MAC = 4
FDDIMIB_PATH = 5
FDDIMIB_PORT = 6
FDDIMIB_ATTA = 7
FDDI_STATUS = 8
FDDISMT_MIB_SMT = 9
FDDISMT_MIB_MAC = 10
FDDISMT_MIB_PATH = 11
FDDISMT_MIB_PORT = 12
FDDIDECEXT_MIB = 13
CTR_TRN = 14
TRN_CHAR = 15
TRN_MIB_ENTRY = 16
TRN_MIB_STAT_ENTRY = 17
TRN_MIB_TIMER_ENTRY = 18
FDDIMIB_PORT_B = 19
FDDISMT_MIB_PORT_B = 20
DS1_CONFIG = 21
DS1_CURRENT = 22
DS1_INTERVAL = 23
DS1_TOTAL = 24
DS1_FAR_END_CURRENT = 25
DS1_FAR_END_INTERVAL = 26
DS1_FAR_END_TOTAL = 27
DS1_FRAC = 28
CTR_IPSTAT = 29
CTR_IPSTATBOOT = 30
CTR_ICMPSTAT = 31
CTR_ICMPSTATBOOT = 32
CTR_TCPSTAT = 33
CTR_TCPSTATBOOT = 34
CTR_UDPSTAT = 35
CTR_UDPSTATBOOT = 36
CTR_IGMPSTAT = 37
CTR_IGMPSTATBOOT = 38
CTR_RTSTAT = 39
CTR_RTSTATBOOT = 40
CTR_MRTSTAT = 41
CTR_MRTSTATBOOT = 42
CTR_ETHER_EXTENDED = 43
CTR_FDDI_EXTENDED = 44
CTR_IPSECSTAT = 45
CTR_IPSECSTATBOOT = 46
CTR_HDRCRC = 0
CTR_DATCRC = 1
CTR_BUFUNAVAIL = 0
MIF_NETRAIN = 0x1
MIF_QUORUMLOSS = 0x2
MIF_MILLISECONDS = 0x4

# Included from net/if_arp.h
ARPHRD_ETHER = 1
ARPHRD_802 = 6
ARPOP_REQUEST = 1
ARPOP_REPLY = 2
ATF_INUSE = 0x01
ATF_COM = 0x02
ATF_PERM = 0x04
ATF_PUBL = 0x08
ATF_USETRAILERS = 0x10
ATF_USE802 = 0x20
ATF_STALE = 0x0100
ATF_DEAD = 0x0200
ATF_CANTCHANGE = (0xff00|ATF_INUSE|ATF_COM)
IPV6_UNICAST_HOPS = 104
IPV6_MULTICAST_HOPS = 105
IPV6_MULTICAST_IF = 106
IPV6_MULTICAST_LOOP = 107
IPV6_JOIN_GROUP = 108
IPV6_LEAVE_GROUP = 109
IPV6_PKTINFO = 110
IPV6_HOPLIMIT = 111
IPV6_HOPOPTS = 112
IPV6_DSTOPTS = 113
IPV6_RTHDR = 114
IPV6_NEXTHOP = 115
IPV6_CHECKSUM = 116
IPV6_PKTOPTIONS = 117
IPV6_RXHDR = 118
IPV6_V6ONLY = 119
IPV6_RTHDRDSTOPTS = 120
IPV6_RECVPKTINFO = 121
IPV6_RECVHOPLIMIT = 122
IPV6_RECVRTHDR = 123
IPV6_RECVHOPOPTS = 124
IPV6_RECVDSTOPTS = 125
IPV6_RECVRTHDRDSTOPTS = 126
IPV6_DEFAULT_UNICAST_HOPLIMIT = 64
IPV6_DEFAULT_MULTICAST_HOPS = 1
IPV6_DEFAULT_MULTICAST_LOOP = 1
IPV6_MAX_MEMBERSHIPS = 20
INET6_ADDRSTRLEN = 46
IN6_MCSCOPE_NODELOCAL = 0x01
IN6_MCSCOPE_LINKLOCAL = 0x02
IN6_MCSCOPE_SITELOCAL = 0x05
IN6_MCSCOPE_ORGLOCAL = 0x08
IN6_MCSCOPE_GLOBAL = 0x0E
IN6_MCFLAG_PERMANENT = 0x00
IN6_MCFLAG_TRANSIENT = 0x10
IPV6ADDR_LINKLOCAL_ALL_NODES_INIT = { \
	0xFF, IN6_MCSCOPE_LINKLOCAL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 }
IPV6ADDR_LINKLOCAL_ALL_ROUTERS_INIT = { \
	0xFF, IN6_MCSCOPE_LINKLOCAL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 }
IN6ADDR_ANY_INIT = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
IN6ADDR_TLA624_INIT = { 0x20, 0x02,   \
			      0, 0, 0, 0,   \
			      0, 0,         \
			      0, 0, 0, 0, 0, 0, 0, 0   }
IN6ADDR_TLA624_PFXMASK = {0xFF, 0xFF, 0, 0, 0, 0, 0, 0, 0, 0, \
				0, 0, 0, 0, 0, 0 }
IN6ADDR_LOOPBACK_INIT = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 }
IFR6_MAX_DATA = 88
IFR6_MAX_LLADDR = 63
IPV6_RTHDR_LOOSE = 0
IPV6_RTHDR_STRICT = 1
IPV6_RTHDR_TYPE_0 = 0
