require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_NETIPX_SPX_TIMER_H_)) {
    eval 'sub _NETIPX_SPX_TIMER_H_ () {1;}' unless defined(&_NETIPX_SPX_TIMER_H_);
    eval 'sub SPXT_REXMT () {0;}' unless defined(&SPXT_REXMT);
    eval 'sub SPXT_PERSIST () {1;}' unless defined(&SPXT_PERSIST);
    eval 'sub SPXT_KEEP () {2;}' unless defined(&SPXT_KEEP);
    eval 'sub SPXT_2MSL () {3;}' unless defined(&SPXT_2MSL);
    eval 'sub SPX_TTL () {30;}' unless defined(&SPX_TTL);
    eval 'sub SPXTV_MSL () {( 15* &PR_SLOWHZ);}' unless defined(&SPXTV_MSL);
    eval 'sub SPXTV_SRTTBASE () {0;}' unless defined(&SPXTV_SRTTBASE);
    eval 'sub SPXTV_SRTTDFLT () {( 3* &PR_SLOWHZ);}' unless defined(&SPXTV_SRTTDFLT);
    eval 'sub SPXTV_PERSMIN () {( 5* &PR_SLOWHZ);}' unless defined(&SPXTV_PERSMIN);
    eval 'sub SPXTV_PERSMAX () {( 60* &PR_SLOWHZ);}' unless defined(&SPXTV_PERSMAX);
    eval 'sub SPXTV_KEEP () {( 75* &PR_SLOWHZ);}' unless defined(&SPXTV_KEEP);
    eval 'sub SPXTV_MAXIDLE () {( 8* &SPXTV_KEEP);}' unless defined(&SPXTV_MAXIDLE);
    eval 'sub SPXTV_MIN () {( 1* &PR_SLOWHZ);}' unless defined(&SPXTV_MIN);
    eval 'sub SPXTV_REXMTMAX () {( 64* &PR_SLOWHZ);}' unless defined(&SPXTV_REXMTMAX);
    eval 'sub SPX_LINGERTIME () {120;}' unless defined(&SPX_LINGERTIME);
    eval 'sub SPX_MAXRXTSHIFT () {12;}' unless defined(&SPX_MAXRXTSHIFT);
    if(defined(&SPXTIMERS)) {
    }
    eval 'sub SPXT_RANGESET {
        my($tv, $value, $tvmin, $tvmax) = @_;
	    eval q({ ($tv) = ($value);  &if (($tv) < ($tvmin)) ($tv) = ($tvmin);  &else  &if (($tv) > ($tvmax)) ($tv) = ($tvmax); });
    }' unless defined(&SPXT_RANGESET);
    if(defined(&_KERNEL)) {
    }
}
1;
