require '_h2ph_pre.ph';

unless(defined(&_ALTQ_ALTQ_HFSC_H_)) {
    eval 'sub _ALTQ_ALTQ_HFSC_H_ () {1;}' unless defined(&_ALTQ_ALTQ_HFSC_H_);
    require 'altq/altq.ph';
    require 'altq/altq_classq.ph';
    require 'altq/altq_red.ph';
    require 'altq/altq_rio.ph';
    if(defined(&__cplusplus)) {
    }
    eval 'sub HFSC_ROOTCLASS_HANDLE () {0;}' unless defined(&HFSC_ROOTCLASS_HANDLE);
    eval 'sub HFSC_NULLCLASS_HANDLE () {0;}' unless defined(&HFSC_NULLCLASS_HANDLE);
    eval 'sub HFCF_RED () {0x0001;}' unless defined(&HFCF_RED);
    eval 'sub HFCF_ECN () {0x0002;}' unless defined(&HFCF_ECN);
    eval 'sub HFCF_RIO () {0x0004;}' unless defined(&HFCF_RIO);
    eval 'sub HFCF_CLEARDSCP () {0x0010;}' unless defined(&HFCF_CLEARDSCP);
    eval 'sub HFCF_DEFAULTCLASS () {0x1000;}' unless defined(&HFCF_DEFAULTCLASS);
    eval 'sub HFSC_REALTIMESC () {1;}' unless defined(&HFSC_REALTIMESC);
    eval 'sub HFSC_LINKSHARINGSC () {2;}' unless defined(&HFSC_LINKSHARINGSC);
    eval 'sub HFSC_DEFAULTSC () {( &HFSC_REALTIMESC| &HFSC_LINKSHARINGSC);}' unless defined(&HFSC_DEFAULTSC);
    eval 'sub HFSC_IF_ATTACH () { &_IOW(ord(\'Q\'), 1, \'struct hfsc_attach\');}' unless defined(&HFSC_IF_ATTACH);
    eval 'sub HFSC_IF_DETACH () { &_IOW(ord(\'Q\'), 2, \'struct hfsc_interface\');}' unless defined(&HFSC_IF_DETACH);
    eval 'sub HFSC_ENABLE () { &_IOW(ord(\'Q\'), 3, \'struct hfsc_interface\');}' unless defined(&HFSC_ENABLE);
    eval 'sub HFSC_DISABLE () { &_IOW(ord(\'Q\'), 4, \'struct hfsc_interface\');}' unless defined(&HFSC_DISABLE);
    eval 'sub HFSC_CLEAR_HIERARCHY () { &_IOW(ord(\'Q\'), 5, \'struct hfsc_interface\');}' unless defined(&HFSC_CLEAR_HIERARCHY);
    eval 'sub HFSC_ADD_CLASS () { &_IOWR(ord(\'Q\'), 7, \'struct hfsc_add_class\');}' unless defined(&HFSC_ADD_CLASS);
    eval 'sub HFSC_DEL_CLASS () { &_IOW(ord(\'Q\'), 8, \'struct hfsc_delete_class\');}' unless defined(&HFSC_DEL_CLASS);
    eval 'sub HFSC_MOD_CLASS () { &_IOW(ord(\'Q\'), 9, \'struct hfsc_modify_class\');}' unless defined(&HFSC_MOD_CLASS);
    eval 'sub HFSC_ADD_FILTER () { &_IOWR(ord(\'Q\'), 10, \'struct hfsc_add_filter\');}' unless defined(&HFSC_ADD_FILTER);
    eval 'sub HFSC_DEL_FILTER () { &_IOW(ord(\'Q\'), 11, \'struct hfsc_delete_filter\');}' unless defined(&HFSC_DEL_FILTER);
    eval 'sub HFSC_GETSTATS () { &_IOWR(ord(\'Q\'), 12, \'struct hfsc_class_stats\');}' unless defined(&HFSC_GETSTATS);
    if(defined(&_KERNEL)) {
	eval 'sub ellist_first {
	    local($s) = @_;
    	    eval q( &TAILQ_FIRST($s));
	}' unless defined(&ellist_first);
	eval 'sub actlist_first {
	    local($s) = @_;
    	    eval q( &TAILQ_FIRST($s));
	}' unless defined(&actlist_first);
	eval 'sub actlist_last {
	    local($s) = @_;
    	    eval q( &TAILQ_LAST($s,  &_active));
	}' unless defined(&actlist_last);
    }
    if(defined(&__cplusplus)) {
    }
}
1;
