require '_h2ph_pre.ph';

unless(defined(&_LINUX_DIVERT_H)) {
    eval 'sub _LINUX_DIVERT_H () {1;}' unless defined(&_LINUX_DIVERT_H);
    require 'asm/types.ph';
    eval 'sub MAX_DIVERT_PORTS () {8;}' unless defined(&MAX_DIVERT_PORTS);
    eval 'sub DIVERT_PROTO_NONE () {0x;}' unless defined(&DIVERT_PROTO_NONE);
    eval 'sub DIVERT_PROTO_IP () {0x1;}' unless defined(&DIVERT_PROTO_IP);
    eval 'sub DIVERT_PROTO_ICMP () {0x2;}' unless defined(&DIVERT_PROTO_ICMP);
    eval 'sub DIVERT_PROTO_TCP () {0x4;}' unless defined(&DIVERT_PROTO_TCP);
    eval 'sub DIVERT_PROTO_UDP () {0x8;}' unless defined(&DIVERT_PROTO_UDP);
    eval 'sub DIVCMD_DIVERT () {1;}' unless defined(&DIVCMD_DIVERT);
    eval 'sub DIVCMD_IP () {2;}' unless defined(&DIVCMD_IP);
    eval 'sub DIVCMD_TCP () {3;}' unless defined(&DIVCMD_TCP);
    eval 'sub DIVCMD_TCPDST () {4;}' unless defined(&DIVCMD_TCPDST);
    eval 'sub DIVCMD_TCPSRC () {5;}' unless defined(&DIVCMD_TCPSRC);
    eval 'sub DIVCMD_UDP () {6;}' unless defined(&DIVCMD_UDP);
    eval 'sub DIVCMD_UDPDST () {7;}' unless defined(&DIVCMD_UDPDST);
    eval 'sub DIVCMD_UDPSRC () {8;}' unless defined(&DIVCMD_UDPSRC);
    eval 'sub DIVCMD_ICMP () {9;}' unless defined(&DIVCMD_ICMP);
    eval 'sub DIVCMD_GETSTATUS () {10;}' unless defined(&DIVCMD_GETSTATUS);
    eval 'sub DIVCMD_RESET () {11;}' unless defined(&DIVCMD_RESET);
    eval 'sub DIVCMD_GETVERSION () {12;}' unless defined(&DIVCMD_GETVERSION);
    eval 'sub DIVARG1_ENABLE () {0;}' unless defined(&DIVARG1_ENABLE);
    eval 'sub DIVARG1_DISABLE () {1;}' unless defined(&DIVARG1_DISABLE);
    eval 'sub DIVARG1_ADD () {2;}' unless defined(&DIVARG1_ADD);
    eval 'sub DIVARG1_REMOVE () {3;}' unless defined(&DIVARG1_REMOVE);
}
1;
