require '_h2ph_pre.ph';

unless(defined(&__IF_TUN_H)) {
    eval 'sub __IF_TUN_H () {1;}' unless defined(&__IF_TUN_H);
    eval 'sub TUN_READQ_SIZE () {10;}' unless defined(&TUN_READQ_SIZE);
    eval 'sub TUN_TUN_DEV () {0x1;}' unless defined(&TUN_TUN_DEV);
    eval 'sub TUN_TAP_DEV () {0x2;}' unless defined(&TUN_TAP_DEV);
    eval 'sub TUN_TYPE_MASK () {0xf;}' unless defined(&TUN_TYPE_MASK);
    eval 'sub TUN_FASYNC () {0x10;}' unless defined(&TUN_FASYNC);
    eval 'sub TUN_NOCHECKSUM () {0x20;}' unless defined(&TUN_NOCHECKSUM);
    eval 'sub TUN_NO_PI () {0x40;}' unless defined(&TUN_NO_PI);
    eval 'sub TUN_ONE_QUEUE () {0x80;}' unless defined(&TUN_ONE_QUEUE);
    eval 'sub TUN_PERSIST () {0x100;}' unless defined(&TUN_PERSIST);
    eval 'sub TUNSETNOCSUM () { &_IOW(ord(\'T\'), 200, \'int\');}' unless defined(&TUNSETNOCSUM);
    eval 'sub TUNSETDEBUG () { &_IOW(ord(\'T\'), 201, \'int\');}' unless defined(&TUNSETDEBUG);
    eval 'sub TUNSETIFF () { &_IOW(ord(\'T\'), 202, \'int\');}' unless defined(&TUNSETIFF);
    eval 'sub TUNSETPERSIST () { &_IOW(ord(\'T\'), 203, \'int\');}' unless defined(&TUNSETPERSIST);
    eval 'sub TUNSETOWNER () { &_IOW(ord(\'T\'), 204, \'int\');}' unless defined(&TUNSETOWNER);
    eval 'sub IFF_TUN () {0x1;}' unless defined(&IFF_TUN);
    eval 'sub IFF_TAP () {0x2;}' unless defined(&IFF_TAP);
    eval 'sub IFF_NO_PI () {0x1000;}' unless defined(&IFF_NO_PI);
    eval 'sub IFF_ONE_QUEUE () {0x2000;}' unless defined(&IFF_ONE_QUEUE);
    eval 'sub TUN_PKT_STRIP () {0x1;}' unless defined(&TUN_PKT_STRIP);
}
1;
