Re: [lwip-users] Is netconn/socket fullduplex still "really alpha"?

2021-11-16 Thread Ajay Bhargav via lwip-users
Lwip packet processing is done in single thread and hence it's a sequential operation for either incoming or outgoing packets. It may be true. Regards, Ajay Bhargav On Tue, Nov 16, 2021, 11:17 PM Grant Edwards wrote: > I've been reading up on netconn/sockets and thread-safet

Re: [lwip-users] Requirement that sys_thread_t is integer (or pointer)?

2021-11-15 Thread Ajay Bhargav via lwip-users
working with. You do not want to stall the whole system for failure of one part. Semaphore and mbox are returned as pointers and error code defines whether operation was successful or not. Take the port as an example only. Regards, Ajay Bhargav On Mon, Nov 15, 2021, 11:59 PM Grant Edwards wrote

Re: [lwip-users] Requirement that sys_thread_t is integer (or pointer)?

2021-11-15 Thread Ajay Bhargav via lwip-users
You can define it as integer or pointer based on your system. Its definately not a structure. Regards, Ajay Bhargav On Mon, Nov 15, 2021, 10:36 PM Grant Edwards wrote: > Is it required that sys_thread_t be a pointer or integer type? > > The documentation doesn't state tha

Re: [lwip-users] Are sys_arch_protect/unprotect required to nest?

2021-11-15 Thread Ajay Bhargav via lwip-users
or enter_critical is called in most systems and is not a mandatory requirement either. Based on your implementation, You may simply return a 0 in protect and not use lev in unprotect at all. Regards, Ajay Bhargav On Mon, Nov 15, 2021, 10:03 PM Grant Edwards wrote: > On 2021-11-15, Ajay Bhar

Re: [lwip-users] Are sys_arch_protect/unprotect required to nest?

2021-11-15 Thread Ajay Bhargav via lwip-users
lwip when it comes to protect/unprotect. Implementation is upon the programmer depending on system. Regards, Ajay Bhargav On Mon, Nov 15, 2021, 8:24 PM Grant Edwards wrote: > On 2021-11-15, Ajay Bhargav via lwip-users wrote: > > > sys_arch_protect() and sys_arch_unprotect() is

Re: [lwip-users] Are sys_arch_protect/unprotect required to nest?

2021-11-14 Thread Ajay Bhargav via lwip-users
using. And right order has to be maintained for protect/unprotect calls e.g. lev1 = sys_arch_protect() lev2 = sys_arch_protect() lev3 = sys_arch_protect() sys_arch_unprotect(lev3) sys_arch_unprotect(lev2) sys_arch_unprotect(lev1) Rest depends on how you actually implement these calls. Regards,

Re: [lwip-users] Pbuf Copy to Another Pbuf

2021-10-04 Thread Ajay Bhargav via lwip-users
Why don’t you use pbuf_copy instead? err_t pbuf_copy (struct pbuf *p_to, const struct pbuf *p_from); Ref:https://www.nongnu.org/lwip/2_0_x/group__pbuf.html#gaba88511dee3df4b631fde691f421320d Regards,Ajay Bhargav  From: Duygu D.Sent: Monday, October 4, 2021 3:59 PMTo: Mailing list for lwIP

Re: [lwip-users] [lwip] Why value of O_NONBLOCK/O_RDONLY/O_WRONLY/O_RDWR in src/include/lwip/sockets.h are not equal to the posix?

2021-03-04 Thread Ajay Bhargav via lwip-users
   /* +1 == FREAD|FWRITE */ Maybe he is mentioning that? Regards,Ajay Bhargav From: goldsi...@gmx.deSent: Friday, March 5, 2021 11:17 AMTo: Mailing list for lwIP usersSubject: Re: [lwip-users] [lwip] Why value of O_NONBLOCK/O_RDONLY/O_WRONLY/O_RDWR in src/include/lwip/sockets.h are not equal to the

Re: [lwip-users] [lwip] Why value of O_NONBLOCK/O_RDONLY/O_WRONLY/O_RDWR in src/include/lwip/sockets.h are not equal to the posix?

2021-03-04 Thread Ajay Bhargav via lwip-users
If you’re using a posix style system of any system which already define O_RDONLY/WRONLY/RDWR then you can include that file in your arch.h or cc.h probably The sockets.h definition is only for the system which does not define anything. So it does not matter what the values are. Regards,Ajay

Re: [lwip-users] NTP Client, DNS etc

