lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Building mbedtls using LWIP library


From: Anmol Sehgal
Subject: Re: [lwip-users] Building mbedtls using LWIP library
Date: Wed, 19 Apr 2017 05:32:44 +0000

Hi,

Thank for your responses but my query is regarding compiling the lwip-2.0.2 
through NDK-build for android platform, as we want to use lwip-2.0.2 to 
implement L2TP protocol for the vpn connection.

We downloaded the working git project for LWIP-1.4.1 from the URL: 
https://github.com/digitalsorcery/LWIPAndroidJNI
And in a similar way, we are trying to build LWIP-2.0.2, as per your 
suggestion, but getting compilation errors.
The errors faced while trying to compile and make .so file are as below: 

[armeabi] SharedLibrary  : liblwip-android.so
C:/Users/anmolsehgal/Desktop/LWIPAndroidJNI-master2.0.2/LWIPAndroidJNI-master/jni/lwip-2.0.2/src/api/sockets.c:510:
 error: undefined reference to 'errno'
C:/Users/anmolsehgal/Desktop/LWIPAndroidJNI-master2.0.2/LWIPAndroidJNI-master/jni/lwip-2.0.2/src/api/sockets.c:510:
 error: undefined reference to 'errno'
C:/Users/anmolsehgal/Desktop/LWIPAndroidJNI-master2.0.2/LWIPAndroidJNI-master/jni/lwip-2.0.2/src/api/sockets.c:510:
 error: undefined reference to 'errno'
C:/Users/anmolsehgal/Desktop/LWIPAndroidJNI-master2.0.2/LWIPAndroidJNI-master/jni/lwip-2.0.2/src/api/sockets.c:510:
 error: undefined reference to 'errno'
C:/Users/anmolsehgal/Desktop/LWIPAndroidJNI-master2.0.2/LWIPAndroidJNI-master/jni/lwip-2.0.2/src/netif/slipif.c:391:
 error: undefined reference to '
sio_open'
C:/Users/anmolsehgal/Desktop/LWIPAndroidJNI-master2.0.2/LWIPAndroidJNI-master/jni/lwip-2.0.2/src/netif/slipif.c:132:
 error: undefined reference to '
sio_send'
C:/Users/anmolsehgal/Desktop/LWIPAndroidJNI-master2.0.2/LWIPAndroidJNI-master/jni/lwip-2.0.2/src/netif/slipif.c:140:
 error: undefined reference to '
sio_send'
C:/Users/anmolsehgal/Desktop/LWIPAndroidJNI-master2.0.2/LWIPAndroidJNI-master/jni/lwip-2.0.2/src/netif/slipif.c:145:
 error: undefined reference to '
sio_send'
C:/Users/anmolsehgal/Desktop/LWIPAndroidJNI-master2.0.2/LWIPAndroidJNI-master/jni/lwip-2.0.2/src/netif/slipif.c:150:
 error: undefined reference to '
sio_send'
C:/Users/anmolsehgal/Desktop/LWIPAndroidJNI-master2.0.2/LWIPAndroidJNI-master/jni/lwip-2.0.2/src/netif/slipif.c:337:
 error: undefined reference to '
sio_read'
C:/Users/anmolsehgal/Desktop/LWIPAndroidJNI-master2.0.2/LWIPAndroidJNI-master/jni/lwip-2.0.2/src/netif/slipif.c:437:
 error: undefined reference to '
sio_tryread'
clang++.exe: error: linker command failed with exit code 1 (use -v to see 
invocation)



Any help would be appreciated.

Regards,
Anmol

-----Original Message-----
From: lwip-users [mailto:address@hidden On Behalf Of address@hidden
Sent: 18 April 2017 11:54 PM
To: Mailing list for lwIP users <address@hidden>
Subject: Re: [lwip-users] Building mbedtls using LWIP library

Jan Menzel wrote:
> Can you tell me more what improvements you're implementing and how 
> this will effect the interface to mbedtls?

No improvements really. I have added an indirection layer to the tcp callback 
API that allows to plug in layers between the application (e.g. 
HTTP server) and TCP. This is implemented simply by having other 'bio' 
callbacks for mbedTLS.

The downside of course is that TLS processing time is done in tcpip_thread, so 
it really depends on your overall application use whether you want to use this 
layer or sockets. Since mbedTLS allows registering the callbacks per ssl 
context, it should be possible to use both APIs at the same time.

Simon

_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users



reply via email to

[Prev in Thread] Current Thread [Next in Thread]