|
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-23: Setup a PPP session between SymbianOS and the PDSN |
|
16 # |
|
17 runcmd svcid=6 svchost="penuu" methodid=2 SRC="10.22.1.6:5000.udp" DST="192.168.10.11:5000.udp" DROPI=0 |
|
18 |
|
19 ####################################################################################### |
|
20 # |
|
21 # Create an MT on the PDSN and the MN |
|
22 # |
|
23 ####################################################################################### |
|
24 runcmd svcid=5 svchost="penmn" methodid=3 CHANNEL_TYPE=1 CHANNEL_ADDR="localhost" CHANNEL_PORT=4000 AIR_OUTADDR="192.168.10.11" AIR_OUTPORT=5000 AIR_INPORT=5000 DATALINKCONFIG=2 FILTERCONFIG=1 |
|
25 runcmd svcid=5 svchost="penpdsn" methodid=3 CHANNEL_TYPE=1 CHANNEL_ADDR="localhost" CHANNEL_PORT=4000 AIR_OUTADDR="10.22.1.6" AIR_OUTPORT=5000 AIR_INPORT=5000 DATALINKCONFIG=2 FILTERCONFIG=1 |
|
26 runcmd svcid=5 svchost="penmn" methodid=4 DEVICEID=0 |
|
27 runcmd svcid=5 svchost="penpdsn" methodid=4 DEVICEID=0 |
|
28 |
|
29 |
|
30 ####################################################################################### |
|
31 # |
|
32 # Create a PPP session on the PDSN |
|
33 # |
|
34 ####################################################################################### |
|
35 runcmd svcid=7 svchost="penpdsn" methodid=3 MADDR="localhost" MPORT=4000 CONFIG="nodeflate noaccomp noauth 192.168.200.20:192.168.200.10 debug logfile ./ppp.log nodetach" |
|
36 |
|
37 |
|
38 ####################################################################################### |
|
39 # |
|
40 # The PPP session should now be setup. Rendezvous with the driver so we know he has |
|
41 # started. Then wait for 1 minute (let them play) and then set nistnet to drop |
|
42 # 20 percent, then 80 percent, then 100 percent. The connection should timeout on |
|
43 # the symbian device. |
|
44 # |
|
45 ####################################################################################### |
|
46 rendezvous |
|
47 rendezvous |
|
48 runcmd svcid=6 svchost="penuu" methodid=2 SRC="10.22.1.6:5000.udp" DST="192.168.10.11:5000.udp" DROPI=10 |
|
49 runcmd svcid=9 svchost="localhost" methodid=1 PERIOD=2000 |
|
50 runcmd svcid=6 svchost="penuu" methodid=2 SRC="10.22.1.6:5000.udp" DST="192.168.10.11:5000.udp" DROPI=20 |
|
51 runcmd svcid=9 svchost="localhost" methodid=1 PERIOD=2000 |
|
52 runcmd svcid=6 svchost="penuu" methodid=2 SRC="10.22.1.6:5000.udp" DST="192.168.10.11:5000.udp" DROPI=40 |
|
53 runcmd svcid=9 svchost="localhost" methodid=1 PERIOD=2000 |
|
54 runcmd svcid=6 svchost="penuu" methodid=2 SRC="10.22.1.6:5000.udp" DST="192.168.10.11:5000.udp" DROPI=80 |
|
55 runcmd svcid=9 svchost="localhost" methodid=1 PERIOD=2000 |
|
56 runcmd svcid=6 svchost="penuu" methodid=2 SRC="10.22.1.6:5000.udp" DST="192.168.10.11:5000.udp" DROPI=99 |
|
57 runcmd svcid=9 svchost="localhost" methodid=1 PERIOD=2000 |
|
58 rendezvous |
|
59 rendezvous |
|
60 |
|
61 |
|
62 ####################################################################################### |
|
63 # |
|
64 # Cleanup the PPP session (MN and PDSN) (hardcode session ID as zero) retrieving all the logs |
|
65 # |
|
66 ####################################################################################### |
|
67 runcmd svcid=7 svchost="penpdsn" methodid=4 SID=0 |
|
68 runcmd svcid=9 svchost="localhost" methodid=1 PERIOD=1000 |
|
69 runcmd svcid=7 svchost="penpdsn" methodid=6 SID=0 |
|
70 |
|
71 |
|
72 ####################################################################################### |
|
73 # |
|
74 # Cleanup mobster -- retrieving the logs (MN and PDSN) |
|
75 # |
|
76 ####################################################################################### |
|
77 runcmd svcid=5 svchost="penpdsn" methodid=6 DEVICEID=0 |
|
78 runcmd svcid=9 svchost="localhost" methodid=1 PERIOD=1000 |
|
79 runcmd svcid=5 svchost="penpdsn" methodid=7 DEVICEID=0 |
|
80 runcmd svcid=5 svchost="penmn" methodid=6 DEVICEID=0 |
|
81 runcmd svcid=9 svchost="localhost" methodid=1 PERIOD=1000 |
|
82 runcmd svcid=5 svchost="penmn" methodid=7 DEVICEID=0 |
|
83 |
|
84 |
|
85 ####################################################################################### |
|
86 # |
|
87 # We should be back to our original state now -- quit |
|
88 # |
|
89 ####################################################################################### |
|
90 rendezvous |