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
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
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
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
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
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,
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
/* +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
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
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
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
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
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
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:
> >
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
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
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
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
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
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
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
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
__
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
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
_
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
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,
--
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
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
.
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
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
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
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
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
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
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
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
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
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
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
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
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_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
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
43 matches
Mail list logo