require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&lib_pcap_h)) {
    eval 'sub lib_pcap_h () {1;}' unless defined(&lib_pcap_h);
    require 'sys/types.ph';
    require 'sys/time.ph';
    require 'net/bpf.ph';
    require 'stdio.ph';
    eval 'sub PCAP_VERSION_MAJOR () {2;}' unless defined(&PCAP_VERSION_MAJOR);
    eval 'sub PCAP_VERSION_MINOR () {4;}' unless defined(&PCAP_VERSION_MINOR);
    eval 'sub PCAP_ERRBUF_SIZE () {256;}' unless defined(&PCAP_ERRBUF_SIZE);
    if((defined(&BPF_RELEASE) ? &BPF_RELEASE : undef) - 0< 199406) {
    }
    eval("sub PCAP_D_INOUT () { 0; }") unless defined(&PCAP_D_INOUT);
    eval("sub PCAP_D_IN () { 1; }") unless defined(&PCAP_D_IN);
    eval("sub PCAP_D_OUT () { 2; }") unless defined(&PCAP_D_OUT);
    eval 'sub PCAP_IF_LOOPBACK () {0x1;}' unless defined(&PCAP_IF_LOOPBACK);
    eval 'sub PCAP_ERROR () {-1;}' unless defined(&PCAP_ERROR);
    eval 'sub PCAP_ERROR_BREAK () {-2;}' unless defined(&PCAP_ERROR_BREAK);
    eval 'sub PCAP_ERROR_NOT_ACTIVATED () {-3;}' unless defined(&PCAP_ERROR_NOT_ACTIVATED);
    eval 'sub PCAP_ERROR_ACTIVATED () {-4;}' unless defined(&PCAP_ERROR_ACTIVATED);
    eval 'sub PCAP_ERROR_NO_SUCH_DEVICE () {-5;}' unless defined(&PCAP_ERROR_NO_SUCH_DEVICE);
    eval 'sub PCAP_ERROR_RFMON_NOTSUP () {-6;}' unless defined(&PCAP_ERROR_RFMON_NOTSUP);
    eval 'sub PCAP_ERROR_NOT_RFMON () {-7;}' unless defined(&PCAP_ERROR_NOT_RFMON);
    eval 'sub PCAP_ERROR_PERM_DENIED () {-8;}' unless defined(&PCAP_ERROR_PERM_DENIED);
    eval 'sub PCAP_ERROR_IFACE_NOT_UP () {-9;}' unless defined(&PCAP_ERROR_IFACE_NOT_UP);
    eval 'sub PCAP_ERROR_CANTSET_TSTAMP_TYPE () {-10;}' unless defined(&PCAP_ERROR_CANTSET_TSTAMP_TYPE);
    eval 'sub PCAP_ERROR_PROMISC_PERM_DENIED () {-11;}' unless defined(&PCAP_ERROR_PROMISC_PERM_DENIED);
    eval 'sub PCAP_WARNING () {1;}' unless defined(&PCAP_WARNING);
    eval 'sub PCAP_WARNING_PROMISC_NOTSUP () {2;}' unless defined(&PCAP_WARNING_PROMISC_NOTSUP);
    eval 'sub PCAP_WARNING_TSTAMP_TYPE_NOTSUP () {3;}' unless defined(&PCAP_WARNING_TSTAMP_TYPE_NOTSUP);
}
1;
