require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_NETINET_IP_VAR_H_)) {
    eval 'sub _NETINET_IP_VAR_H_ () {1;}' unless defined(&_NETINET_IP_VAR_H_);
    require 'sys/queue.ph';
    eval 'sub MAX_IPOPTLEN () {40;}' unless defined(&MAX_IPOPTLEN);
    if(defined(&_KERNEL)) {
	eval 'sub IP_FORWARDING () {0x1;}' unless defined(&IP_FORWARDING);
	eval 'sub IP_RAWOUTPUT () {0x2;}' unless defined(&IP_RAWOUTPUT);
	eval 'sub IP_ROUTETOIF () { &SO_DONTROUTE;}' unless defined(&IP_ROUTETOIF);
	eval 'sub IP_ALLOWBROADCAST () { &SO_BROADCAST;}' unless defined(&IP_ALLOWBROADCAST);
	eval 'sub IP_JUMBO () { &SO_JUMBO;}' unless defined(&IP_JUMBO);
	eval 'sub IP_MTUDISC () {0x800;}' unless defined(&IP_MTUDISC);
	eval 'sub IP_ROUTETOETHER () {0x1000;}' unless defined(&IP_ROUTETOETHER);
    }
}
1;
