require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_NETINET_IP_VAR_H_)) {
    eval 'sub _NETINET_IP_VAR_H_ () {1;}' unless defined(&_NETINET_IP_VAR_H_);
    require 'sys/queue.ph';
    require 'net/route.ph';
    if(defined(&__CTASSERT)) {
    }
    eval 'sub MAX_IPOPTLEN () {40;}' unless defined(&MAX_IPOPTLEN);
    eval 'sub IP_STAT_TOTAL () {0;}' unless defined(&IP_STAT_TOTAL);
    eval 'sub IP_STAT_BADSUM () {1;}' unless defined(&IP_STAT_BADSUM);
    eval 'sub IP_STAT_TOOSHORT () {2;}' unless defined(&IP_STAT_TOOSHORT);
    eval 'sub IP_STAT_TOOSMALL () {3;}' unless defined(&IP_STAT_TOOSMALL);
    eval 'sub IP_STAT_BADHLEN () {4;}' unless defined(&IP_STAT_BADHLEN);
    eval 'sub IP_STAT_BADLEN () {5;}' unless defined(&IP_STAT_BADLEN);
    eval 'sub IP_STAT_FRAGMENTS () {6;}' unless defined(&IP_STAT_FRAGMENTS);
    eval 'sub IP_STAT_FRAGDROPPED () {7;}' unless defined(&IP_STAT_FRAGDROPPED);
    eval 'sub IP_STAT_FRAGTIMEOUT () {8;}' unless defined(&IP_STAT_FRAGTIMEOUT);
    eval 'sub IP_STAT_FORWARD () {9;}' unless defined(&IP_STAT_FORWARD);
    eval 'sub IP_STAT_FASTFORWARD () {10;}' unless defined(&IP_STAT_FASTFORWARD);
    eval 'sub IP_STAT_CANTFORWARD () {11;}' unless defined(&IP_STAT_CANTFORWARD);
    eval 'sub IP_STAT_REDIRECTSENT () {12;}' unless defined(&IP_STAT_REDIRECTSENT);
    eval 'sub IP_STAT_NOPROTO () {13;}' unless defined(&IP_STAT_NOPROTO);
    eval 'sub IP_STAT_DELIVERED () {14;}' unless defined(&IP_STAT_DELIVERED);
    eval 'sub IP_STAT_LOCALOUT () {15;}' unless defined(&IP_STAT_LOCALOUT);
    eval 'sub IP_STAT_ODROPPED () {16;}' unless defined(&IP_STAT_ODROPPED);
    eval 'sub IP_STAT_REASSEMBLED () {17;}' unless defined(&IP_STAT_REASSEMBLED);
    eval 'sub IP_STAT_FRAGMENTED () {18;}' unless defined(&IP_STAT_FRAGMENTED);
    eval 'sub IP_STAT_OFRAGMENTS () {19;}' unless defined(&IP_STAT_OFRAGMENTS);
    eval 'sub IP_STAT_CANTFRAG () {20;}' unless defined(&IP_STAT_CANTFRAG);
    eval 'sub IP_STAT_BADOPTIONS () {21;}' unless defined(&IP_STAT_BADOPTIONS);
    eval 'sub IP_STAT_NOROUTE () {22;}' unless defined(&IP_STAT_NOROUTE);
    eval 'sub IP_STAT_BADVERS () {23;}' unless defined(&IP_STAT_BADVERS);
    eval 'sub IP_STAT_RAWOUT () {24;}' unless defined(&IP_STAT_RAWOUT);
    eval 'sub IP_STAT_BADFRAGS () {25;}' unless defined(&IP_STAT_BADFRAGS);
    eval 'sub IP_STAT_RCVMEMDROP () {26;}' unless defined(&IP_STAT_RCVMEMDROP);
    eval 'sub IP_STAT_TOOLONG () {27;}' unless defined(&IP_STAT_TOOLONG);
    eval 'sub IP_STAT_NOGIF () {28;}' unless defined(&IP_STAT_NOGIF);
    eval 'sub IP_STAT_BADADDR () {29;}' unless defined(&IP_STAT_BADADDR);
    eval 'sub IP_STAT_NOL2TP () {30;}' unless defined(&IP_STAT_NOL2TP);
    eval 'sub IP_STAT_NOIPSEC () {31;}' unless defined(&IP_STAT_NOIPSEC);
    eval 'sub IP_STAT_PFILDROP_IN () {32;}' unless defined(&IP_STAT_PFILDROP_IN);
    eval 'sub IP_STAT_PFILDROP_OUT () {33;}' unless defined(&IP_STAT_PFILDROP_OUT);
    eval 'sub IP_STAT_IPSECDROP_IN () {34;}' unless defined(&IP_STAT_IPSECDROP_IN);
    eval 'sub IP_STAT_IPSECDROP_OUT () {35;}' unless defined(&IP_STAT_IPSECDROP_OUT);
    eval 'sub IP_STAT_IFDROP () {36;}' unless defined(&IP_STAT_IFDROP);
    eval 'sub IP_STAT_TIMXCEED () {37;}' unless defined(&IP_STAT_TIMXCEED);
    eval 'sub IP_STAT_IFNOADDR () {38;}' unless defined(&IP_STAT_IFNOADDR);
    eval 'sub IP_STAT_RTREJECT () {39;}' unless defined(&IP_STAT_RTREJECT);
    eval 'sub IP_STAT_BCASTDENIED () {40;}' unless defined(&IP_STAT_BCASTDENIED);
    eval 'sub IP_NSTATS () {41;}' unless defined(&IP_NSTATS);
    if(defined(&_KERNEL)) {
	if(defined(&_KERNEL_OPT)) {
	    require './netinet/opt_gateway.ph';
	    require './netinet/opt_mbuftrace.ph';
	}
	eval 'sub IP_FORWARDING () {0x1;}' unless defined(&IP_FORWARDING);
	eval 'sub IP_RAWOUTPUT () {0x2;}' unless defined(&IP_RAWOUTPUT);
	eval 'sub IP_RETURNMTU () {0x4;}' unless defined(&IP_RETURNMTU);
	eval 'sub IP_NOIPNEWID () {0x8;}' unless defined(&IP_NOIPNEWID);
	eval 'sub IP_ROUTETOIF () { &SO_DONTROUTE;}' unless defined(&IP_ROUTETOIF);
	eval 'sub IP_ALLOWBROADCAST () { &SO_BROADCAST;}' unless defined(&IP_ALLOWBROADCAST);
	eval 'sub IP_IGMP_MCAST () {0x40;}' unless defined(&IP_IGMP_MCAST);
	eval 'sub IP_MTUDISC () {0x400;}' unless defined(&IP_MTUDISC);
	eval 'sub IP_ROUTETOIFINDEX () {0x800;}' unless defined(&IP_ROUTETOIFINDEX);
	if(defined(&MBUFTRACE)) {
	}
    }
}
1;
