/*
* This file was produced automatically by Makefile.PL.
* Any edits made here will be lost!
* File netgen.h for Net-ext-1.011 written Sun Jan 13 17:56:21 2008.
*/
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/ip_icmp.h>
#include <netinet/ip_var.h>
#include <netinet/tcp.h>
#include <netinet/tcpip.h>
#ifndef DEFTTL
#define DEFTTL 64
#endif
#ifndef EADDRINUSE
#define EADDRINUSE 0
#endif
#ifndef EADDRNOTAVAIL
#define EADDRNOTAVAIL 0
#endif
#ifndef EAFNOSUPPORT
#define EAFNOSUPPORT 0
#endif
#ifndef EALREADY
#define EALREADY 0
#endif
#ifndef EBADMSG
#define EBADMSG 0
#endif
#ifndef ECONNABORTED
#define ECONNABORTED 0
#endif
#ifndef ECONNREFUSED
#define ECONNREFUSED 0
#endif
#ifndef ECONNRESET
#define ECONNRESET 0
#endif
#ifndef EDESTADDRREQ
#define EDESTADDRREQ 0
#endif
#ifndef EHOSTDOWN
#define EHOSTDOWN 0
#endif
#ifndef EHOSTUNREACH
#define EHOSTUNREACH 0
#endif
#ifndef EINPROGRESS
#define EINPROGRESS 0
#endif
#ifndef EISCONN
#define EISCONN 0
#endif
#ifndef EMSGSIZE
#define EMSGSIZE 0
#endif
#ifndef ENETDOWN
#define ENETDOWN 0
#endif
#ifndef ENETRESET
#define ENETRESET 0
#endif
#ifndef ENETUNREACH
#define ENETUNREACH 0
#endif
#ifndef ENOBUFS
#define ENOBUFS 0
#endif
#ifndef ENODATA
#define ENODATA 0
#endif
#ifndef ENOPROTOOPT
#define ENOPROTOOPT 0
#endif
#ifndef ENOSR
#define ENOSR 0
#endif
#ifndef ENOSTR
#define ENOSTR 0
#endif
#ifndef ENOTCONN
#define ENOTCONN 0
#endif
#ifndef ENOTSOCK
#define ENOTSOCK 0
#endif
#ifndef EOPNOTSUPP
#define EOPNOTSUPP 0
#endif
#ifndef EPFNOSUPPORT
#define EPFNOSUPPORT 0
#endif
#ifndef EPROTO
#define EPROTO 0
#endif
#ifndef EPROTONOSUPPORT
#define EPROTONOSUPPORT 0
#endif
#ifndef EPROTOTYPE
#define EPROTOTYPE 0
#endif
#ifndef ESHUTDOWN
#define ESHUTDOWN 0
#endif
#ifndef ESOCKTNOSUPPORT
#define ESOCKTNOSUPPORT 0
#endif
#ifndef ETIME
#define ETIME 0
#endif
#ifndef ETIMEDOUT
#define ETIMEDOUT 0
#endif
#ifndef ETOOMANYREFS
#define ETOOMANYREFS 0
#endif
#ifndef ICMP_ADVLENMIN
#define ICMP_ADVLENMIN (8 + 1+1+3*2+1+1+2+2*4 + 8)
#endif
#ifndef ICMP_ECHO
#define ICMP_ECHO 8
#endif
#ifndef ICMP_ECHOREPLY
#define ICMP_ECHOREPLY 0
#endif
#ifndef ICMP_IREQ
#define ICMP_IREQ 15
#endif
#ifndef ICMP_IREQREPLY
#define ICMP_IREQREPLY 16
#endif
#ifndef ICMP_MASKLEN
#define ICMP_MASKLEN 12
#endif
#ifndef ICMP_MASKREPLY
#define ICMP_MASKREPLY 18
#endif
#ifndef ICMP_MASKREQ
#define ICMP_MASKREQ 17
#endif
#ifndef ICMP_MAXTYPE
#define ICMP_MAXTYPE 18
#endif
#ifndef ICMP_MINLEN
#define ICMP_MINLEN 8
#endif
#ifndef ICMP_PARAMPROB
#define ICMP_PARAMPROB 12
#endif
#ifndef ICMP_REDIRECT
#define ICMP_REDIRECT 5
#endif
#ifndef ICMP_REDIRECT_HOST
#define ICMP_REDIRECT_HOST 1
#endif
#ifndef ICMP_REDIRECT_NET
#define ICMP_REDIRECT_NET 0
#endif
#ifndef ICMP_REDIRECT_TOSHOST
#define ICMP_REDIRECT_TOSHOST 3
#endif
#ifndef ICMP_REDIRECT_TOSNET
#define ICMP_REDIRECT_TOSNET 2
#endif
#ifndef ICMP_SOURCEQUENCH
#define ICMP_SOURCEQUENCH 4
#endif
#ifndef ICMP_TIMXCEED
#define ICMP_TIMXCEED 11
#endif
#ifndef ICMP_TIMXCEED_INTRANS
#define ICMP_TIMXCEED_INTRANS 0
#endif
#ifndef ICMP_TIMXCEED_REASS
#define ICMP_TIMXCEED_REASS 1
#endif
#ifndef ICMP_TSLEN
#define ICMP_TSLEN (8 + 3 * 4)
#endif
#ifndef ICMP_TSTAMP
#define ICMP_TSTAMP 13
#endif
#ifndef ICMP_TSTAMPREPLY
#define ICMP_TSTAMPREPLY 14
#endif
#ifndef ICMP_UNREACH
#define ICMP_UNREACH 3
#endif
#ifndef ICMP_UNREACH_HOST
#define ICMP_UNREACH_HOST 1
#endif
#ifndef ICMP_UNREACH_NEEDFRAG
#define ICMP_UNREACH_NEEDFRAG 4
#endif
#ifndef ICMP_UNREACH_NET
#define ICMP_UNREACH_NET 0
#endif
#ifndef ICMP_UNREACH_PORT
#define ICMP_UNREACH_PORT 3
#endif
#ifndef ICMP_UNREACH_PROTOCOL
#define ICMP_UNREACH_PROTOCOL 2
#endif
#ifndef ICMP_UNREACH_SRCFAIL
#define ICMP_UNREACH_SRCFAIL 5
#endif
#ifndef INADDR_ALLHOSTS_GROUP
#define INADDR_ALLHOSTS_GROUP ((U32)0xe0000001)
#endif
#ifndef INADDR_ALLRTRS_GROUP
#define INADDR_ALLRTRS_GROUP ((U32)0xe0000002)
#endif
#ifndef INADDR_MAX_LOCAL_GROUP
#define INADDR_MAX_LOCAL_GROUP ((U32)0xe00000ff)
#endif
#ifndef INADDR_UNSPEC_GROUP
#define INADDR_UNSPEC_GROUP ((U32)0xe0000000)
#endif
#ifndef IN_CLASSA_HOST
#define IN_CLASSA_HOST ((U32)0x00ffffff)
#endif
#ifndef IN_CLASSA_MAX
#define IN_CLASSA_MAX 128
#endif
#ifndef IN_CLASSA_NET
#define IN_CLASSA_NET ((U32)0xff000000)
#endif
#ifndef IN_CLASSA_NSHIFT
#define IN_CLASSA_NSHIFT 24
#endif
#ifndef IN_CLASSB_HOST
#define IN_CLASSB_HOST ((U32)0x0000ffff)
#endif
#ifndef IN_CLASSB_MAX
#define IN_CLASSB_MAX 65536
#endif
#ifndef IN_CLASSB_NET
#define IN_CLASSB_NET ((U32)0xffff0000)
#endif
#ifndef IN_CLASSB_NSHIFT
#define IN_CLASSB_NSHIFT 16
#endif
#ifndef IN_CLASSC_HOST
#define IN_CLASSC_HOST ((U32)0x000000ff)
#endif
#ifndef IN_CLASSC_MAX
#define IN_CLASSC_MAX (256*256*256)
#endif
#ifndef IN_CLASSC_NET
#define IN_CLASSC_NET ((U32)0xffffff00)
#endif
#ifndef IN_CLASSC_NSHIFT
#define IN_CLASSC_NSHIFT 8
#endif
#ifndef IN_CLASSD_HOST
#define IN_CLASSD_HOST ((U32)0x0fffffff)
#endif
#ifndef IN_CLASSD_NET
#define IN_CLASSD_NET ((U32)0xf0000000)
#endif
#ifndef IN_CLASSD_NSHIFT
#define IN_CLASSD_NSHIFT 28
#endif
#ifndef IN_LOOPBACKNET
#define IN_LOOPBACKNET 127
#endif
#ifndef IPOPT_CIPSO
#define IPOPT_CIPSO 134
#endif
#ifndef IPOPT_CONTROL
#define IPOPT_CONTROL 0x00
#endif
#ifndef IPOPT_DEBMEAS
#define IPOPT_DEBMEAS 0x40
#endif
#ifndef IPOPT_EOL
#define IPOPT_EOL 0
#endif
#ifndef IPOPT_LSRR
#define IPOPT_LSRR 131
#endif
#ifndef IPOPT_MINOFF
#define IPOPT_MINOFF 4
#endif
#ifndef IPOPT_NOP
#define IPOPT_NOP 1
#endif
#ifndef IPOPT_OFFSET
#define IPOPT_OFFSET 2
#endif
#ifndef IPOPT_OLEN
#define IPOPT_OLEN 1
#endif
#ifndef IPOPT_OPTVAL
#define IPOPT_OPTVAL 0
#endif
#ifndef IPOPT_RESERVED1
#define IPOPT_RESERVED1 0x20
#endif
#ifndef IPOPT_RESERVED2
#define IPOPT_RESERVED2 0x60
#endif
#ifndef IPOPT_RIPSO_AUX
#define IPOPT_RIPSO_AUX 133
#endif
#ifndef IPOPT_RR
#define IPOPT_RR 7
#endif
#ifndef IPOPT_SATID
#define IPOPT_SATID 136
#endif
#ifndef IPOPT_SECURITY
#define IPOPT_SECURITY 130
#endif
#ifndef IPOPT_SECUR_CONFID
#define IPOPT_SECUR_CONFID 0xf135
#endif
#ifndef IPOPT_SECUR_EFTO
#define IPOPT_SECUR_EFTO 0x789a
#endif
#ifndef IPOPT_SECUR_MMMM
#define IPOPT_SECUR_MMMM 0xbc4d
#endif
#ifndef IPOPT_SECUR_RESTR
#define IPOPT_SECUR_RESTR 0xaf13
#endif
#ifndef IPOPT_SECUR_SECRET
#define IPOPT_SECUR_SECRET 0xd788
#endif
#ifndef IPOPT_SECUR_TOPSECRET
#define IPOPT_SECUR_TOPSECRET 0x6bc5
#endif
#ifndef IPOPT_SECUR_UNCLASS
#define IPOPT_SECUR_UNCLASS 0x0000
#endif
#ifndef IPOPT_SSRR
#define IPOPT_SSRR 137
#endif
#ifndef IPOPT_TS
#define IPOPT_TS 68
#endif
#ifndef IPOPT_TS_PRESPEC
#define IPOPT_TS_PRESPEC 3
#endif
#ifndef IPOPT_TS_TSANDADDR
#define IPOPT_TS_TSANDADDR 1
#endif
#ifndef IPOPT_TS_TSONLY
#define IPOPT_TS_TSONLY 0
#endif
#ifndef IPPORT_DYNAMIC
#define IPPORT_DYNAMIC 49152
#endif
#ifndef IPPORT_RESERVED
#define IPPORT_RESERVED 1024
#endif
#ifndef IPPORT_USERRESERVED
#define IPPORT_USERRESERVED 5000
#endif
#ifndef IPPROTO_EGP
#define IPPROTO_EGP 8
#endif
#ifndef IPPROTO_EON
#define IPPROTO_EON 80
#endif
#ifndef IPPROTO_GGP
#define IPPROTO_GGP 3
#endif
#ifndef IPPROTO_HELLO
#define IPPROTO_HELLO 63
#endif
#ifndef IPPROTO_ICMP
#define IPPROTO_ICMP 1
#endif
#ifndef IPPROTO_IDP
#define IPPROTO_IDP 22
#endif
#ifndef IPPROTO_IGMP
#define IPPROTO_IGMP 2
#endif
#ifndef IPPROTO_IP
#define IPPROTO_IP 0
#endif
#ifndef IPPROTO_IPIP
#define IPPROTO_IPIP 4
#endif
#ifndef IPPROTO_MAX
#define IPPROTO_MAX 256
#endif
#ifndef IPPROTO_PUP
#define IPPROTO_PUP 12
#endif
#ifndef IPPROTO_RAW
#define IPPROTO_RAW 255
#endif
#ifndef IPPROTO_RSVP
#define IPPROTO_RSVP 46
#endif
#ifndef IPPROTO_TCP
#define IPPROTO_TCP 6
#endif
#ifndef IPPROTO_TP
#define IPPROTO_TP 29
#endif
#ifndef IPPROTO_UDP
#define IPPROTO_UDP 17
#endif
#ifndef IPTOS_LOWDELAY
#define IPTOS_LOWDELAY 0x10
#endif
#ifndef IPTOS_PREC_CRITIC_ECP
#define IPTOS_PREC_CRITIC_ECP 0xa0
#endif
#ifndef IPTOS_PREC_FLASH
#define IPTOS_PREC_FLASH 0x60
#endif
#ifndef IPTOS_PREC_FLASHOVERRIDE
#define IPTOS_PREC_FLASHOVERRIDE 0x80
#endif
#ifndef IPTOS_PREC_IMMEDIATE
#define IPTOS_PREC_IMMEDIATE 0x40
#endif
#ifndef IPTOS_PREC_INTERNETCONTROL
#define IPTOS_PREC_INTERNETCONTROL 0xc0
#endif
#ifndef IPTOS_PREC_NETCONTROL
#define IPTOS_PREC_NETCONTROL 0xe0
#endif
#ifndef IPTOS_PREC_PRIORITY
#define IPTOS_PREC_PRIORITY 0x20
#endif
#ifndef IPTOS_PREC_ROUTINE
#define IPTOS_PREC_ROUTINE 0x10
#endif
#ifndef IPTOS_RELIABILITY
#define IPTOS_RELIABILITY 0x04
#endif
#ifndef IPTOS_THROUGHPUT
#define IPTOS_THROUGHPUT 0x08
#endif
#ifndef IPTTLDEC
#define IPTTLDEC 1
#endif
#ifndef IPVERSION
#define IPVERSION 4
#endif
#ifndef IP_DF
#define IP_DF 0x4000
#endif
#ifndef IP_MAXPACKET
#define IP_MAXPACKET 65535
#endif
#ifndef IP_MF
#define IP_MF 0x2000
#endif
#ifndef IP_MSS
#define IP_MSS 576
#endif
#ifndef MAXTTL
#define MAXTTL 255
#endif
#ifndef MAX_IPOPTLEN
#define MAX_IPOPTLEN 40
#endif
#ifndef MINTTL
#define MINTTL 1
#endif
#ifndef MSG_OOB
#define MSG_OOB 0
#endif
#ifndef SOMAXCONN
#define SOMAXCONN 5
#endif
#ifndef TCPOPT_EOL
#define TCPOPT_EOL 0
#endif
#ifndef TCPOPT_MAXSEG
#define TCPOPT_MAXSEG 2
#endif
#ifndef TCPOPT_NOP
#define TCPOPT_NOP 1
#endif
#ifndef TCPOPT_WINDOW
#define TCPOPT_WINDOW 3
#endif
#ifndef TCP_MAXWIN
#define TCP_MAXWIN 65535
#endif
#ifndef TCP_MAX_WINSHIFT
#define TCP_MAX_WINSHIFT 14
#endif
#ifndef TCP_MSS
#define TCP_MSS 536
#endif
#ifndef TCP_MSS_IETF
#define TCP_MSS_IETF 536
#endif
#ifndef TH_ACK
#define TH_ACK 0x10
#endif
#ifndef TH_FIN
#define TH_FIN 0x01
#endif
#ifndef TH_PUSH
#define TH_PUSH 0x08
#endif
#ifndef TH_RST
#define TH_RST 0x04
#endif
#ifndef TH_SYN
#define TH_SYN 0x02
#endif
#ifndef TH_URG
#define TH_URG 0x20
#endif
#ifndef ICMP_INFOTYPE
#define ICMP_INFOTYPE(_A) (((UV)(_A)<19)&&((1L<<(_A)) & 0x7e101L))
#endif
#ifndef IN_BADCLASS
#define IN_BADCLASS(_A) (((U32)(_A) & 0xf0000000) == 0xf0000000)
#endif
#ifndef IN_CLASSA
#define IN_CLASSA(_A) (((U32)(_A) & 0x80000000) == 0)
#endif
#ifndef IN_CLASSB
#define IN_CLASSB(_A) (((U32)(_A) & 0xc0000000) == 0x80000000)
#endif
#ifndef IN_CLASSC
#define IN_CLASSC(_A) (((U32)(_A) & 0xe0000000) == 0xc0000000)
#endif
#ifndef IN_CLASSD
#define IN_CLASSD(_A) (((U32)(_A) & 0xf0000000) == 0xe0000000)
#endif
#ifndef IN_EXPERIMENTAL
#define IN_EXPERIMENTAL(_A) IN_BADCLASS((_A))
#endif
#ifndef IN_MULTICAST
#define IN_MULTICAST(_A) IN_CLASSD((_A))
#endif
#ifndef IPOPT_CLASS
#define IPOPT_CLASS(_A) ((_A)&0x60)
#endif
#ifndef IPOPT_COPIED
#define IPOPT_COPIED(_A) ((_A)&0x80)
#endif
#ifndef IPOPT_NUMBER
#define IPOPT_NUMBER(_A) ((_A)&0x1f)
#endif
/*
* End of automatically generated netgen.h for Net-ext-1.011.
*/
syntax highlighted by Code2HTML, v. 0.9.1