require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&__IP_LOOKUP_H__)) {
    eval 'sub __IP_LOOKUP_H__ () {1;}' unless defined(&__IP_LOOKUP_H__);
    if(defined(&__STDC__) || defined(&__GNUC__) || defined(&_AIX51)) {
	eval 'sub SIOCLOOKUPADDTABLE () { &_IOWR(ord(\'r\'), 60, \'struct iplookupop\');}' unless defined(&SIOCLOOKUPADDTABLE);
	eval 'sub SIOCLOOKUPDELTABLE () { &_IOWR(ord(\'r\'), 61, \'struct iplookupop\');}' unless defined(&SIOCLOOKUPDELTABLE);
	eval 'sub SIOCLOOKUPSTAT () { &_IOWR(ord(\'r\'), 64, \'struct iplookupop\');}' unless defined(&SIOCLOOKUPSTAT);
	eval 'sub SIOCLOOKUPSTATW () { &_IOW(ord(\'r\'), 64, \'struct iplookupop\');}' unless defined(&SIOCLOOKUPSTATW);
	eval 'sub SIOCLOOKUPFLUSH () { &_IOWR(ord(\'r\'), 65, \'struct iplookupflush\');}' unless defined(&SIOCLOOKUPFLUSH);
	eval 'sub SIOCLOOKUPADDNODE () { &_IOWR(ord(\'r\'), 67, \'struct iplookupop\');}' unless defined(&SIOCLOOKUPADDNODE);
	eval 'sub SIOCLOOKUPADDNODEW () { &_IOW(ord(\'r\'), 67, \'struct iplookupop\');}' unless defined(&SIOCLOOKUPADDNODEW);
	eval 'sub SIOCLOOKUPDELNODE () { &_IOWR(ord(\'r\'), 68, \'struct iplookupop\');}' unless defined(&SIOCLOOKUPDELNODE);
	eval 'sub SIOCLOOKUPDELNODEW () { &_IOW(ord(\'r\'), 68, \'struct iplookupop\');}' unless defined(&SIOCLOOKUPDELNODEW);
    } else {
	eval 'sub SIOCLOOKUPADDTABLE () { &_IOWR("r", 60, \'struct iplookupop\');}' unless defined(&SIOCLOOKUPADDTABLE);
	eval 'sub SIOCLOOKUPDELTABLE () { &_IOWR("r", 61, \'struct iplookupop\');}' unless defined(&SIOCLOOKUPDELTABLE);
	eval 'sub SIOCLOOKUPSTAT () { &_IOWR("r", 64, \'struct iplookupop\');}' unless defined(&SIOCLOOKUPSTAT);
	eval 'sub SIOCLOOKUPSTATW () { &_IOW("r", 64, \'struct iplookupop\');}' unless defined(&SIOCLOOKUPSTATW);
	eval 'sub SIOCLOOKUPFLUSH () { &_IOWR("r", 65, \'struct iplookupflush\');}' unless defined(&SIOCLOOKUPFLUSH);
	eval 'sub SIOCLOOKUPADDNODE () { &_IOWR("r", 67, \'struct iplookupop\');}' unless defined(&SIOCLOOKUPADDNODE);
	eval 'sub SIOCLOOKUPADDNODEW () { &_IOW("r", 67, \'struct iplookupop\');}' unless defined(&SIOCLOOKUPADDNODEW);
	eval 'sub SIOCLOOKUPDELNODE () { &_IOWR("r", 68, \'struct iplookupop\');}' unless defined(&SIOCLOOKUPDELNODE);
	eval 'sub SIOCLOOKUPDELNODEW () { &_IOW("r", 68, \'struct iplookupop\');}' unless defined(&SIOCLOOKUPDELNODEW);
    }
    eval 'sub LOOKUP_POOL_MAX () {( &IPL_LOGSIZE);}' unless defined(&LOOKUP_POOL_MAX);
    eval 'sub LOOKUP_POOL_SZ () {( &IPL_LOGSIZE + 1);}' unless defined(&LOOKUP_POOL_SZ);
    eval 'sub LOOKUP_ANON () {0x80000000;}' unless defined(&LOOKUP_ANON);
    eval 'sub IPLT_ALL () {-1;}' unless defined(&IPLT_ALL);
    eval 'sub IPLT_NONE () {0;}' unless defined(&IPLT_NONE);
    eval 'sub IPLT_POOL () {1;}' unless defined(&IPLT_POOL);
    eval 'sub IPLT_HASH () {2;}' unless defined(&IPLT_HASH);
    eval 'sub IPLT_DSTLIST () {3;}' unless defined(&IPLT_DSTLIST);
    eval 'sub IPLT_ANON () {0x80000000;}' unless defined(&IPLT_ANON);
    eval 'sub ili_key () { ($ili_lkey->{ilik_key});}' unless defined(&ili_key);
    eval 'sub ili_ival () { ($ili_lkey->{ilik_unstr}->{ilik_ival});}' unless defined(&ili_ival);
    eval 'sub ili_unit () { ($ili_lkey->{ilik_unstr}->{ilik_unit});}' unless defined(&ili_unit);
    eval 'sub ili_type () { ($ili_lkey->{ilik_unstr}->{ilik_type});}' unless defined(&ili_type);
    eval 'sub ili_otype () { ($ili_lkey->{ilik_unstr}->{ilik_otype});}' unless defined(&ili_otype);
    eval 'sub IPFLOOKUPITER_LIST () {0;}' unless defined(&IPFLOOKUPITER_LIST);
    eval 'sub IPFLOOKUPITER_NODE () {1;}' unless defined(&IPFLOOKUPITER_NODE);
    unless(defined(&_KERNEL)) {
    }
}
1;
