require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_ALTQ_ALTQ_CBQ_H_)) {
    eval 'sub _ALTQ_ALTQ_CBQ_H_ () {1;}' unless defined(&_ALTQ_ALTQ_CBQ_H_);
    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 () {0;}' unless defined(&NULL_CLASS_HANDLE);
    eval 'sub CBQCLF_RED () {0x1;}' unless defined(&CBQCLF_RED);
    eval 'sub CBQCLF_ECN () {0x2;}' unless defined(&CBQCLF_ECN);
    eval 'sub CBQCLF_RIO () {0x4;}' unless defined(&CBQCLF_RIO);
    eval 'sub CBQCLF_FLOWVALVE () {0x8;}' unless defined(&CBQCLF_FLOWVALVE);
    eval 'sub CBQCLF_CLEARDSCP () {0x10;}' unless defined(&CBQCLF_CLEARDSCP);
    eval 'sub CBQCLF_BORROW () {0x20;}' unless defined(&CBQCLF_BORROW);
    eval 'sub CBQCLF_WRR () {0x100;}' unless defined(&CBQCLF_WRR);
    eval 'sub CBQCLF_EFFICIENT () {0x200;}' 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_CLASSMASK () {0xf000;}' unless defined(&CBQCLF_CLASSMASK);
    eval 'sub CBQ_MAXQSIZE () {200;}' unless defined(&CBQ_MAXQSIZE);
    eval 'sub CBQ_MAXPRI () { &RM_MAXPRIO;}' unless defined(&CBQ_MAXPRI);
    if(defined(&_KERNEL)) {
	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);
    }
    if(defined(&__cplusplus)) {
    }
}
1;
