require '_h2ph_pre.ph';

unless(defined(&__LINUX_IP_NETFILTER_H)) {
    eval 'sub __LINUX_IP_NETFILTER_H () {1;}' unless defined(&__LINUX_IP_NETFILTER_H);
    require 'linux/config.ph';
    require 'linux/netfilter.ph';
    eval 'sub NFC_IP_SRC () {0x1;}' unless defined(&NFC_IP_SRC);
    eval 'sub NFC_IP_DST () {0x2;}' unless defined(&NFC_IP_DST);
    eval 'sub NFC_IP_IF_IN () {0x4;}' unless defined(&NFC_IP_IF_IN);
    eval 'sub NFC_IP_IF_OUT () {0x8;}' unless defined(&NFC_IP_IF_OUT);
    eval 'sub NFC_IP_TOS () {0x10;}' unless defined(&NFC_IP_TOS);
    eval 'sub NFC_IP_PROTO () {0x20;}' unless defined(&NFC_IP_PROTO);
    eval 'sub NFC_IP_OPTIONS () {0x40;}' unless defined(&NFC_IP_OPTIONS);
    eval 'sub NFC_IP_FRAG () {0x80;}' unless defined(&NFC_IP_FRAG);
    eval 'sub NFC_IP_TCPFLAGS () {0x100;}' unless defined(&NFC_IP_TCPFLAGS);
    eval 'sub NFC_IP_SRC_PT () {0x200;}' unless defined(&NFC_IP_SRC_PT);
    eval 'sub NFC_IP_DST_PT () {0x400;}' unless defined(&NFC_IP_DST_PT);
    eval 'sub NFC_IP_PROTO_UNKNOWN () {0x2000;}' unless defined(&NFC_IP_PROTO_UNKNOWN);
    eval 'sub NF_IP_PRE_ROUTING () {0;}' unless defined(&NF_IP_PRE_ROUTING);
    eval 'sub NF_IP_LOCAL_IN () {1;}' unless defined(&NF_IP_LOCAL_IN);
    eval 'sub NF_IP_FORWARD () {2;}' unless defined(&NF_IP_FORWARD);
    eval 'sub NF_IP_LOCAL_OUT () {3;}' unless defined(&NF_IP_LOCAL_OUT);
    eval 'sub NF_IP_POST_ROUTING () {4;}' unless defined(&NF_IP_POST_ROUTING);
    eval 'sub NF_IP_NUMHOOKS () {5;}' unless defined(&NF_IP_NUMHOOKS);
    eval("sub NF_IP_PRI_FIRST () { INT_MIN; }") unless defined(&NF_IP_PRI_FIRST);
    eval("sub NF_IP_PRI_CONNTRACK () { -200; }") unless defined(&NF_IP_PRI_CONNTRACK);
    eval("sub NF_IP_PRI_MANGLE () { -150; }") unless defined(&NF_IP_PRI_MANGLE);
    eval("sub NF_IP_PRI_NAT_DST () { -100; }") unless defined(&NF_IP_PRI_NAT_DST);
    eval("sub NF_IP_PRI_FILTER () { 0; }") unless defined(&NF_IP_PRI_FILTER);
    eval("sub NF_IP_PRI_NAT_SRC () { 100; }") unless defined(&NF_IP_PRI_NAT_SRC);
    eval("sub NF_IP_PRI_LAST () { INT_MAX; }") unless defined(&NF_IP_PRI_LAST);
    eval 'sub SO_ORIGINAL_DST () {80;}' unless defined(&SO_ORIGINAL_DST);
}
1;