2020-12-14 Thread Ajay Bhargav via lwip-users
https://www.nongnu.org/lwip/2_0_x/index.html Regards,Ajay Bhargav  From: Bomsta, DanSent: Tuesday, December 15, 2020 7:14 AMTo: Mailing list for lwIP usersSubject: [lwip-users] NTP Client, DNS etc Can anyone point me to documentation for using NTP and DNS?  Do I need to look at the Doxygen and

Re: [lwip-users] Basic Authentication

2020-04-24 Thread Ajay Bhargav via lwip-users
Its better to use set-cookie header so cookies are controlled from server side rather than client side. Regards,Ajay Bhargav  From: Trampas SternSent: Thursday, April 23, 2020 8:43 PMTo: Mailing list for lwIP usersSubject: Re: [lwip-users] Basic Authentication document.cookie = "sessionTo

Re: [lwip-users] DNS thread-safe functions

2020-02-04 Thread Ajay Bhargav
Simon, Noted! :) That’s why I said “I am not sure” ;) Regards, Ajay Bhargav From: Simon Goldschmidt Sent: Tuesday, February 4, 2020 5:10 PM To: lwip-users@nongnu.org Subject: Re: [lwip-users] DNS thread-safe functions Ajay Bhargav wrote: > [..] > However, I am not sure if dns_setserver

Re: [lwip-users] DNS thread-safe functions

2020-02-04 Thread Ajay Bhargav
or you can use my original suggestion since dns_setserver is not a blocking call. However, I am not sure if dns_setserver really needs to be protected so much as there is nothing much going on except copying of server in an array. Regards, Ajay Bhargav From: matteo.c...@alice.it Sent: Tuesday

Re: [lwip-users] DNS thread-safe functions

2020-01-29 Thread Ajay Bhargav
You can write a simple wrapper function for DNS setup and use tcpip_callback to call it from TCPIP thread context. There is also tcpip_try_callback. Regards, Ajay Bhargav On Wed, Jan 29, 2020, 10:41 PM goldsi...@gmx.de wrote: > Am 29.01.2020 um 16:37 schrieb matteo.c...@alice.it: > >

Re: [lwip-users] tcp_write function merges 2 different packets while sending

2019-12-23 Thread Ajay Bhargav
TCP will tend to merge that’s expected behaviour. You need to check your server side application. SSL usually reads the expected number of bytes while handshaking/doing any kind of transaction. So even if packets are merged server side will read bytes in expected order. -Ajay  From: UrviSent: Monda

Re: [lwip-users] POST message Length Limitation

2019-10-08 Thread Ajay Bhargav
ooks like you're confusing yourself with HTTP payload with TCP MSS. For your reference: https://en.wikipedia.org/wiki/Maximum_segment_size - Ajay Bhargav ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Reliable NAT tor lwIP

2019-08-04 Thread Ajay Bhargav
Any details regarding the crash? Regards, Ajay Bhargav On Sat, Aug 3, 2019, 4:18 AM mav wrote: > Could anybody please recomend good and proven lwIP NAT solution? I've found > this one https://github.com/ajaybhargav/lwip_nat but it is randomly > crashing for me. A

Re: [lwip-users] Can we use both NETCONN & SOCKET ?

