require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_NETGRAPH_L2CAP_H_)) {
    eval 'sub _NETGRAPH_L2CAP_H_ () {1;}' unless defined(&_NETGRAPH_L2CAP_H_);
    eval 'sub NG_L2CAP_HOOK_HCI () {"hci";}' unless defined(&NG_L2CAP_HOOK_HCI);
    eval 'sub NG_L2CAP_HOOK_L2C () {"l2c";}' unless defined(&NG_L2CAP_HOOK_L2C);
    eval 'sub NG_L2CAP_HOOK_CTL () {"ctl";}' unless defined(&NG_L2CAP_HOOK_CTL);
    eval 'sub NG_L2CAP_NODE_TYPE () {"l2cap";}' unless defined(&NG_L2CAP_NODE_TYPE);
    eval 'sub NGM_L2CAP_COOKIE () {1000774185;}' unless defined(&NGM_L2CAP_COOKIE);
    eval 'sub NG_L2CAP_NULL_CID () {0x;}' unless defined(&NG_L2CAP_NULL_CID);
    eval 'sub NG_L2CAP_SIGNAL_CID () {0x1;}' unless defined(&NG_L2CAP_SIGNAL_CID);
    eval 'sub NG_L2CAP_CLT_CID () {0x2;}' unless defined(&NG_L2CAP_CLT_CID);
    eval 'sub NG_L2CAP_FIRST_CID () {0x40;}' unless defined(&NG_L2CAP_FIRST_CID);
    eval 'sub NG_L2CAP_LAST_CID () {0xffff;}' unless defined(&NG_L2CAP_LAST_CID);
    eval 'sub NG_L2CAP_MTU_MINIMUM () {48;}' unless defined(&NG_L2CAP_MTU_MINIMUM);
    eval 'sub NG_L2CAP_MTU_DEFAULT () {672;}' unless defined(&NG_L2CAP_MTU_DEFAULT);
    eval 'sub NG_L2CAP_MTU_MAXIMUM () {0xffff;}' unless defined(&NG_L2CAP_MTU_MAXIMUM);
    eval 'sub NG_L2CAP_FLUSH_TIMO_DEFAULT () {0xffff;}' unless defined(&NG_L2CAP_FLUSH_TIMO_DEFAULT);
    eval 'sub NG_L2CAP_LINK_TIMO_DEFAULT () {0xffff;}' unless defined(&NG_L2CAP_LINK_TIMO_DEFAULT);
    eval 'sub NG_L2CAP_REJ_NOT_UNDERSTOOD () {0x;}' unless defined(&NG_L2CAP_REJ_NOT_UNDERSTOOD);
    eval 'sub NG_L2CAP_REJ_MTU_EXCEEDED () {0x1;}' unless defined(&NG_L2CAP_REJ_MTU_EXCEEDED);
    eval 'sub NG_L2CAP_REJ_INVALID_CID () {0x2;}' unless defined(&NG_L2CAP_REJ_INVALID_CID);
    eval 'sub NG_L2CAP_PSM_ANY () {0x;}' unless defined(&NG_L2CAP_PSM_ANY);
    eval 'sub NG_L2CAP_PSM_SDP () {0x1;}' unless defined(&NG_L2CAP_PSM_SDP);
    eval 'sub NG_L2CAP_PSM_RFCOMM () {0x3;}' unless defined(&NG_L2CAP_PSM_RFCOMM);
    eval 'sub NG_L2CAP_PSM_TCP () {0x5;}' unless defined(&NG_L2CAP_PSM_TCP);
    eval 'sub NG_L2CAP_SUCCESS () {0x;}' unless defined(&NG_L2CAP_SUCCESS);
    eval 'sub NG_L2CAP_PENDING () {0x1;}' unless defined(&NG_L2CAP_PENDING);
    eval 'sub NG_L2CAP_PSM_NOT_SUPPORTED () {0x2;}' unless defined(&NG_L2CAP_PSM_NOT_SUPPORTED);
    eval 'sub NG_L2CAP_SEQUIRY_BLOCK () {0x3;}' unless defined(&NG_L2CAP_SEQUIRY_BLOCK);
    eval 'sub NG_L2CAP_NO_RESOURCES () {0x4;}' unless defined(&NG_L2CAP_NO_RESOURCES);
    eval 'sub NG_L2CAP_TIMEOUT () {0xeeee;}' unless defined(&NG_L2CAP_TIMEOUT);
    eval 'sub NG_L2CAP_UNKNOWN () {0xffff;}' unless defined(&NG_L2CAP_UNKNOWN);
    eval 'sub NG_L2CAP_NO_INFO () {0x;}' unless defined(&NG_L2CAP_NO_INFO);
    eval 'sub NG_L2CAP_AUTH_PENDING () {0x1;}' unless defined(&NG_L2CAP_AUTH_PENDING);
    eval 'sub NG_L2CAP_AUTZ_PENDING () {0x2;}' unless defined(&NG_L2CAP_AUTZ_PENDING);
    eval 'sub NG_L2CAP_UNACCEPTABLE_PARAMS () {0x1;}' unless defined(&NG_L2CAP_UNACCEPTABLE_PARAMS);
    eval 'sub NG_L2CAP_REJECT () {0x2;}' unless defined(&NG_L2CAP_REJECT);
    eval 'sub NG_L2CAP_UNKNOWN_OPTION () {0x3;}' unless defined(&NG_L2CAP_UNKNOWN_OPTION);
    eval 'sub NG_L2CAP_OPT_CFLAG_BIT () {0x1;}' unless defined(&NG_L2CAP_OPT_CFLAG_BIT);
    eval 'sub NG_L2CAP_OPT_CFLAG {
        my($flags) = @_;
	    eval q((($flags) &  &NG_L2CAP_OPT_CFLAG_BIT));
    }' unless defined(&NG_L2CAP_OPT_CFLAG);
    eval 'sub NG_L2CAP_OPT_HINT_BIT () {0x80;}' unless defined(&NG_L2CAP_OPT_HINT_BIT);
    eval 'sub NG_L2CAP_OPT_HINT {
        my($type) = @_;
	    eval q((($type) &  &NG_L2CAP_OPT_HINT_BIT));
    }' unless defined(&NG_L2CAP_OPT_HINT);
    eval 'sub NG_L2CAP_OPT_HINT_MASK () {0x7f;}' unless defined(&NG_L2CAP_OPT_HINT_MASK);
    eval 'sub NG_L2CAP_OPT_MTU () {0x1;}' unless defined(&NG_L2CAP_OPT_MTU);
    eval 'sub NG_L2CAP_OPT_MTU_SIZE () {$sizeof{ &u_int16_t};}' unless defined(&NG_L2CAP_OPT_MTU_SIZE);
    eval 'sub NG_L2CAP_OPT_FLUSH_TIMO () {0x2;}' unless defined(&NG_L2CAP_OPT_FLUSH_TIMO);
    eval 'sub NG_L2CAP_OPT_FLUSH_TIMO_SIZE () {$sizeof{ &u_int16_t};}' unless defined(&NG_L2CAP_OPT_FLUSH_TIMO_SIZE);
    eval 'sub NG_L2CAP_OPT_QOS () {0x3;}' unless defined(&NG_L2CAP_OPT_QOS);
    eval 'sub NG_L2CAP_OPT_QOS_SIZE () {$sizeof{ &ng_l2cap_flow_t};}' unless defined(&NG_L2CAP_OPT_QOS_SIZE);
    eval 'sub NG_L2CAP_CONNLESS_MTU () {0x1;}' unless defined(&NG_L2CAP_CONNLESS_MTU);
    eval 'sub NG_L2CAP_NOT_SUPPORTED () {0x1;}' unless defined(&NG_L2CAP_NOT_SUPPORTED);
    eval 'sub NG_L2CAP_CLT_MTU_MAXIMUM () {( &NG_L2CAP_MTU_MAXIMUM - $sizeof{ &ng_l2cap_clt_hdr_t});}' unless defined(&NG_L2CAP_CLT_MTU_MAXIMUM);
    eval 'sub NG_L2CAP_CMD_REJ () {0x1;}' unless defined(&NG_L2CAP_CMD_REJ);
    eval 'sub NG_L2CAP_CON_REQ () {0x2;}' unless defined(&NG_L2CAP_CON_REQ);
    eval 'sub NG_L2CAP_CON_RSP () {0x3;}' unless defined(&NG_L2CAP_CON_RSP);
    eval 'sub NG_L2CAP_CFG_REQ () {0x4;}' unless defined(&NG_L2CAP_CFG_REQ);
    eval 'sub NG_L2CAP_CFG_RSP () {0x5;}' unless defined(&NG_L2CAP_CFG_RSP);
    eval 'sub NG_L2CAP_DISCON_REQ () {0x6;}' unless defined(&NG_L2CAP_DISCON_REQ);
    eval 'sub NG_L2CAP_DISCON_RSP () {0x7;}' unless defined(&NG_L2CAP_DISCON_RSP);
    eval 'sub NG_L2CAP_ECHO_REQ () {0x8;}' unless defined(&NG_L2CAP_ECHO_REQ);
    eval 'sub NG_L2CAP_ECHO_RSP () {0x9;}' unless defined(&NG_L2CAP_ECHO_RSP);
    eval 'sub NG_L2CAP_MAX_ECHO_SIZE () {( &NG_L2CAP_MTU_MAXIMUM - $sizeof{ &ng_l2cap_cmd_hdr_t});}' unless defined(&NG_L2CAP_MAX_ECHO_SIZE);
    eval 'sub NG_L2CAP_INFO_REQ () {0xa;}' unless defined(&NG_L2CAP_INFO_REQ);
    eval 'sub NG_L2CAP_INFO_RSP () {0xb;}' unless defined(&NG_L2CAP_INFO_RSP);
    eval 'sub NGM_L2CAP_L2CA_CON () {0x80;}' unless defined(&NGM_L2CAP_L2CA_CON);
    eval 'sub NGM_L2CAP_L2CA_CON_IND () {0x81;}' unless defined(&NGM_L2CAP_L2CA_CON_IND);
    eval 'sub NGM_L2CAP_L2CA_CON_RSP () {0x82;}' unless defined(&NGM_L2CAP_L2CA_CON_RSP);
    eval 'sub NGM_L2CAP_L2CA_CFG () {0x83;}' unless defined(&NGM_L2CAP_L2CA_CFG);
    eval 'sub NGM_L2CAP_L2CA_CFG_RSP () {0x84;}' unless defined(&NGM_L2CAP_L2CA_CFG_RSP);
    eval 'sub NGM_L2CAP_L2CA_CFG_IND () {0x85;}' unless defined(&NGM_L2CAP_L2CA_CFG_IND);
    eval 'sub NGM_L2CAP_L2CA_QOS_IND () {0x86;}' unless defined(&NGM_L2CAP_L2CA_QOS_IND);
    eval 'sub NGM_L2CAP_L2CA_DISCON () {0x87;}' unless defined(&NGM_L2CAP_L2CA_DISCON);
    eval 'sub NGM_L2CAP_L2CA_DISCON_IND () {0x88;}' unless defined(&NGM_L2CAP_L2CA_DISCON_IND);
    eval 'sub NGM_L2CAP_L2CA_WRITE () {0x89;}' unless defined(&NGM_L2CAP_L2CA_WRITE);
    eval 'sub NGM_L2CAP_L2CA_GRP_CREATE () {0x8a;}' unless defined(&NGM_L2CAP_L2CA_GRP_CREATE);
    eval 'sub NGM_L2CAP_L2CA_GRP_CLOSE () {0x8b;}' unless defined(&NGM_L2CAP_L2CA_GRP_CLOSE);
    if(0) {
    }
    eval 'sub NGM_L2CAP_L2CA_GRP_ADD_MEMBER () {0x8c;}' unless defined(&NGM_L2CAP_L2CA_GRP_ADD_MEMBER);
    eval 'sub NGM_L2CAP_L2CA_GRP_REM_MEMBER () {0x8d;}' unless defined(&NGM_L2CAP_L2CA_GRP_REM_MEMBER);
    if(0) {
    }
    eval 'sub NGM_L2CAP_L2CA_GRP_MEMBERSHIP () {0x8e;}' unless defined(&NGM_L2CAP_L2CA_GRP_MEMBERSHIP);
    eval 'sub NGM_L2CAP_L2CA_PING () {0x8f;}' unless defined(&NGM_L2CAP_L2CA_PING);
    eval 'sub NGM_L2CAP_L2CA_GET_INFO () {0x90;}' unless defined(&NGM_L2CAP_L2CA_GET_INFO);
    eval 'sub NGM_L2CAP_L2CA_ENABLE_CLT () {0x91;}' unless defined(&NGM_L2CAP_L2CA_ENABLE_CLT);
    if(0) {
    }
    eval 'sub NG_L2CAP_CON_CLOSED () {0;}' unless defined(&NG_L2CAP_CON_CLOSED);
    eval 'sub NG_L2CAP_W4_LP_CON_CFM () {1;}' unless defined(&NG_L2CAP_W4_LP_CON_CFM);
    eval 'sub NG_L2CAP_CON_OPEN () {2;}' unless defined(&NG_L2CAP_CON_OPEN);
    eval 'sub NG_L2CAP_CLOSED () {0;}' unless defined(&NG_L2CAP_CLOSED);
    eval 'sub NG_L2CAP_W4_L2CAP_CON_RSP () {1;}' unless defined(&NG_L2CAP_W4_L2CAP_CON_RSP);
    eval 'sub NG_L2CAP_W4_L2CA_CON_RSP () {2;}' unless defined(&NG_L2CAP_W4_L2CA_CON_RSP);
    eval 'sub NG_L2CAP_CONFIG () {3;}' unless defined(&NG_L2CAP_CONFIG);
    eval 'sub NG_L2CAP_OPEN () {4;}' unless defined(&NG_L2CAP_OPEN);
    eval 'sub NG_L2CAP_W4_L2CAP_DISCON_RSP () {5;}' unless defined(&NG_L2CAP_W4_L2CAP_DISCON_RSP);
    eval 'sub NG_L2CAP_W4_L2CA_DISCON_RSP () {6;}' unless defined(&NG_L2CAP_W4_L2CA_DISCON_RSP);
    eval 'sub NG_L2CAP_CLT_SDP_DISABLED () {(1<< 0);}' unless defined(&NG_L2CAP_CLT_SDP_DISABLED);
    eval 'sub NG_L2CAP_CLT_RFCOMM_DISABLED () {(1<< 1);}' unless defined(&NG_L2CAP_CLT_RFCOMM_DISABLED);
    eval 'sub NG_L2CAP_CLT_TCP_DISABLED () {(1<< 2);}' unless defined(&NG_L2CAP_CLT_TCP_DISABLED);
    eval 'sub NG_L2CAP_ALERT_LEVEL () {1;}' unless defined(&NG_L2CAP_ALERT_LEVEL);
    eval 'sub NG_L2CAP_ERR_LEVEL () {2;}' unless defined(&NG_L2CAP_ERR_LEVEL);
    eval 'sub NG_L2CAP_WARN_LEVEL () {3;}' unless defined(&NG_L2CAP_WARN_LEVEL);
    eval 'sub NG_L2CAP_INFO_LEVEL () {4;}' unless defined(&NG_L2CAP_INFO_LEVEL);
    eval 'sub NGM_L2CAP_NODE_GET_FLAGS () {0x400;}' unless defined(&NGM_L2CAP_NODE_GET_FLAGS);
    eval 'sub NGM_L2CAP_NODE_GET_DEBUG () {0x401;}' unless defined(&NGM_L2CAP_NODE_GET_DEBUG);
    eval 'sub NGM_L2CAP_NODE_SET_DEBUG () {0x402;}' unless defined(&NGM_L2CAP_NODE_SET_DEBUG);
    eval 'sub NGM_L2CAP_NODE_HOOK_INFO () {0x409;}' unless defined(&NGM_L2CAP_NODE_HOOK_INFO);
    eval 'sub NGM_L2CAP_NODE_GET_CON_LIST () {0x40a;}' unless defined(&NGM_L2CAP_NODE_GET_CON_LIST);
    eval 'sub NG_L2CAP_CON_TX () {(1<< 0);}' unless defined(&NG_L2CAP_CON_TX);
    eval 'sub NG_L2CAP_CON_RX () {(1<< 1);}' unless defined(&NG_L2CAP_CON_RX);
    eval 'sub NG_L2CAP_CON_OUTGOING () {(1<< 2);}' unless defined(&NG_L2CAP_CON_OUTGOING);
    eval 'sub NG_L2CAP_CON_LP_TIMO () {(1<< 3);}' unless defined(&NG_L2CAP_CON_LP_TIMO);
    eval 'sub NG_L2CAP_CON_AUTO_DISCON_TIMO () {(1<< 4);}' unless defined(&NG_L2CAP_CON_AUTO_DISCON_TIMO);
    eval 'sub NG_L2CAP_MAX_CON_NUM () {((0xffff - $sizeof{ &ng_l2cap_node_con_list_ep})/$sizeof{ &ng_l2cap_node_con_ep});}' unless defined(&NG_L2CAP_MAX_CON_NUM);
    eval 'sub NGM_L2CAP_NODE_GET_CHAN_LIST () {0x40b;}' unless defined(&NGM_L2CAP_NODE_GET_CHAN_LIST);
    eval 'sub NG_L2CAP_MAX_CHAN_NUM () {((0xffff - $sizeof{ &ng_l2cap_node_chan_list_ep})/$sizeof{ &ng_l2cap_node_chan_ep});}' unless defined(&NG_L2CAP_MAX_CHAN_NUM);
    eval 'sub NGM_L2CAP_NODE_GET_AUTO_DISCON_TIMO () {0x40c;}' unless defined(&NGM_L2CAP_NODE_GET_AUTO_DISCON_TIMO);
    eval 'sub NGM_L2CAP_NODE_SET_AUTO_DISCON_TIMO () {0x40d;}' unless defined(&NGM_L2CAP_NODE_SET_AUTO_DISCON_TIMO);
}
1;
