require '_h2ph_pre.ph';

unless(defined(&__LINUX_IF_WAN_PACKET_H)) {
    eval 'sub __LINUX_IF_WAN_PACKET_H () {1;}' unless defined(&__LINUX_IF_WAN_PACKET_H);
    eval 'sub MAX_NUM_DEBUG () {10;}' unless defined(&MAX_NUM_DEBUG);
    eval 'sub X25_PROT () {0x16;}' unless defined(&X25_PROT);
    eval 'sub PVC_PROT () {0x17;}' unless defined(&PVC_PROT);
    eval 'sub SIOC_WANPIPE_GET_CALL_DATA () {( &SIOCPROTOPRIVATE + 0);}' unless defined(&SIOC_WANPIPE_GET_CALL_DATA);
    eval 'sub SIOC_WANPIPE_SET_CALL_DATA () {( &SIOCPROTOPRIVATE + 1);}' unless defined(&SIOC_WANPIPE_SET_CALL_DATA);
    eval 'sub SIOC_WANPIPE_ACCEPT_CALL () {( &SIOCPROTOPRIVATE + 2);}' unless defined(&SIOC_WANPIPE_ACCEPT_CALL);
    eval 'sub SIOC_WANPIPE_CLEAR_CALL () {( &SIOCPROTOPRIVATE + 3);}' unless defined(&SIOC_WANPIPE_CLEAR_CALL);
    eval 'sub SIOC_WANPIPE_RESET_CALL () {( &SIOCPROTOPRIVATE + 4);}' unless defined(&SIOC_WANPIPE_RESET_CALL);
    eval 'sub SIOC_WANPIPE_DEBUG () {( &SIOCPROTOPRIVATE + 5);}' unless defined(&SIOC_WANPIPE_DEBUG);
    eval 'sub SIOC_WANPIPE_SET_NONBLOCK () {( &SIOCPROTOPRIVATE + 6);}' unless defined(&SIOC_WANPIPE_SET_NONBLOCK);
    eval 'sub SIOC_WANPIPE_CHECK_TX () {( &SIOCPROTOPRIVATE + 7);}' unless defined(&SIOC_WANPIPE_CHECK_TX);
    eval 'sub SIOC_WANPIPE_SOCK_STATE () {( &SIOCPROTOPRIVATE + 8);}' unless defined(&SIOC_WANPIPE_SOCK_STATE);
    eval 'sub WAN_PACKET_HOST () {0;}' unless defined(&WAN_PACKET_HOST);
    eval 'sub WAN_PACKET_BROADCAST () {1;}' unless defined(&WAN_PACKET_BROADCAST);
    eval 'sub WAN_PACKET_MULTICAST () {2;}' unless defined(&WAN_PACKET_MULTICAST);
    eval 'sub WAN_PACKET_OTHERHOST () {3;}' unless defined(&WAN_PACKET_OTHERHOST);
    eval 'sub WAN_PACKET_OUTGOING () {4;}' unless defined(&WAN_PACKET_OUTGOING);
    eval 'sub WAN_PACKET_LOOPBACK () {5;}' unless defined(&WAN_PACKET_LOOPBACK);
    eval 'sub WAN_PACKET_FASTROUTE () {6;}' unless defined(&WAN_PACKET_FASTROUTE);
    eval 'sub WAN_PACKET_DATA () {7;}' unless defined(&WAN_PACKET_DATA);
    eval 'sub WAN_PACKET_CMD () {8;}' unless defined(&WAN_PACKET_CMD);
    eval 'sub WAN_PACKET_ASYNC () {9;}' unless defined(&WAN_PACKET_ASYNC);
    eval 'sub WAN_PACKET_ERR () {10;}' unless defined(&WAN_PACKET_ERR);
    eval 'sub WAN_PACKET_ADD_MEMBERSHIP () {1;}' unless defined(&WAN_PACKET_ADD_MEMBERSHIP);
    eval 'sub WAN_PACKET_DROP_MEMBERSHIP () {2;}' unless defined(&WAN_PACKET_DROP_MEMBERSHIP);
    eval 'sub WAN_PACKET_MR_MULTICAST () {0;}' unless defined(&WAN_PACKET_MR_MULTICAST);
    eval 'sub WAN_PACKET_MR_PROMISC () {1;}' unless defined(&WAN_PACKET_MR_PROMISC);
    eval 'sub WAN_PACKET_MR_ALLMULTI () {2;}' unless defined(&WAN_PACKET_MR_ALLMULTI);
}
1;
