require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_ALTQ_ALTQ_H_)) {
    eval 'sub _ALTQ_ALTQ_H_ () {1;}' unless defined(&_ALTQ_ALTQ_H_);
    eval 'sub ALTQT_NONE () {0;}' unless defined(&ALTQT_NONE);
    eval 'sub ALTQT_CBQ () {1;}' unless defined(&ALTQT_CBQ);
    eval 'sub ALTQT_HFSC () {8;}' unless defined(&ALTQT_HFSC);
    eval 'sub ALTQT_PRIQ () {11;}' unless defined(&ALTQT_PRIQ);
    eval 'sub ALTQT_MAX () {12;}' unless defined(&ALTQT_MAX);
    eval 'sub PKTCNTR_ADD {
        my($cntr, $len) = @_;
	    eval q( &do { ($cntr)-> &packets++; ($cntr)-> &bytes += $len; }  &while (0));
    }' unless defined(&PKTCNTR_ADD);
    if(defined(&_KERNEL)) {
	require 'altq/altq_var.ph';
    }
}
1;
