require '_h2ph_pre.ph';

unless(defined(&__LINUX_PKT_SCHED_H)) {
    eval 'sub __LINUX_PKT_SCHED_H () {1;}' unless defined(&__LINUX_PKT_SCHED_H);
    eval 'sub TC_PRIO_BESTEFFORT () {0;}' unless defined(&TC_PRIO_BESTEFFORT);
    eval 'sub TC_PRIO_FILLER () {1;}' unless defined(&TC_PRIO_FILLER);
    eval 'sub TC_PRIO_BULK () {2;}' unless defined(&TC_PRIO_BULK);
    eval 'sub TC_PRIO_INTERACTIVE_BULK () {4;}' unless defined(&TC_PRIO_INTERACTIVE_BULK);
    eval 'sub TC_PRIO_INTERACTIVE () {6;}' unless defined(&TC_PRIO_INTERACTIVE);
    eval 'sub TC_PRIO_CONTROL () {7;}' unless defined(&TC_PRIO_CONTROL);
    eval 'sub TC_PRIO_MAX () {15;}' unless defined(&TC_PRIO_MAX);
    eval 'sub TC_H_MAJ_MASK () {(0xffff0000);}' unless defined(&TC_H_MAJ_MASK);
    eval 'sub TC_H_MIN_MASK () {(0xffff);}' unless defined(&TC_H_MIN_MASK);
    eval 'sub TC_H_MAJ {
        local($h) = @_;
	    eval q((($h) &TC_H_MAJ_MASK));
    }' unless defined(&TC_H_MAJ);
    eval 'sub TC_H_MIN {
        local($h) = @_;
	    eval q((($h) &TC_H_MIN_MASK));
    }' unless defined(&TC_H_MIN);
    eval 'sub TC_H_MAKE {
        local($maj,$min) = @_;
	    eval q(((($maj) &TC_H_MAJ_MASK)|(($min) &TC_H_MIN_MASK)));
    }' unless defined(&TC_H_MAKE);
    eval 'sub TC_H_UNSPEC () {(0);}' unless defined(&TC_H_UNSPEC);
    eval 'sub TC_H_ROOT () {(0xffffffff);}' unless defined(&TC_H_ROOT);
    eval 'sub TC_H_INGRESS () {(0xfffffff1);}' unless defined(&TC_H_INGRESS);
    eval 'sub TCQ_PRIO_BANDS () {16;}' unless defined(&TCQ_PRIO_BANDS);
    eval("sub TCA_CSZ_UNSPEC () { 0; }") unless defined(&TCA_CSZ_UNSPEC);
    eval("sub TCA_CSZ_PARMS () { 1; }") unless defined(&TCA_CSZ_PARMS);
    eval("sub TCA_CSZ_RTAB () { 2; }") unless defined(&TCA_CSZ_RTAB);
    eval("sub TCA_CSZ_PTAB () { 3; }") unless defined(&TCA_CSZ_PTAB);
    eval("sub TCA_TBF_UNSPEC () { 0; }") unless defined(&TCA_TBF_UNSPEC);
    eval("sub TCA_TBF_PARMS () { 1; }") unless defined(&TCA_TBF_PARMS);
    eval("sub TCA_TBF_RTAB () { 2; }") unless defined(&TCA_TBF_RTAB);
    eval("sub TCA_TBF_PTAB () { 3; }") unless defined(&TCA_TBF_PTAB);
    eval("sub TCA_RED_UNSPEC () { 0; }") unless defined(&TCA_RED_UNSPEC);
    eval("sub TCA_RED_PARMS () { 1; }") unless defined(&TCA_RED_PARMS);
    eval("sub TCA_RED_STAB () { 2; }") unless defined(&TCA_RED_STAB);
    eval 'sub TC_RED_ECN () {1;}' unless defined(&TC_RED_ECN);
    eval 'sub MAX_DPs () {16;}' unless defined(&MAX_DPs);
    eval("sub TCA_GRED_UNSPEC () { 0; }") unless defined(&TCA_GRED_UNSPEC);
    eval("sub TCA_GRED_PARMS () { 1; }") unless defined(&TCA_GRED_PARMS);
    eval("sub TCA_GRED_STAB () { 2; }") unless defined(&TCA_GRED_STAB);
    eval("sub TCA_GRED_DPS () { 3; }") unless defined(&TCA_GRED_DPS);
    eval 'sub TCA_SET_OFF () { &TCA_GRED_PARMS;}' unless defined(&TCA_SET_OFF);
    eval 'sub TC_HTB_NUMPRIO () {8;}' unless defined(&TC_HTB_NUMPRIO);
    eval 'sub TC_HTB_MAXDEPTH () {8;}' unless defined(&TC_HTB_MAXDEPTH);
    eval 'sub TC_HTB_PROTOVER () {3;}' unless defined(&TC_HTB_PROTOVER);
    eval("sub TCA_HTB_UNSPEC () { 0; }") unless defined(&TCA_HTB_UNSPEC);
    eval("sub TCA_HTB_PARMS () { 1; }") unless defined(&TCA_HTB_PARMS);
    eval("sub TCA_HTB_INIT () { 2; }") unless defined(&TCA_HTB_INIT);
    eval("sub TCA_HTB_CTAB () { 3; }") unless defined(&TCA_HTB_CTAB);
    eval("sub TCA_HTB_RTAB () { 4; }") unless defined(&TCA_HTB_RTAB);
    eval 'sub TC_CBQ_MAXPRIO () {8;}' unless defined(&TC_CBQ_MAXPRIO);
    eval 'sub TC_CBQ_MAXLEVEL () {8;}' unless defined(&TC_CBQ_MAXLEVEL);
    eval 'sub TC_CBQ_DEF_EWMA () {5;}' unless defined(&TC_CBQ_DEF_EWMA);
    eval 'sub TCF_CBQ_LSS_BOUNDED () {1;}' unless defined(&TCF_CBQ_LSS_BOUNDED);
    eval 'sub TCF_CBQ_LSS_ISOLATED () {2;}' unless defined(&TCF_CBQ_LSS_ISOLATED);
    eval 'sub TCF_CBQ_LSS_FLAGS () {1;}' unless defined(&TCF_CBQ_LSS_FLAGS);
    eval 'sub TCF_CBQ_LSS_EWMA () {2;}' unless defined(&TCF_CBQ_LSS_EWMA);
    eval 'sub TCF_CBQ_LSS_MAXIDLE () {4;}' unless defined(&TCF_CBQ_LSS_MAXIDLE);
    eval 'sub TCF_CBQ_LSS_MINIDLE () {8;}' unless defined(&TCF_CBQ_LSS_MINIDLE);
    eval 'sub TCF_CBQ_LSS_OFFTIME () {0x10;}' unless defined(&TCF_CBQ_LSS_OFFTIME);
    eval 'sub TCF_CBQ_LSS_AVPKT () {0x20;}' unless defined(&TCF_CBQ_LSS_AVPKT);
    eval 'sub TC_CBQ_OVL_CLASSIC () {0;}' unless defined(&TC_CBQ_OVL_CLASSIC);
    eval 'sub TC_CBQ_OVL_DELAY () {1;}' unless defined(&TC_CBQ_OVL_DELAY);
    eval 'sub TC_CBQ_OVL_LOWPRIO () {2;}' unless defined(&TC_CBQ_OVL_LOWPRIO);
    eval 'sub TC_CBQ_OVL_DROP () {3;}' unless defined(&TC_CBQ_OVL_DROP);
    eval 'sub TC_CBQ_OVL_RCLASSIC () {4;}' unless defined(&TC_CBQ_OVL_RCLASSIC);
    eval("sub TCA_CBQ_UNSPEC () { 0; }") unless defined(&TCA_CBQ_UNSPEC);
    eval("sub TCA_CBQ_LSSOPT () { 1; }") unless defined(&TCA_CBQ_LSSOPT);
    eval("sub TCA_CBQ_WRROPT () { 2; }") unless defined(&TCA_CBQ_WRROPT);
    eval("sub TCA_CBQ_FOPT () { 3; }") unless defined(&TCA_CBQ_FOPT);
    eval("sub TCA_CBQ_OVL_STRATEGY () { 4; }") unless defined(&TCA_CBQ_OVL_STRATEGY);
    eval("sub TCA_CBQ_RATE () { 5; }") unless defined(&TCA_CBQ_RATE);
    eval("sub TCA_CBQ_RTAB () { 6; }") unless defined(&TCA_CBQ_RTAB);
    eval("sub TCA_CBQ_POLICE () { 7; }") unless defined(&TCA_CBQ_POLICE);
    eval 'sub TCA_CBQ_MAX () { &TCA_CBQ_POLICE;}' unless defined(&TCA_CBQ_MAX);
    eval("sub TCA_DSMARK_UNSPEC () { 0; }") unless defined(&TCA_DSMARK_UNSPEC);
    eval("sub TCA_DSMARK_INDICES () { 1; }") unless defined(&TCA_DSMARK_INDICES);
    eval("sub TCA_DSMARK_DEFAULT_INDEX () { 2; }") unless defined(&TCA_DSMARK_DEFAULT_INDEX);
    eval("sub TCA_DSMARK_SET_TC_INDEX () { 3; }") unless defined(&TCA_DSMARK_SET_TC_INDEX);
    eval("sub TCA_DSMARK_MASK () { 4; }") unless defined(&TCA_DSMARK_MASK);
    eval("sub TCA_DSMARK_VALUE () { 5; }") unless defined(&TCA_DSMARK_VALUE);
    eval 'sub TCA_DSMARK_MAX () { &TCA_DSMARK_VALUE;}' unless defined(&TCA_DSMARK_MAX);
    eval("sub TCA_ATM_UNSPEC () { 0; }") unless defined(&TCA_ATM_UNSPEC);
    eval("sub TCA_ATM_FD () { 1; }") unless defined(&TCA_ATM_FD);
    eval("sub TCA_ATM_PTR () { 2; }") unless defined(&TCA_ATM_PTR);
    eval("sub TCA_ATM_HDR () { 3; }") unless defined(&TCA_ATM_HDR);
    eval("sub TCA_ATM_EXCESS () { 4; }") unless defined(&TCA_ATM_EXCESS);
    eval("sub TCA_ATM_ADDR () { 5; }") unless defined(&TCA_ATM_ADDR);
    eval("sub TCA_ATM_STATE () { 6; }") unless defined(&TCA_ATM_STATE);
    eval 'sub TCA_ATM_MAX () { &TCA_ATM_STATE;}' unless defined(&TCA_ATM_MAX);
}
1;
