require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_NET_IF_ATM_H_)) {
    eval 'sub _NET_IF_ATM_H_ () {1;}' unless defined(&_NET_IF_ATM_H_);
    eval 'sub RTALLOC1 {
        my($A,$B) = @_;
	    eval q( &rtalloc1(($A),($B), 0));
    }' unless defined(&RTALLOC1);
    eval 'sub ATM_PH_FLAGS {
        my($X) = @_;
	    eval q((($X)-> $atm_ph[0]));
    }' unless defined(&ATM_PH_FLAGS);
    eval 'sub ATM_PH_VPI {
        my($X) = @_;
	    eval q((($X)-> $atm_ph[1]));
    }' unless defined(&ATM_PH_VPI);
    eval 'sub ATM_PH_VCI {
        my($X) = @_;
	    eval q((((($X)-> $atm_ph[2]) << 8) | (($X)-> $atm_ph[3])));
    }' unless defined(&ATM_PH_VCI);
    eval 'sub ATM_PH_SETVCI {
        my($X,$V) = @_;
	    eval q({ ($X)-> $atm_ph[2] = (($V) >> 8) & 0xff; ($X)-> $atm_ph[3] = (($V) & 0xff); });
    }' unless defined(&ATM_PH_SETVCI);
    eval 'sub ATM_PH_AAL5 () {0x1;}' unless defined(&ATM_PH_AAL5);
    eval 'sub ATM_PH_LLCSNAP () {0x2;}' unless defined(&ATM_PH_LLCSNAP);
    eval 'sub ATM_PH_DRIVER7 () {0x40;}' unless defined(&ATM_PH_DRIVER7);
    eval 'sub ATM_PH_DRIVER8 () {0x80;}' unless defined(&ATM_PH_DRIVER8);
    eval 'sub ATMMTU () {9180;}' unless defined(&ATMMTU);
    eval 'sub SIOCRAWATM () { &_IOWR(ord(\'a\'), 122, \'int\');}' unless defined(&SIOCRAWATM);
    eval 'sub SIOCATMENA () { &_IOWR(ord(\'a\'), 123, \'struct atm_pseudoioctl\');}' unless defined(&SIOCATMENA);
    eval 'sub SIOCATMDIS () { &_IOWR(ord(\'a\'), 124, \'struct atm_pseudoioctl\');}' unless defined(&SIOCATMDIS);
    eval 'sub ATMLLC_HDR () {"\\252\\252\\3\\0\\0\\0";}' unless defined(&ATMLLC_HDR);
    eval 'sub ATM_LLC_TYPE {
        my($X) = @_;
	    eval q(((($X)-> $type[0] << 8) | (($X)-> $type[1])));
    }' unless defined(&ATM_LLC_TYPE);
    eval 'sub ATM_LLC_SETTYPE {
        my($X,$V) = @_;
	    eval q({ ($X)-> $type[0] = (($V) >> 8) & 0xff; ($X)-> $type[1] = (($V) & 0xff); });
    }' unless defined(&ATM_LLC_SETTYPE);
    if(defined(&_KERNEL)) {
    }
}
1;
