equal
deleted
inserted
replaced
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
166 if (!GetIntFromConfig(aSection, KUSEIAP(), useiap)) |
166 if (!GetIntFromConfig(aSection, KUSEIAP(), useiap)) |
167 { |
167 { |
168 ERR_PRINTF2(_L("<font color=FF0000>No parameter %S</font>"), &KUSEIAP()); |
168 ERR_PRINTF2(_L("<font color=FF0000>No parameter %S</font>"), &KUSEIAP()); |
169 SetBlockResult(EFail); |
169 SetBlockResult(EFail); |
170 } |
170 } |
171 |
171 |
172 |
|
173 _LIT(KTestCaseName,"eth"); |
|
174 |
172 |
175 TBuf8<256> name8; |
173 TBuf8<256> name8; |
176 name8.Copy(pname16); |
174 name8.Copy(pname16); |
177 TInt err= KErrNone; |
175 TInt err= KErrNone; |
178 //start the connection |
176 //start the connection |
242 SetBlockResult(EFail); |
240 SetBlockResult(EFail); |
243 return; |
241 return; |
244 } |
242 } |
245 iUseNapt = ETrue; |
243 iUseNapt = ETrue; |
246 |
244 |
|
245 #ifdef SIROCCO_CODE_MIGRATION |
|
246 _LIT(KInterfaceName,"wlan"); |
|
247 _LIT(KInterfaceName2,"wlan"); |
|
248 #else |
|
249 _LIT(KInterfaceName,"eth"); |
|
250 _LIT(KInterfaceName2,"eth"); |
|
251 #endif |
|
252 |
247 RSocket sock; |
253 RSocket sock; |
248 sock.Open(iSs,KAfInet, KSockDatagram, KProtocolInetUdp); |
254 sock.Open(iSs,KAfInet, KSockDatagram, KProtocolInetUdp); |
249 _LIT(KInterfaceName,"eth"); |
|
250 TUint32 testaddr = GetInterfaceAddress(sock,KInterfaceName()); |
255 TUint32 testaddr = GetInterfaceAddress(sock,KInterfaceName()); |
251 _LIT(KInterfaceName2,"eth"); |
|
252 TUint32 ifindex = GetInterfaceIndex(sock, KInterfaceName2()); |
256 TUint32 ifindex = GetInterfaceIndex(sock, KInterfaceName2()); |
253 sock.Close(); |
257 sock.Close(); |
254 |
258 |
255 TPckgBuf <TInterfaceLockInfo> info; |
259 TPckgBuf <TInterfaceLockInfo> info; |
256 info().iPublicIap = useiap; |
260 info().iPublicIap = useiap; |
773 SetBlockResult(EFail); |
777 SetBlockResult(EFail); |
774 return; |
778 return; |
775 } |
779 } |
776 iUseNapt = ETrue; |
780 iUseNapt = ETrue; |
777 |
781 |
|
782 #ifdef SIROCCO_CODE_MIGRATION |
|
783 _LIT(KInterfaceName,"wlan"); |
|
784 _LIT(KInterfaceName2,"wlan"); |
|
785 #else |
|
786 _LIT(KInterfaceName,"eth"); |
|
787 _LIT(KInterfaceName2,"eth"); |
|
788 #endif |
|
789 |
778 RSocket sock; |
790 RSocket sock; |
779 sock.Open(iSs,KAfInet, KSockDatagram, KProtocolInetUdp); |
791 sock.Open(iSs,KAfInet, KSockDatagram, KProtocolInetUdp); |
780 _LIT(KInterfaceName,"eth"); |
|
781 TUint32 testaddr = GetInterfaceAddress(sock,KInterfaceName()); |
792 TUint32 testaddr = GetInterfaceAddress(sock,KInterfaceName()); |
782 _LIT(KInterfaceName2,"eth"); |
|
783 TUint32 ifindex = GetInterfaceIndex(sock, KInterfaceName2()); |
793 TUint32 ifindex = GetInterfaceIndex(sock, KInterfaceName2()); |
784 sock.Close(); |
794 sock.Close(); |
785 |
795 |
786 TPckgBuf <TInterfaceLockInfo> info; |
796 TPckgBuf <TInterfaceLockInfo> info; |
787 info().iPublicIap = useiap; |
797 info().iPublicIap = useiap; |