require '_h2ph_pre.ph';

unless(defined(&X25_SBSIZE)) {
    sub X25_SBSIZE () {	512;}
}
unless(defined(&X25_PORT_RESERVED)) {
    sub X25_PORT_RESERVED () {	24;}
}
unless(defined(&X25_PORT_USERMAX)) {
    sub X25_PORT_USERMAX () {	1099;}
}
unless(defined(&X25_FACIL_LEN_MAX)) {
    sub X25_FACIL_LEN_MAX () {	109;}
}
unless(defined(&X25_PARTIAL_PKT_LEN_MAX)) {
    sub X25_PARTIAL_PKT_LEN_MAX () {	( &MLEN - $sizeof{'struct cons_pcb'});}
}
unless(defined(&ARGO_DEBUG)) {
    eval 'sub X25_TTL () {600;}' unless defined(&X25_TTL);
} else {
    eval 'sub X25_TTL () {120;}' unless defined(&X25_TTL);
}
unless(defined(&co_next)) {
    sub co_next () {	 ($_co_isopcb->{isop_next});}
}
unless(defined(&co_prev)) {
    sub co_prev () {	 ($_co_isopcb->{isop_prev});}
}
unless(defined(&co_head)) {
    sub co_head () {	 ($_co_isopcb->{isop_head});}
}
unless(defined(&co_laddr)) {
    sub co_laddr () {	 ($_co_isopcb->{isop_laddr});}
}
unless(defined(&co_faddr)) {
    sub co_faddr () {	 ($_co_isopcb->{isop_faddr});}
}
unless(defined(&co_lport)) {
    sub co_lport () {	 ($_co_isopcb->{isop_laddr}->{siso_tsuffix});}
}
unless(defined(&co_fport)) {
    sub co_fport () {	 ($_co_isopcb->{isop_faddr}->{siso_tsuffix});}
}
unless(defined(&co_route)) {
    sub co_route () {	 ($_co_isopcb->{isop_route});}
}
unless(defined(&co_socket)) {
    sub co_socket () {	 ($_co_isopcb->{isop_socket});}
}
unless(defined(&co_chanmask)) {
    sub co_chanmask () {	 ($_co_isopcb->{isop_chanmask});}
}
unless(defined(&co_negchanmask)) {
    sub co_negchanmask () {	 ($_co_isopcb->{isop_negchanmask});}
}
unless(defined(&co_x25crud)) {
    sub co_x25crud () {	 ($_co_isopcb->{isop_x25crud});}
}
unless(defined(&co_x25crud_len)) {
    sub co_x25crud_len () {	 ($_co_isopcb->{isop_x25crud_len});}
}
unless(defined(&MAX_DTE_LEN)) {
    sub MAX_DTE_LEN () {	0x7;}
}
unless(defined(&XPKT_DATA)) {
    sub XPKT_DATA () {	1;}
}
unless(defined(&XPKT_INTERRUPT)) {
    sub XPKT_INTERRUPT () {	2;}
}
unless(defined(&XPKT_FLOWCONTROL)) {
    sub XPKT_FLOWCONTROL () {	3;}
}
unless(defined(&CLOSED)) {
    sub CLOSED () {	0x;}
}
unless(defined(&LISTENING)) {
    sub LISTENING () {	0x1;}
}
unless(defined(&CLOSING)) {
    sub CLOSING () {	0x2;}
}
unless(defined(&CONNECTING)) {
    sub CONNECTING () {	0x3;}
}
unless(defined(&ACKWAIT)) {
    sub ACKWAIT () {	0x4;}
}
unless(defined(&OPEN)) {
    sub OPEN () {	0x5;}
}
unless(defined(&MIN_USABLE_STATE)) {
    sub MIN_USABLE_STATE () {	 &CONNECTING;}
}
unless(defined(&cons_NSTATES)) {
    sub cons_NSTATES () {	0x6;}
}
unless(defined(&CONSF_OCRE)) {
    sub CONSF_OCRE () {	0x40;}
}
unless(defined(&CONSF_ICRE)) {
    sub CONSF_ICRE () {	0x20;}
}
unless(defined(&CONSF_unused)) {
    sub CONSF_unused () {	0x10;}
}
unless(defined(&CONSF_unused2)) {
    sub CONSF_unused2 () {	0x8;}
}
unless(defined(&CONSF_DGM)) {
    sub CONSF_DGM () {	0x4;}
}
unless(defined(&CONSF_XTS)) {
    sub CONSF_XTS () {	0x2;}
}
unless(defined(&CONSF_LOOPBACK)) {
    sub CONSF_LOOPBACK () {	0x1;}
}
unless(defined(&X_NOCHANNEL)) {
    sub X_NOCHANNEL () {	0x80;}
}
if(defined(&_KERNEL)) {
    eval 'sub IncStat {
        local($XYZ) = @_;
	    eval q( ($cons_stat->{XYZ})++);
    }' unless defined(&IncStat);
}
1;
