require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_NET_NETISR_H_)) {
    eval 'sub _NET_NETISR_H_ () {1;}' unless defined(&_NET_NETISR_H_);
    eval 'sub NETISR_IP () {2;}' unless defined(&NETISR_IP);
    eval 'sub NETISR_IMP () {3;}' unless defined(&NETISR_IMP);
    eval 'sub NETISR_ATALK () {16;}' unless defined(&NETISR_ATALK);
    eval 'sub NETISR_ARP () {18;}' unless defined(&NETISR_ARP);
    eval 'sub NETISR_IPX () {23;}' unless defined(&NETISR_IPX);
    eval 'sub NETISR_IPV6 () {24;}' unless defined(&NETISR_IPV6);
    eval 'sub NETISR_ISDN () {26;}' unless defined(&NETISR_ISDN);
    eval 'sub NETISR_NATM () {27;}' unless defined(&NETISR_NATM);
    eval 'sub NETISR_PPP () {28;}' unless defined(&NETISR_PPP);
    eval 'sub NETISR_BRIDGE () {29;}' unless defined(&NETISR_BRIDGE);
    eval 'sub NETISR_PPPOE () {30;}' unless defined(&NETISR_PPPOE);
    eval 'sub NETISR_BT () {31;}' unless defined(&NETISR_BT);
    unless(defined(&_LOCORE)) {
	if(defined(&_KERNEL)) {
	    require 'dev/rndvar.ph';
	    eval 'sub schednetisr {
	        my($anisr) = @_;
    		eval q({  &netisr |= 1<<($anisr);  &add_net_randomness($anisr);  &setsoftnet(); });
	    }' unless defined(&schednetisr);
	}
    }
}
1;