2019-04-11 Thread Ajay Bhargav
LwIP sockets are wrapper functions for netconn, compatible with BSD sockets. So in order to use lwIP sockets, you need to enable netconn. And yes you can use them both. Regards, Ajay Bhargav From: Ranran Sent: Wednesday, April 3, 2019 11:55 PM To: Mailing list for lwIP users Subject: [lwip

Re: [lwip-users] Using LWIP with PPP and NAT

2019-02-28 Thread Ajay Bhargav
On Thu, Feb 28, 2019 at 5:07 PM goldsimon wrote: > > > > Am 28. Februar 2019 12:16:00 MEZ schrieb Ajay Bhargav > : > >I am yet to update the repo to latest lwIP source, but you can still > >use it. > >Usage information is given here: > >https://github.c

Re: [lwip-users] Using LWIP with PPP and NAT

2019-02-28 Thread Ajay Bhargav
I am yet to update the repo to latest lwIP source, but you can still use it. Usage information is given here: https://github.com/ajaybhargav/lwip_nat/blob/master/src/core/ipv4/ip4_nat.c I will better create a different howto file for this repo. Regards, Ajay Bhargav From: Flavio Castro Alves

Re: [lwip-users] Using LWIP with PPP and NAT

2019-02-26 Thread Ajay Bhargav
the "real" Christian Walter, the author of lwip_nat source. I also emailed him to know more and just hoping he responds back. Well the attribution is there and I am not sure who's to blame. Not me hopefully :-P Regards, Ajay Bhargav ___ lwi

Re: [lwip-users] Using LWIP with PPP and NAT

2019-02-25 Thread Ajay Bhargav
with licensing since lwip and NAT code uses different licenses, they confirmed there is no issue with licensing. ref: https://github.com/RT-Thread/rt-thread/issues/679 I kept the repo aside only coz of two different licenses. Hope this helps. Regards, Ajay Bhargav __

Re: [lwip-users] LWIP/PPPOS for GSM module

2018-11-15 Thread Ajay Bhargav
Dev, I think before entering data mode you need to activate the PDP context using AT+CGACT=1,1 So before msg8 you need to send that command. Try it. Ajay From: Devanand Biradar Sent: Wednesday, November 14, 2018 8:43 PM To: Mailing list for lwIP users Subject: Re: [lwip-users] LWIP/PPPOS for G

Re: [lwip-users] LWIP/PPPOS for GSM module

2018-11-14 Thread Ajay Bhargav
What version of lwIP are you using on your board? Ajay From: Devanand Biradar Sent: Wednesday, November 14, 2018 7:58 AM To: Mailing list for lwIP users Subject: Re: [lwip-users] LWIP/PPPOS for GSM module Ok  I will provide you all the details. I need to enable the lwip debug. Dev _

Re: [lwip-users] Looking for FTP client that uses Raw API

2018-10-28 Thread Ajay Bhargav
I used the same… I believe it should work with latest lwIP also. -Ajay From: Stephen Cowell Sent: Sunday, October 28, 2018 7:17 PM To: Mailing list for lwIP users; zulu4711 Subject: Re: [lwip-users] Looking for FTP client that uses Raw API > So, before I start from the ground and try to design

Re: [lwip-users] Socket support

2018-08-08 Thread Ajay Bhargav (SiWi)
Socket API is a wrapper over raw API. So Yes sockets are supported using Raw APIs. - Ajay From: Amena El Homsi Sent: Wednesday, August 8, 2018 3:22 PM To: Mailing list for lwIP users Subject: [lwip-users] Socket support Hi, Can we support sockets using RAW API without Socket API? Thanks, --

Re: [lwip-users] PPPos Internet connection problem

2018-07-01 Thread Ajay Bhargav (SiWi)
Tushar, Service providers do not assign public IPs to modems. They are usually behind an ISP gateway. You need to talk to your ISP if public IP is needed. Rest everything looks fine. Regards, Ajay Bhargav From: Tushar Patel Sent: Saturday, June 30, 2018 12:03 AM To: lwip-users@nongnu.org

Re: [lwip-users] PPP phase dead every 2 hours

2018-06-21 Thread Ajay Bhargav (SiWi)
Hi Nishant, It is normal for network providers to close PDP context. And 2hrs seems to be common duration as per what I have tested. All you can do is simply reconnect. Moreover IP provided by most service providers are not public so you wont be able to run a server in most cases and IP will ch

Re: [lwip-users] Download a file for firmware upgrade

2018-05-21 Thread Ajay Bhargav (SiWi)
. Regards, Ajay Bhargav From: Giuseppe Modugno Sent: Monday, May 21, 2018 6:18 PM To: lwip-users@nongnu.org Subject: Re: [lwip-users] Download a file for firmware upgrade Il 21/05/2018 14:26, Sergio R. Caprile ha scritto: > You can do whatever you want. > The question is probably not what can

Re: [lwip-users] Download a file for firmware upgrade

2018-05-21 Thread Ajay Bhargav (SiWi)
after then data. You can try all of above using a simple telnet connection from console to server for testing purpose. Regards, Ajay Bhargav From: Giuseppe Modugno Sent: Monday, May 21, 2018 5:02 PM To: lwip-users@nongnu.org Subject: [lwip-users] Download a file for firmware upgrade I have a

Re: [lwip-users] LWIP Porting: Issue

2018-05-01 Thread Ajay Bhargav (SiWi)
connection. Best Regards, ARUL PRAKASH M On Tue, May 1, 2018 at 12:32 PM, Ajay Bhargav (SiWi) wrote: First test with basic TCP or UDP socket then move to more complex application protocol.   Regards, Ajay B.   From: M S ARUL Sent: Tuesday, May 1, 2018 10:02 AM To: Mailing list for lwIP users

Re: [lwip-users] LWIP Porting: Issue

2018-05-01 Thread Ajay Bhargav (SiWi)
First test with basic TCP or UDP socket then move to more complex application protocol. Regards, Ajay B. From: M S ARUL Sent: Tuesday, May 1, 2018 10:02 AM To: Mailing list for lwIP users Subject: [lwip-users] LWIP Porting: Issue Hello All, I`m trying to port the LWIP into embOS. I hav

Re: [lwip-users] lwIP in mainline linux kernel

2018-02-06 Thread Ajay Bhargav (SiWi)
Its going to be a huge task as Linux kernel networking is not just a layer it’s a subsystem which includes a lot of other stuff too. From: Joel Cunningham Sent: Tuesday, February 6, 2018 8:34 PM To: lwip-users@nongnu.org Subject: Re: [lwip-users] lwIP in mainline linux kernel I haven't heard of

Re: [lwip-users] Bootloader to Application + lwip crash

2017-05-02 Thread Ajay Bhargav (SiWi)
You must be getting some kind of exception, If you have a debugger then its better to see what kind of exception it is, and from backtrace log you can figure out where it is generated from. Usually init process is done under supervisory mode where you can access protected CPU registers, setup st

Re: [lwip-users] Bootloader to Application + lwip crash

2017-05-02 Thread Ajay Bhargav (SiWi)
Are you taking care of relocating your ISR routines or reassign ISR handlers after you switch from bootloader to application? If you’re using ARM are you switching between USER and SVC mode? -Ajay From: Krzysztof Wesołowski Sent: Tuesday, May 2, 2017 2:58 PM To: Mailing list for lwIP users Subj

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

2017-04-19 Thread Ajay Bhargav
ded to setup a > TLS connection over TCP available? > mbedTLS will use net_socket wrapper functions, so you need to use mbedTLS APIs to make a TLS connection. Check code samples in program folder of mbedTLS library. -- Ajay Bhargav ___ lwip-use

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

2017-04-18 Thread Ajay Bhargav (SiWi)
Hi Anmol, You are replying to wrong thread. This thread (regarding mbedtls) is created by Shruthi. - Ajay Bhargav From: Anmol Sehgal Sent: Wednesday, April 19, 2017 11:18 AM To: Mailing list for lwIP users Subject: Re: [lwip-users] Building mbedtls using LWIP library Hi, Thank for your

Re: [lwip-users] PPPoS: Question regarding reconnect after connection lost

2017-04-06 Thread Ajay Bhargav
You can send +++ to your modem to come out of data mode. And send ATH to hang up the ongoing call. Regards, Ajay Bhargav On Apr 6, 2017 6:28 PM, "Axel Lin" wrote: > 2017-04-06 20:15 GMT+08:00 Sylvain Rochet : > > Hi Axel, > > > > On Thu, Apr 06, 2017 at 0

Re: [lwip-users] ESP8266 as WiFi to PPP Bridge

2017-02-15 Thread Ajay Bhargav
I should Modify that header as I know lwip is not involved in this. I will fix it so noone is confused. Regards, Ajay Bhargav On Feb 15, 2017 9:08 PM, "sg" wrote: Sylvain Rochet wrote: > Or you can try Ajay NAT support ;-) But do keep in mind that the license of that is GPL a

Re: [lwip-users] TFTP init

2017-01-18 Thread Ajay Bhargav
ly designed for this purpose, requires only udp but lacks features like authentication. Many bootloaders use tftp to boot using an image located on the network. Jan On 18.01.2017 14:21, nrichard wrote: > Ajay Bhargav wrote >> I guess you need to check memory configuration. How much RAM

Re: [lwip-users] lwIP NAT implementation

2016-11-19 Thread Ajay Bhargav
st it. I have >> tested it with PPP and Ethernet setup and it works wonderfully. >> >> >> >> Repo is located at: https://github.com/ajaybhargav/lwip_nat >> >> >> >> Hope it will help others. >> >> >> >> Regards, >>

[lwip-users] Fix PPP Build issues

2016-08-11 Thread Ajay Bhargav
' LWIP_MEMPOOL_INIT(PPPOS_PCB); ^ make: *** [src/lwip/src/netif/ppp/ppp.o] Error 1 Please review it. Regards, Ajay Bhargav Sent from Mail for Windows 10 ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

[lwip-users] routing over PPP using lwip

2016-01-05 Thread Ajay Bhargav
gress. https://lists.gnu.org/archive/html/lwip-users/2015-05/msg00078.html Regards, Ajay Bhargav -- Rickey's World www.8051projects.net ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users