equal
deleted
inserted
replaced
240 SetBlockResult(EFail); |
240 SetBlockResult(EFail); |
241 return; |
241 return; |
242 } |
242 } |
243 iUseNapt = ETrue; |
243 iUseNapt = ETrue; |
244 |
244 |
245 #ifdef SIROCCO_CODE_MIGRATION |
|
246 _LIT(KInterfaceName,"wlan"); |
245 _LIT(KInterfaceName,"wlan"); |
247 _LIT(KInterfaceName2,"wlan"); |
246 _LIT(KInterfaceName2,"wlan"); |
248 #else |
|
249 _LIT(KInterfaceName,"eth"); |
|
250 _LIT(KInterfaceName2,"eth"); |
|
251 #endif |
|
252 |
247 |
253 RSocket sock; |
248 RSocket sock; |
254 sock.Open(iSs,KAfInet, KSockDatagram, KProtocolInetUdp); |
249 sock.Open(iSs,KAfInet, KSockDatagram, KProtocolInetUdp); |
255 TUint32 testaddr = GetInterfaceAddress(sock,KInterfaceName()); |
250 TUint32 testaddr = GetInterfaceAddress(sock,KInterfaceName()); |
256 TUint32 ifindex = GetInterfaceIndex(sock, KInterfaceName2()); |
251 TUint32 ifindex = GetInterfaceIndex(sock, KInterfaceName2()); |
777 SetBlockResult(EFail); |
772 SetBlockResult(EFail); |
778 return; |
773 return; |
779 } |
774 } |
780 iUseNapt = ETrue; |
775 iUseNapt = ETrue; |
781 |
776 |
782 #ifdef SIROCCO_CODE_MIGRATION |
|
783 _LIT(KInterfaceName,"wlan"); |
777 _LIT(KInterfaceName,"wlan"); |
784 _LIT(KInterfaceName2,"wlan"); |
778 _LIT(KInterfaceName2,"wlan"); |
785 #else |
|
786 _LIT(KInterfaceName,"eth"); |
|
787 _LIT(KInterfaceName2,"eth"); |
|
788 #endif |
|
789 |
779 |
790 RSocket sock; |
780 RSocket sock; |
791 sock.Open(iSs,KAfInet, KSockDatagram, KProtocolInetUdp); |
781 sock.Open(iSs,KAfInet, KSockDatagram, KProtocolInetUdp); |
792 TUint32 testaddr = GetInterfaceAddress(sock,KInterfaceName()); |
782 TUint32 testaddr = GetInterfaceAddress(sock,KInterfaceName()); |
793 TUint32 ifindex = GetInterfaceIndex(sock, KInterfaceName2()); |
783 TUint32 ifindex = GetInterfaceIndex(sock, KInterfaceName2()); |