This example is based on x25_sample.answ in /opt/acc/cfg.
#include "/opt/acc/cfg/ttgendefine"
ttgen
Configuration
System-name "ACC X.25 Protocol ttgen input file"
Program-zlu 100
Terminal-zlu 1000
Logical-Term 800
Physical-Term 800
Buffer-Pool 3000000
Logical-Size 252
Logical-Data 10 X25CNT,0,X25CNT_LDSIZE
Queue-Limit 200
Transmit-Limit 200
Unack-Limit 5000
Port-Limit 20000
E1T1-Port-Limit 100000
Node-Entry 1
Interface-Definition
<card-type> 0 0:4 /opt/acc/<card-type>/x25.zabs
Port-Definition
Port 0:0 RS232 9600 Int SDLC X1 NRZ
Port 0:1 RS232 9600 Ext SDLC X1 NRZ
Port 0:2 RS232 9600 Int SDLC X1 NRZ
Port 0:3 RS232 9600 Ext SDLC X1 NRZ
Port 0:4 RS232 9600 Int SDLC X1 NRZ
Port 0:5 RS232 9600 Ext SDLC X1 NRZ
Port 0:6 RS232 9600 Int SDLC X1 NRZ
Port 0:7 RS232 9600 Ext SDLC X1 NRZ
Terminal-Definition
Term 10 0:0 X25.LAPB X25_LINK_DTE_400 ~
10 0 0 0 0 CALL:226633004 "X25 DTE POS 226633004"
* no_autostart
option 02h
last_pvc 3
first_insvc 4
last_insvc 6
first_svc 9
last_svc 12
first_outsvc 14
last_outsvc 15
def_inpacket 7
def_outpacket 7
def_inwindow 2
def_outwindow 2
T1_timer res_100ms 40
T2_timer res_100ms 20
T3_T4_timer res_10s 3
Term 100 0:0 x25.pvc 0001h 9797h 79 0 0 0 0 "X.25 PVC LCN 1"
Term 101 0:0 x25.pvc 0002h 9797h 79 0 0 0 0 "X.25 PVC LCN 2"
Term 102 0:0 x25.pvc 0003h 9797h 79 0 0 0 0 "X.25 PVC LCN 3"
Term 103 0:0 x25.svc.in X25_VC_Q0_D0 ~
79 1 201 0 1 CALL:226633004 "X.25 SVC in from 33004"
Repeat 2
Term 106 0:0 x25.svc.io 0h 0h 79 0 0 0 0 "X.25 Two-Way SVC"
Option 0750h
Repeat 3
Term 110 0:0 x25.svc.out 0h 0h 79 0 0 0 0 "X.25 Outgoing SVC"
Term 111 0:0 x25.svc.out 0h 0h 79 0 0 0 0 "X.25 Outgoing SVC"
Term 20 0:1 X25.LAPB X25_LINK_DCE_400 ~
10 0 0 0 0 CALL:226633004 "X25DCE POS 226633004"
* no_autostart
option 02h
last_pvc 0
first_insvc 14
last_insvc 15
first_svc 0
last_svc 0
first_outsvc 0
last_outsvc 0
def_inpacket 7
def_outpacket 7
def_inwindow 2
def_outwindow 2
T1_timer res_100ms 40
T2_timer res_100ms 20
T3_T4_timer res_10s 3
Term 200 0:1 x25.svc.out X25_VC_Q0_D0 ~
79 1 201 0 1 CALL:226633011 "X.25 SVC out to 33011"
Repeat 1
Node-Definition
Local-Node 123
End$