|
1 # |
|
2 # Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 # All rights reserved. |
|
4 # This component and the accompanying materials are made available |
|
5 # under the terms of "Eclipse Public License v1.0" |
|
6 # which accompanies this distribution, and is available |
|
7 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 # |
|
9 # Initial Contributors: |
|
10 # Nokia Corporation - initial contribution. |
|
11 # |
|
12 # Contributors: |
|
13 # |
|
14 # Description: |
|
15 # USE-CASE-1: Standard PPP session. |
|
16 # UP-TO-DATE |
|
17 # (1) Setup a PPP session between the MN and the PDSN. The PDSN will attach the session |
|
18 # to the 192.168.200.x network, which has appropriate routes setup throughout |
|
19 # the inter-network. |
|
20 # (2) Wait for a signal to bring down the link. |
|
21 # (3) Tell the PDSN to close the PPP connection and send a TERM-ACK. Wait for the MN |
|
22 # side to shut itself down cleanly. |
|
23 # |
|
24 |
|
25 |
|
26 |
|
27 ####################################################################################### |
|
28 # |
|
29 # MOBSTER: Create an MT on the MN and the PDSN and link them to each other. Packetise |
|
30 # PPP frames before sending them over the network. |
|
31 # |
|
32 ####################################################################################### |
|
33 runcmd svcid=5 svchost="penmn" methodid=3 DATALINKCONFIG=2 FILTERCONFIG=0 |
|
34 assign mt0=RESULT |
|
35 runcmd svcid=5 svchost="penpdsn" methodid=3 DATALINKCONFIG=2 FILTERCONFIG=0 |
|
36 assign mt1=RESULT |
|
37 runcmd svcid=9 svchost="localhost" methodid=1 PERIOD=2000 |
|
38 |
|
39 runcmd svcid=5 svchost="penmn" methodid=4 DEVICEID=mt0 |
|
40 assign local_uu_port0=AIR_INPORT |
|
41 runcmd svcid=5 svchost="penpdsn" methodid=4 DEVICEID=mt1 |
|
42 assign local_uu_port1=AIR_INPORT |
|
43 runcmd svcid=5 svchost="penmn" methodid=10 DEVICEID=mt0 REMOTE_ADDRESS="192.169.10.11" REMOTE_PORT=local_uu_port1 |
|
44 check RESULT=0 |
|
45 runcmd svcid=5 svchost="penpdsn" methodid=10 DEVICEID=mt1 REMOTE_ADDRESS="10.22.1.6" REMOTE_PORT=local_uu_port0 |
|
46 check RESULT=0 |
|
47 |
|
48 |
|
49 ####################################################################################### |
|
50 # |
|
51 # PPP: Create a session on each machine using the new MTs. The PDSN session will |
|
52 # specify the IP addresses which the other side will accept. |
|
53 # |
|
54 ####################################################################################### |
|
55 runcmd svcid=7 svchost="penmn" methodid=31 MADDR="localhost" MPORT=7000 MTID=mt0 CONFIG="defaultroute noauth debug nodetach" |
|
56 assign sid0=RESULT |
|
57 runcmd svcid=7 svchost="penpdsn" methodid=31 MADDR="localhost" MPORT=7000 MTID=mt1 CONFIG="defaultroute noauth 192.168.200.20:192.168.200.10 debug nodetach" |
|
58 assign sid1=RESULT |
|
59 |
|
60 |
|
61 ####################################################################################### |
|
62 # |
|
63 # PPP: Wait for the session to become established |
|
64 # |
|
65 ####################################################################################### |
|
66 runcmd svcid=7 svchost="penmn" methodid=7 SID=sid0 |
|
67 waitfor SESSION_STATUS=2 |
|
68 check RESULT=0 |
|
69 runcmd svcid=7 svchost="penpdsn" methodid=7 SID=sid1 |
|
70 waitfor SESSION_STATUS=2 |
|
71 check RESULT=0 |
|
72 runcmd svcid=7 svchost="penmn" methodid=7 SID=sid0 |
|
73 runcmd svcid=7 svchost="penpdsn" methodid=7 SID=sid1 |
|
74 |
|
75 |
|
76 ####################################################################################### |
|
77 # |
|
78 # CONNECTION ESTABLISHED: Now do what you want with the connection |
|
79 # |
|
80 ####################################################################################### |
|
81 signal |
|
82 waitforsignal |
|
83 |
|
84 |
|
85 ####################################################################################### |
|
86 # |
|
87 # PPP: Stop the PPP session from the PDSN side and wait for the MN to exit. Retrieve |
|
88 # all logs before removing the objects. |
|
89 # |
|
90 ####################################################################################### |
|
91 runcmd svcid=7 svchost="penpdsn" methodid=6 SID=sid1 |
|
92 check RESULT=0 |
|
93 runcmd svcid=7 svchost="penpdsn" methodid=8 SID=sid1 |
|
94 runcmd svcid=7 svchost="penpdsn" methodid=32 SID=sid1 |
|
95 check RESULT=0 |
|
96 |
|
97 runcmd svcid=7 svchost="penmn" methodid=7 SID=sid0 |
|
98 waitfor SESSION_PROCESS_STATUS=3 |
|
99 check RESULT=0 |
|
100 check SESSION_STATUS=4 |
|
101 runcmd svcid=7 svchost="penmn" methodid=8 SID=sid0 |
|
102 runcmd svcid=7 svchost="penmn" methodid=32 SID=sid0 |
|
103 check RESULT=0 |
|
104 |
|
105 |
|
106 ####################################################################################### |
|
107 # |
|
108 # MOBSTER: Remove the mobster devices, they should already have stopped |
|
109 # |
|
110 ####################################################################################### |
|
111 runcmd svcid=5 svchost="penmn" methodid=6 DEVICEID=mt0 |
|
112 check RESULT=0 |
|
113 runcmd svcid=5 svchost="penmn" methodid=7 DEVICEID=mt0 |
|
114 check RESULT=0 |
|
115 |
|
116 runcmd svcid=5 svchost="penpdsn" methodid=6 DEVICEID=mt1 |
|
117 check RESULT=0 |
|
118 runcmd svcid=5 svchost="penpdsn" methodid=7 DEVICEID=mt1 |
|
119 check RESULT=0 |
|
120 |
|
121 |
|
122 ####################################################################################### |
|
123 # |
|
124 # DONE |
|
125 # |
|
126 ####################################################################################### |
|
127 rendezvous |