require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_NET_IF_ARP_H_)) {
    eval 'sub _NET_IF_ARP_H_ () {1;}' unless defined(&_NET_IF_ARP_H_);
    eval 'sub ARPHRD_ETHER () {1;}' unless defined(&ARPHRD_ETHER);
    eval 'sub ARPHRD_IEEE802 () {6;}' unless defined(&ARPHRD_IEEE802);
    eval 'sub ARPHRD_ARCNET () {7;}' unless defined(&ARPHRD_ARCNET);
    eval 'sub ARPHRD_FRELAY () {15;}' unless defined(&ARPHRD_FRELAY);
    eval 'sub ARPHRD_STRIP () {23;}' unless defined(&ARPHRD_STRIP);
    eval 'sub ARPHRD_IEEE1394 () {24;}' unless defined(&ARPHRD_IEEE1394);
    eval 'sub ARPOP_REQUEST () {1;}' unless defined(&ARPOP_REQUEST);
    eval 'sub ARPOP_REPLY () {2;}' unless defined(&ARPOP_REPLY);
    eval 'sub ARPOP_REVREQUEST () {3;}' unless defined(&ARPOP_REVREQUEST);
    eval 'sub ARPOP_REVREPLY () {4;}' unless defined(&ARPOP_REVREPLY);
    eval 'sub ARPOP_INVREQUEST () {8;}' unless defined(&ARPOP_INVREQUEST);
    eval 'sub ARPOP_INVREPLY () {9;}' unless defined(&ARPOP_INVREPLY);
    if(defined(&COMMENT_ONLY)) {
    }
    eval 'sub ar_data {
        my($ap) = @_;
	    eval q({ ( &uint8_t *)( &void *)($ap + 1); });
    }' unless defined(&ar_data);
    eval 'sub ar_sha {
        my($ap) = @_;
	    eval q({  &ar_data($ap) + 0; });
    }' unless defined(&ar_sha);
    eval 'sub ar_spa {
        my($ap) = @_;
	    eval q({  &ar_data($ap) +  ($ap->{ar_hln}); });
    }' unless defined(&ar_spa);
    eval 'sub ar_tha {
        my($ap) = @_;
	    eval q({  &if ( &ntohs( ($ap->{ar_hrd})) ==  &ARPHRD_IEEE1394) {  &NULL; }  &else {  &ar_data($ap) +  ($ap->{ar_hln}) +  ($ap->{ar_pln}); } });
    }' unless defined(&ar_tha);
    eval 'sub ar_tpa {
        my($ap) = @_;
	    eval q({  &if ( &ntohs( ($ap->{ar_hrd})) ==  &ARPHRD_IEEE1394) {  &ar_data($ap) +  ($ap->{ar_hln}) +  ($ap->{ar_pln}); }  &else {  &ar_data($ap) +  ($ap->{ar_hln}) +  ($ap->{ar_pln}) +  ($ap->{ar_hln}); } });
    }' unless defined(&ar_tpa);
    eval 'sub ATF_INUSE () {0x1;}' unless defined(&ATF_INUSE);
    eval 'sub ATF_COM () {0x2;}' unless defined(&ATF_COM);
    eval 'sub ATF_PERM () {0x4;}' unless defined(&ATF_PERM);
    eval 'sub ATF_PUBL () {0x8;}' unless defined(&ATF_PUBL);
    eval 'sub ATF_USETRAILERS () {0x10;}' unless defined(&ATF_USETRAILERS);
    eval 'sub ARP_STAT_SNDTOTAL () {0;}' unless defined(&ARP_STAT_SNDTOTAL);
    eval 'sub ARP_STAT_SNDREPLY () {1;}' unless defined(&ARP_STAT_SNDREPLY);
    eval 'sub ARP_STAT_SENDREQUEST () {2;}' unless defined(&ARP_STAT_SENDREQUEST);
    eval 'sub ARP_STAT_RCVTOTAL () {3;}' unless defined(&ARP_STAT_RCVTOTAL);
    eval 'sub ARP_STAT_RCVREQUEST () {4;}' unless defined(&ARP_STAT_RCVREQUEST);
    eval 'sub ARP_STAT_RCVREPLY () {5;}' unless defined(&ARP_STAT_RCVREPLY);
    eval 'sub ARP_STAT_RCVMCAST () {6;}' unless defined(&ARP_STAT_RCVMCAST);
    eval 'sub ARP_STAT_RCVBADPROTO () {7;}' unless defined(&ARP_STAT_RCVBADPROTO);
    eval 'sub ARP_STAT_RCVBADLEN () {8;}' unless defined(&ARP_STAT_RCVBADLEN);
    eval 'sub ARP_STAT_RCVZEROTPA () {9;}' unless defined(&ARP_STAT_RCVZEROTPA);
    eval 'sub ARP_STAT_RCVZEROSPA () {10;}' unless defined(&ARP_STAT_RCVZEROSPA);
    eval 'sub ARP_STAT_RCVNOINT () {11;}' unless defined(&ARP_STAT_RCVNOINT);
    eval 'sub ARP_STAT_RCVLOCALSHA () {12;}' unless defined(&ARP_STAT_RCVLOCALSHA);
    eval 'sub ARP_STAT_RCVBCASTSHA () {13;}' unless defined(&ARP_STAT_RCVBCASTSHA);
    eval 'sub ARP_STAT_RCVLOCALSPA () {14;}' unless defined(&ARP_STAT_RCVLOCALSPA);
    eval 'sub ARP_STAT_RCVOVERPERM () {15;}' unless defined(&ARP_STAT_RCVOVERPERM);
    eval 'sub ARP_STAT_RCVOVERINT () {16;}' unless defined(&ARP_STAT_RCVOVERINT);
    eval 'sub ARP_STAT_RCVOVER () {17;}' unless defined(&ARP_STAT_RCVOVER);
    eval 'sub ARP_STAT_RCVLENCHG () {18;}' unless defined(&ARP_STAT_RCVLENCHG);
    eval 'sub ARP_STAT_DFRTOTAL () {19;}' unless defined(&ARP_STAT_DFRTOTAL);
    eval 'sub ARP_STAT_DFRSENT () {20;}' unless defined(&ARP_STAT_DFRSENT);
    eval 'sub ARP_STAT_DFRDROPPED () {21;}' unless defined(&ARP_STAT_DFRDROPPED);
    eval 'sub ARP_STAT_ALLOCFAIL () {22;}' unless defined(&ARP_STAT_ALLOCFAIL);
    eval 'sub ARP_NSTATS () {23;}' unless defined(&ARP_NSTATS);
}
1;
