require '_h2ph_pre.ph';

unless(defined(&_ALTQ_ALTQ_CBQ_H_)) {
    eval 'sub _ALTQ_ALTQ_CBQ_H_ () {1;}' unless defined(&_ALTQ_ALTQ_CBQ_H_);
    require 'sys/ioccom.ph';
    require 'altq/altq.ph';
    require 'altq/altq_rmclass.ph';
    require 'altq/altq_red.ph';
    require 'altq/altq_rio.ph';
    if(defined(&__cplusplus)) {
    }
    eval 'sub NULL_CLASS_HANDLE () {0xffffffff;}' unless defined(&NULL_CLASS_HANDLE);
    eval 'sub ROOT_CLASS_HANDLE () {0xfffffffe;}' unless defined(&ROOT_CLASS_HANDLE);
    eval 'sub DEFAULT_CLASS_HANDLE () {0xfffffffd;}' unless defined(&DEFAULT_CLASS_HANDLE);
    eval 'sub CTL_CLASS_HANDLE () {0xfffffffc;}' unless defined(&CTL_CLASS_HANDLE);
    eval 'sub CBQCLF_RED () {0x0001;}' unless defined(&CBQCLF_RED);
    eval 'sub CBQCLF_ECN () {0x0002;}' unless defined(&CBQCLF_ECN);
    eval 'sub CBQCLF_RIO () {0x0004;}' unless defined(&CBQCLF_RIO);
    eval 'sub CBQCLF_FLOWVALVE () {0x0008;}' unless defined(&CBQCLF_FLOWVALVE);
    eval 'sub CBQCLF_CLEARDSCP () {0x0010;}' unless defined(&CBQCLF_CLEARDSCP);
    eval 'sub CBQCLF_WRR () {0x0100;}' unless defined(&CBQCLF_WRR);
    eval 'sub CBQCLF_EFFICIENT () {0x0200;}' unless defined(&CBQCLF_EFFICIENT);
    eval 'sub CBQCLF_ROOTCLASS () {0x1000;}' unless defined(&CBQCLF_ROOTCLASS);
    eval 'sub CBQCLF_DEFCLASS () {0x2000;}' unless defined(&CBQCLF_DEFCLASS);
    eval 'sub CBQCLF_CTLCLASS () {0x4000;}' unless defined(&CBQCLF_CTLCLASS);
    eval 'sub CBQCLF_CLASSMASK () {0xf000;}' unless defined(&CBQCLF_CLASSMASK);
    eval 'sub CBQ_MAXQSIZE () {200;}' unless defined(&CBQ_MAXQSIZE);
    eval 'sub CBQ_IF_ATTACH () { &_IOW(ord(\'Q\'), 1, \'struct cbq_interface\');}' unless defined(&CBQ_IF_ATTACH);
    eval 'sub CBQ_IF_DETACH () { &_IOW(ord(\'Q\'), 2, \'struct cbq_interface\');}' unless defined(&CBQ_IF_DETACH);
    eval 'sub CBQ_ENABLE () { &_IOW(ord(\'Q\'), 3, \'struct cbq_interface\');}' unless defined(&CBQ_ENABLE);
    eval 'sub CBQ_DISABLE () { &_IOW(ord(\'Q\'), 4, \'struct cbq_interface\');}' unless defined(&CBQ_DISABLE);
    eval 'sub CBQ_CLEAR_HIERARCHY () { &_IOW(ord(\'Q\'), 5, \'struct cbq_interface\');}' unless defined(&CBQ_CLEAR_HIERARCHY);
    eval 'sub CBQ_ADD_CLASS () { &_IOWR(ord(\'Q\'), 7, \'struct cbq_add_class\');}' unless defined(&CBQ_ADD_CLASS);
    eval 'sub CBQ_DEL_CLASS () { &_IOW(ord(\'Q\'), 8, \'struct cbq_delete_class\');}' unless defined(&CBQ_DEL_CLASS);
    eval 'sub CBQ_MODIFY_CLASS () { &_IOWR(ord(\'Q\'), 9, \'struct cbq_modify_class\');}' unless defined(&CBQ_MODIFY_CLASS);
    eval 'sub CBQ_ADD_FILTER () { &_IOWR(ord(\'Q\'), 10, \'struct cbq_add_filter\');}' unless defined(&CBQ_ADD_FILTER);
    eval 'sub CBQ_DEL_FILTER () { &_IOW(ord(\'Q\'), 11, \'struct cbq_delete_filter\');}' unless defined(&CBQ_DEL_FILTER);
    eval 'sub CBQ_GETSTATS () { &_IOWR(ord(\'Q\'), 12, \'struct cbq_getstats\');}' unless defined(&CBQ_GETSTATS);
    if(defined(&_KERNEL)) {
	eval 'sub DISABLE () {0x00;}' unless defined(&DISABLE);
	eval 'sub ENABLE () {0x01;}' unless defined(&ENABLE);
	eval 'sub CBQ_WATCHDOG () {( &HZ / 20);}' unless defined(&CBQ_WATCHDOG);
	eval 'sub CBQ_TIMEOUT () {10;}' unless defined(&CBQ_TIMEOUT);
	eval 'sub CBQ_LS_TIMEOUT () {(20*  &hz / 1000);}' unless defined(&CBQ_LS_TIMEOUT);
	eval 'sub CBQ_MAX_CLASSES () {256;}' unless defined(&CBQ_MAX_CLASSES);
	eval 'sub CBQ_MAX_FILTERS () {256;}' unless defined(&CBQ_MAX_FILTERS);
    }
    if(defined(&__cplusplus)) {
    }
}
1;
