require '_h2ph_pre.ph';

unless(defined(&_NET_PFKEY_V2_H)) {
    eval 'sub _NET_PFKEY_V2_H () {1;}' unless defined(&_NET_PFKEY_V2_H);
    eval 'sub PF_KEY_V2 () {2;}' unless defined(&PF_KEY_V2);
    eval 'sub SADB_RESERVED () {0;}' unless defined(&SADB_RESERVED);
    eval 'sub SADB_GETSPI () {1;}' unless defined(&SADB_GETSPI);
    eval 'sub SADB_UPDATE () {2;}' unless defined(&SADB_UPDATE);
    eval 'sub SADB_ADD () {3;}' unless defined(&SADB_ADD);
    eval 'sub SADB_DELETE () {4;}' unless defined(&SADB_DELETE);
    eval 'sub SADB_GET () {5;}' unless defined(&SADB_GET);
    eval 'sub SADB_ACQUIRE () {6;}' unless defined(&SADB_ACQUIRE);
    eval 'sub SADB_REGISTER () {7;}' unless defined(&SADB_REGISTER);
    eval 'sub SADB_EXPIRE () {8;}' unless defined(&SADB_EXPIRE);
    eval 'sub SADB_FLUSH () {9;}' unless defined(&SADB_FLUSH);
    eval 'sub SADB_DUMP () {10;}' unless defined(&SADB_DUMP);
    eval 'sub SADB_X_PROMISC () {11;}' unless defined(&SADB_X_PROMISC);
    eval 'sub SADB_X_ADDFLOW () {12;}' unless defined(&SADB_X_ADDFLOW);
    eval 'sub SADB_X_DELFLOW () {13;}' unless defined(&SADB_X_DELFLOW);
    eval 'sub SADB_X_GRPSPIS () {14;}' unless defined(&SADB_X_GRPSPIS);
    eval 'sub SADB_X_BINDSA () {15;}' unless defined(&SADB_X_BINDSA);
    eval 'sub SADB_MAX () {15;}' unless defined(&SADB_MAX);
    eval 'sub SADB_GETSPROTO {
        local($x) = @_;
	    eval q(( ($x) ==  &SADB_SATYPE_AH ?  &IPPROTO_AH : ($x) ==  &SADB_X_SATYPE_AH_OLD ?  &IPPROTO_AH : ($x) ==  &SADB_SATYPE_ESP ?  &IPPROTO_ESP : ($x) ==  &SADB_X_SATYPE_ESP_OLD ?  &IPPROTO_ESP :  &IPPROTO_IPIP ));
    }' unless defined(&SADB_GETSPROTO);
    eval 'sub SADB_EXT_RESERVED () {0;}' unless defined(&SADB_EXT_RESERVED);
    eval 'sub SADB_EXT_SA () {1;}' unless defined(&SADB_EXT_SA);
    eval 'sub SADB_EXT_LIFETIME_CURRENT () {2;}' unless defined(&SADB_EXT_LIFETIME_CURRENT);
    eval 'sub SADB_EXT_LIFETIME_HARD () {3;}' unless defined(&SADB_EXT_LIFETIME_HARD);
    eval 'sub SADB_EXT_LIFETIME_SOFT () {4;}' unless defined(&SADB_EXT_LIFETIME_SOFT);
    eval 'sub SADB_EXT_ADDRESS_SRC () {5;}' unless defined(&SADB_EXT_ADDRESS_SRC);
    eval 'sub SADB_EXT_ADDRESS_DST () {6;}' unless defined(&SADB_EXT_ADDRESS_DST);
    eval 'sub SADB_EXT_ADDRESS_PROXY () {7;}' unless defined(&SADB_EXT_ADDRESS_PROXY);
    eval 'sub SADB_EXT_KEY_AUTH () {8;}' unless defined(&SADB_EXT_KEY_AUTH);
    eval 'sub SADB_EXT_KEY_ENCRYPT () {9;}' unless defined(&SADB_EXT_KEY_ENCRYPT);
    eval 'sub SADB_EXT_IDENTITY_SRC () {10;}' unless defined(&SADB_EXT_IDENTITY_SRC);
    eval 'sub SADB_EXT_IDENTITY_DST () {11;}' unless defined(&SADB_EXT_IDENTITY_DST);
    eval 'sub SADB_EXT_SENSITIVITY () {12;}' unless defined(&SADB_EXT_SENSITIVITY);
    eval 'sub SADB_EXT_PROPOSAL () {13;}' unless defined(&SADB_EXT_PROPOSAL);
    eval 'sub SADB_EXT_SUPPORTED () {14;}' unless defined(&SADB_EXT_SUPPORTED);
    eval 'sub SADB_EXT_SPIRANGE () {15;}' unless defined(&SADB_EXT_SPIRANGE);
    eval 'sub SADB_X_EXT_SRC_MASK () {16;}' unless defined(&SADB_X_EXT_SRC_MASK);
    eval 'sub SADB_X_EXT_DST_MASK () {17;}' unless defined(&SADB_X_EXT_DST_MASK);
    eval 'sub SADB_X_EXT_PROTOCOL () {18;}' unless defined(&SADB_X_EXT_PROTOCOL);
    eval 'sub SADB_X_EXT_SA2 () {19;}' unless defined(&SADB_X_EXT_SA2);
    eval 'sub SADB_X_EXT_SRC_FLOW () {20;}' unless defined(&SADB_X_EXT_SRC_FLOW);
    eval 'sub SADB_X_EXT_DST_FLOW () {21;}' unless defined(&SADB_X_EXT_DST_FLOW);
    eval 'sub SADB_X_EXT_DST2 () {22;}' unless defined(&SADB_X_EXT_DST2);
    eval 'sub SADB_EXT_MAX () {22;}' unless defined(&SADB_EXT_MAX);
    eval 'sub SADB_SATYPE_UNSPEC () {0;}' unless defined(&SADB_SATYPE_UNSPEC);
    eval 'sub SADB_SATYPE_AH () {1;}' unless defined(&SADB_SATYPE_AH);
    eval 'sub SADB_SATYPE_ESP () {2;}' unless defined(&SADB_SATYPE_ESP);
    eval 'sub SADB_SATYPE_RSVP () {3;}' unless defined(&SADB_SATYPE_RSVP);
    eval 'sub SADB_SATYPE_OSPFV2 () {4;}' unless defined(&SADB_SATYPE_OSPFV2);
    eval 'sub SADB_SATYPE_RIPV2 () {5;}' unless defined(&SADB_SATYPE_RIPV2);
    eval 'sub SADB_SATYPE_MIP () {6;}' unless defined(&SADB_SATYPE_MIP);
    eval 'sub SADB_X_SATYPE_AH_OLD () {7;}' unless defined(&SADB_X_SATYPE_AH_OLD);
    eval 'sub SADB_X_SATYPE_ESP_OLD () {8;}' unless defined(&SADB_X_SATYPE_ESP_OLD);
    eval 'sub SADB_X_SATYPE_IPIP () {9;}' unless defined(&SADB_X_SATYPE_IPIP);
    eval 'sub SADB_X_SATYPE_TCPSIGNATURE () {10;}' unless defined(&SADB_X_SATYPE_TCPSIGNATURE);
    eval 'sub SADB_SATYPE_MAX () {10;}' unless defined(&SADB_SATYPE_MAX);
    eval 'sub SADB_SASTATE_LARVAL () {0;}' unless defined(&SADB_SASTATE_LARVAL);
    eval 'sub SADB_SASTATE_MATURE () {1;}' unless defined(&SADB_SASTATE_MATURE);
    eval 'sub SADB_SASTATE_DYING () {2;}' unless defined(&SADB_SASTATE_DYING);
    eval 'sub SADB_SASTATE_DEAD () {3;}' unless defined(&SADB_SASTATE_DEAD);
    eval 'sub SADB_SASTATE_MAX () {3;}' unless defined(&SADB_SASTATE_MAX);
    eval 'sub SADB_AALG_NONE () {0;}' unless defined(&SADB_AALG_NONE);
    eval 'sub SADB_AALG_MD5HMAC () {1;}' unless defined(&SADB_AALG_MD5HMAC);
    eval 'sub SADB_AALG_SHA1HMAC () {2;}' unless defined(&SADB_AALG_SHA1HMAC);
    eval 'sub SADB_AALG_MD5HMAC96 () {3;}' unless defined(&SADB_AALG_MD5HMAC96);
    eval 'sub SADB_AALG_SHA1HMAC96 () {4;}' unless defined(&SADB_AALG_SHA1HMAC96);
    eval 'sub SADB_X_AALG_RIPEMD160HMAC96 () {5;}' unless defined(&SADB_X_AALG_RIPEMD160HMAC96);
    eval 'sub SADB_X_AALG_MD5 () {6;}' unless defined(&SADB_X_AALG_MD5);
    eval 'sub SADB_X_AALG_SHA1 () {7;}' unless defined(&SADB_X_AALG_SHA1);
    eval 'sub SADB_AALG_MAX () {7;}' unless defined(&SADB_AALG_MAX);
    eval 'sub SADB_EALG_NONE () {0;}' unless defined(&SADB_EALG_NONE);
    eval 'sub SADB_EALG_DESCBC () {1;}' unless defined(&SADB_EALG_DESCBC);
    eval 'sub SADB_EALG_3DESCBC () {2;}' unless defined(&SADB_EALG_3DESCBC);
    eval 'sub SADB_X_EALG_BLF () {3;}' unless defined(&SADB_X_EALG_BLF);
    eval 'sub SADB_X_EALG_CAST () {4;}' unless defined(&SADB_X_EALG_CAST);
    eval 'sub SADB_X_EALG_SKIPJACK () {5;}' unless defined(&SADB_X_EALG_SKIPJACK);
    eval 'sub SADB_EALG_MAX () {5;}' unless defined(&SADB_EALG_MAX);
    eval 'sub SADB_SAFLAGS_PFS () {0x01;}' unless defined(&SADB_SAFLAGS_PFS);
    eval 'sub SADB_X_SAFLAGS_HALFIV () {0x02;}' unless defined(&SADB_X_SAFLAGS_HALFIV);
    eval 'sub SADB_X_SAFLAGS_TUNNEL () {0x04;}' unless defined(&SADB_X_SAFLAGS_TUNNEL);
    eval 'sub SADB_X_SAFLAGS_CHAINDEL () {0x08;}' unless defined(&SADB_X_SAFLAGS_CHAINDEL);
    eval 'sub SADB_X_SAFLAGS_LOCALFLOW () {0x10;}' unless defined(&SADB_X_SAFLAGS_LOCALFLOW);
    eval 'sub SADB_X_SAFLAGS_REPLACEFLOW () {0x20;}' unless defined(&SADB_X_SAFLAGS_REPLACEFLOW);
    eval 'sub SADB_IDENTTYPE_RESERVED () {0;}' unless defined(&SADB_IDENTTYPE_RESERVED);
    eval 'sub SADB_IDENTTYPE_PREFIX () {1;}' unless defined(&SADB_IDENTTYPE_PREFIX);
    eval 'sub SADB_IDENTTYPE_FQDN () {2;}' unless defined(&SADB_IDENTTYPE_FQDN);
    eval 'sub SADB_IDENTTYPE_MBOX () {3;}' unless defined(&SADB_IDENTTYPE_MBOX);
    eval 'sub SADB_IDENTTYPE_CONNECTION () {4;}' unless defined(&SADB_IDENTTYPE_CONNECTION);
    eval 'sub SADB_IDENTTYPE_MAX () {4;}' unless defined(&SADB_IDENTTYPE_MAX);
    eval 'sub SADB_KEY_FLAGS_MAX () {0;}' unless defined(&SADB_KEY_FLAGS_MAX);
    if(defined(&_KERNEL)) {
    }
}
1;
