Re: [lwip-users] [lwip-devel] [bug #59966] After several hours of working, need router reset to be able to send mqtt msg bigger than 1460 bytes

2021-01-29 Thread goldsi...@gmx.de
> > Dejan Spasovski > > > Senior Embedded Software & Electronics Systems Design Engineer,  > > CEO at eXtremeEmbedded, > > https://www.xembed.com <https://www.xembed.com> > > phone: +389 75 215 449 > > st. Mariovska 3, 20-1/8 > Skopje, Republic of

Re: [lwip-users] [lwip-devel] [bug #59966] After several hours of working, need router reset to be able to send mqtt msg bigger than 1460 bytes

2021-01-29 Thread goldsi...@gmx.de
[Moved here from an invalid bug report] Am 29.01.2021 um 10:56 schrieb Dejan: > [..] > Hi, > > We are company producing seismic sensors based on STM32H7 mcu's running lwip > and we use mqtt to connect to our own cloud server. On starrup devices send a > series of short messages and then after this

Re: [lwip-users] Decreasing tcp_poll() time

2021-01-27 Thread goldsi...@gmx.de
Am 27.01.2021 um 18:27 schrieb Nathan Brandes: > [..] > It seems like I can use a tcp_poll() callback to poll my flag > but the fastest it would happen is 500ms? Can I decrease this to 10ms > somehow?  OR is there a better way to go about this? tcp_poll() is rather meant for slower connection-hand

Re: [lwip-users] VLAN configuration with mbed

2020-12-07 Thread goldsi...@gmx.de
Am 07.12.2020 um 08:32 schrieb Nada Ali: > Dear LWIP team, > > Please any update regarding my question about the VLAN ID. Sorry, this seems like an mbed question to me? Regards, Simon ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nong

Re: [lwip-users] What LwIP version to use?

2020-11-23 Thread goldsi...@gmx.de
Am 23.11.2020 um 13:59 schrieb Joakim Wiberg: > Hi all, > > Are there any "official" release schedules and release policies for LwIP? > I've been trying to find information about this but not fond any the > information I'm looking for. > > Today version 2.1.2 is the latest stable release tag, whi

Re: [lwip-users] Help with dns_gethostbyname

2020-11-23 Thread goldsi...@gmx.de
Am 15.11.2020 um 23:22 schrieb Flavio Castro Alves Filho: > Hello, > > I would like to ask some help regarding the use of dns_gethostbyname function. > > I am having two errors: > > 1) There is an error on the execution > 2) The function is blocking (according to the documentation, it is > told to

Re: [lwip-users] Control priority processing of the packages

2020-09-18 Thread goldsi...@gmx.de
Am 18.09.2020 um 14:41 schrieb Mário Luzeiro: > Hello all, > > Not sure if my question makes sense but is possible that I can control the > priority processing of the packages? > > I would like that large packages are delayed or do some OS delay to switch to > other tasks. > > My propose is that

Re: [lwip-users] altcp protocol specification

2020-08-20 Thread goldsi...@gmx.de
Am 20.08.2020 um 11:32 schrieb Dr. Bas Wijnen: > Hi, > > For a piece of hardware, I need to use altcp to communicate with it from a > regular computer (running GNU/Linux; not something embedded). On the web the > only references I found to altcp are about lwIP. So I have two questions: > > Is it

Re: [lwip-users] Is it possible to use LwIP Netconn API on an RTOS without semaphore and mutex supported?

2020-07-28 Thread goldsi...@gmx.de
Am 27.07.2020 um 14:15 schrieb yanhc519 via lwip-users: > Hi all. > > I have an RTOS which is a little strange. The RTOS can handle > multi-tasking and message queues, but can not handle semaphore and mutex. > I want to use the Netconn API on my RTOS. Is it possible? Honestly, I don't know. But I

Re: [lwip-users] Compilation error encountered when using memory pool (MEM USE POOLS=1)

2020-07-01 Thread goldsi...@gmx.de
quot;preprocessor magic". The parts in memp.h and memp_priv.h with "MEMP_POOL_##size" (and similar) give you the required defines. Regards, Simon > > Thanks again, > York > > On 7/1/2020 20:23,goldsi...@gmx.de > <mailto:goldsi...@gmx.de> wrote: > &

Re: [lwip-users] Compilation error encountered when using memory pool (MEM USE POOLS=1)

2020-07-01 Thread goldsi...@gmx.de
Am 01.07.2020 um 12:34 schrieb yanhc519 via lwip-users: > Hi all, > > I want to use the memory pool in lwip. I define the following macros to > 1 to enable memory pool. > #define MEM_USE_POOLS1 > #define MEMP_USE_CUSTOM_POOLS1 > Also, I add a lwippool.h file to my project and define the following:

Re: [lwip-users] minor lwip issue(s) with patch + a build question

2020-05-05 Thread goldsi...@gmx.de
Am 05.05.2020 um 15:54 schrieb Jörg F. Wittenberger: > Hi all, > > (New to the list, is it OK to post proposed patches here?) It's better to post them to our bugtracker at savannah, patches tend to get lost here on the list, as often, time is short for lwIP developers :-( > > Appologies: I did no

Re: [lwip-users] Elevating existing connection to TLS

2020-04-29 Thread goldsi...@gmx.de
Am 29.04.2020 um 21:44 schrieb Josh McAtee: > Here is my understanding so far. > > With an existing, open connection, I can call 'altcp_tls_wrap'. This > seems to work fine. > > Then when I attempt to write data after that, it fails because > 'altcp_mbedtls_write' checks if the handshake is done, w

Re: [lwip-users] Elevating existing connection to TLS

2020-04-28 Thread goldsi...@gmx.de
Am 29.04.2020 um 01:09 schrieb Josh McAtee: > Sorry if I wasn't being clear. > Take the existing SMTP app, for example - it uses the altcp layer already. > But, the connection can only be made either with or without TLS from the > beginning of the connection. > I want to implement STARTTLS, in whic

Re: [lwip-users] Elevating existing connection to TLS

2020-04-28 Thread goldsi...@gmx.de
Am 28.04.2020 um 17:55 schrieb Josh McAtee: > Hello! > > I was wondering if there was a "simple" way to take an existing TCP > connection and make it TLS. I'm not sure I understand what you want? > For example, STARTTLS in SMTP starts with a non-encrypted connection, > then switches to encrypted

Re: [lwip-users] httpd fails due to LWIP_HTTPD_REQ_BUFSIZE

2020-04-25 Thread goldsi...@gmx.de
Am 24.04.2020 um 21:02 schrieb hondgm--- via lwip-users: > I'm using lwip 2.0.3 with httpd and when submitting one of my webpage > forms (using "type="submit"") the web browser complains lwip/httpd > didn't send any data.  > > Upon further investigation, the issue is in httpd.c: > > #if LWIP_HTTPD_

Re: [lwip-users] How to send to netconn socket while waiting for input?

2020-04-25 Thread goldsi...@gmx.de
Am 25.04.2020 um 06:04 schrieb ddbug: > I have a simple netconn socket server on freeRTOS. > It reads request from client and sends reply in same thread. This works > fine. > > Now I have requirement to send to the same client socket from other thread, > while the server thread waits on netconn_rec

Re: [lwip-users] Possible bug? Getting 200 Status code instead of 404, when using LWIP_HTTPD_DYNAMIC_HEADER

2020-04-21 Thread goldsi...@gmx.de
Am 21.04.2020 um 19:57 schrieb Marco Lazzaroni: > tl;dr > maybe in get_http_headers() the line "if (strstr(uri, "404.") == uri)" > needs to be changed to "if (strstr(uri, "/404.") == uri)" That might indeed be true... > > First of all thank you very much for the excellent work! > Before filing a

Re: [lwip-users] Radius Client using LwIP

2020-04-19 Thread goldsi...@gmx.de
Am 18.04.2020 um 07:54 schrieb Yasir Arafat: > Hello everyone, > > I need to implement 'Radius Clent (NAS)' in my project. Can anyone have any > idea how to do this. I found FreeRadius stack but it don't seems to work on > LwIP. And yes I am already running Https server on my board. Why wouldn't t

Re: [lwip-users] Very first thing I should see on network??

2020-04-19 Thread goldsi...@gmx.de
Am 18.04.2020 um 22:31 schrieb Dave Nadler: > Solved my problem (two warring CubeMX fixes to fix a deadlock created - > another deadlock)... > Still interested for my education - what should be the very first thing > I see from lwip on the network? You'd normally see ARP or DHCP requests first, de

Re: [lwip-users] Using tcp_write() outside tcp_recv callback

2020-04-09 Thread goldsi...@gmx.de
Am 08.04.2020 um 00:08 schrieb Jamie: > Just following up on this, as I haven't had time to continue working on it > until today. To provide more context, I'll provide some code snippets and > commentary around the code. I don't imagine I'm too far off getting it > working, as I've not changed too

Re: [lwip-users] bind with link down

2020-04-03 Thread goldsi...@gmx.de
Am 03.04.2020 um 15:42 schrieb Massimiliano Cialdi: > On Fri, Apr 3, 2020 at 12:55 PM goldsi...@gmx.de wrote: >>> And, if I understand correctly, when the ip is static I don't even >>> need to set the link down when cable is unconnected. >> No, you should still set

Re: [lwip-users] bind with link down

2020-04-03 Thread goldsi...@gmx.de
Am 03.04.2020 um 12:46 schrieb Massimiliano Cialdi: > On Fri, Apr 3, 2020 at 1:28 AM Sylvain Rochet wrote: >> netif_set_up() and netif_set_down() is a software switch telling the >> lwIP stack if you want the interface to be active or silent. If you >> don't need to disable an interface at runtime

Re: [lwip-users] Do not fragment (DF) in a UDP transmission.

2020-04-02 Thread goldsi...@gmx.de
Am 31.03.2020 um 02:13 schrieb Roger Cover: > Greetings Simon, > > I have implemented this by adding a flag bit for the struct pbuf field > "flags". There were two unused bits, so I named one PBUF_FLAG_DF. I then > altered ip.c to use this flag to decide whether to set the DF flag in the IP > pa

Re: [lwip-users] bind with link down

2020-04-02 Thread goldsi...@gmx.de
Am 31.03.2020 um 22:47 schrieb Massimiliano Cialdi: > On Tue, Mar 31, 2020 at 10:11 PM Simon Goldschmidt wrote: >> You're mixing link state with admin state here. That might work, but >> might not work in some situations. > It's not so clear to me. > Which pattern should I adopt to keep the link s

Re: [lwip-users] Network mapped drive

2020-04-02 Thread goldsi...@gmx.de
Am 31.03.2020 um 23:48 schrieb Trampas Stern: > Has anyone used LWIP to create a mass storage device that can mapped as > a drive on a PC?  That is a samba or other type of server? I'm not aware of that. I assume you mean implement one of the SMB protocols? No doubt it could be done, but I guess i

Re: [lwip-users] socket-based HTTP server

2020-04-02 Thread goldsi...@gmx.de
Am 01.04.2020 um 09:40 schrieb Marco Lazzaroni: > Hi all, > sorry for such a basic question. I've developed an application based on > the raw API, then I had to integrate an RTOS and I had to switch to a > socket based API. You can continue using the callback API when using an OS, you just have to

Re: [lwip-users] Socket blocket in read() until disconnection if first received data is lower than 11 bytes

2020-04-02 Thread goldsi...@gmx.de
Am 01.04.2020 um 20:15 schrieb sarp: > SOLVED: > > Problem was port specific. Port was 80, I've changed it and thankfully my > rubbish 2 days are justified now. I'm not sure how your problem would depend on the port. But I'm glad you fixed it. Regards, Simon _

Re: [lwip-users] lwip reply delayed after long communication idle time

2020-04-02 Thread goldsi...@gmx.de
Am 02.04.2020 um 10:29 schrieb Jochen Strohbeck: > Guess that ARP_MAXAGE which is set to 20 minutes explains the first part of > my question. Yes. > And scrolling thru the code I guess that there is a way to configure lwip in > such a way that the IPs are not removed from the cache? You can add

Re: [lwip-users] How to build LWIP test on linux

2020-03-18 Thread goldsi...@gmx.de
Am 19.03.2020 um 03:47 schrieb Sachin Gole: > > Thanks for comments. Google test framework has better control on test > execution. Well, I know. I'm using it elsewhere, too. I'm just too lazy and a bit hesistant to switch test frameworks right now. Regards, Simon

Re: [lwip-users] How to build LWIP test on linux

2020-03-18 Thread goldsi...@gmx.de
Am 18.03.2020 um 11:43 schrieb Sachin Gole: > Hi David, > > Thanks for your appropriate help, now I am able to build and run lwip > unit test. > > > sachin@sachin-VirtualBox:~/Downloads/contrib-2.1.0/ports/unix/check/build$ > ./lwip_unittests > Running suite(s): IPv4 >  IPv6 >  UDP >  TCP >  TCP_OO

Re: [lwip-users] How to build LWIP test on linux

2020-03-18 Thread goldsi...@gmx.de
Am 18.03.2020 um 09:26 schrieb David Lockyer: > Hi Sachin, > > I guess if you are new to software development this may seem confusing, > but the output does spell out what is wrong, looking at your output logs: > > CMake Error at CMakeLists.txt:30 (include): >   include could not find load file: >

Re: [lwip-users] How to build LWIP test on linux

2020-03-17 Thread goldsi...@gmx.de
Am 17.03.2020 um 13:19 schrieb Sachin Gole: > Provided commands doesn't work, Looks like needs to be updated in wiki > pages or README. Wiki is not from us. Where did you pull your steps from? Why don't you answer to my latest mail where I tried to help you? I'm getting a bit tired of this by now.

Re: [lwip-users] RAW TCP client gets terminated

2020-03-16 Thread goldsi...@gmx.de
Am 16.03.2020 um 17:42 schrieb Jonas97: > Hi Hugh, > > I did not find any specific documentation on the way sys_now() should be > implemented. For things like this, improved documentation is always welcome. Plus it should be easy to provide it for everyone... > After debugging I noticed that sys_

Re: [lwip-users] NO_SYS and socket

2020-03-16 Thread goldsi...@gmx.de
Am 16.03.2020 um 12:34 schrieb Fw89: > Hi, > I'm trying to implement an open62541 opc ua server on my mcu and i need to > use socket, but when i compile i get this error > > #if ((LWIP_SOCKET || LWIP_NETCONN) && (NO_SYS==1)) > #error "If you want to use Sequential API, you have to define NO_SYS=0

Re: [lwip-users] How to build LWIP test on linux

2020-03-15 Thread goldsi...@gmx.de
Am 15.03.2020 um 17:26 schrieb Sachin Gole: > > Using lwip-2.1.2 version, below steps doesn't get compiled with these steps. OK, so it seems I'm in a good mood today, so... What in my mail from 2 days ago have you missed? You complained about not finding a 'dev' directory in lwIP but haven't trie

Re: [lwip-users] How to build LWIP test on linux

2020-03-13 Thread goldsi...@gmx.de
Am 12.03.2020 um 07:35 schrieb Sachin Gole: > Package : lwip_2.1.2.orig source folder > Building test on Linux with following commands > > cmake CMakeLists.txt -DCMAKE_C_COMPILER="/usr/bin/gcc" > -DCMAKE_CXX_COMPILER="/usr/bin/g++" > > How to compile further to get unit test ? My bash history: cd

Re: [lwip-users] SNMP

2020-03-13 Thread goldsi...@gmx.de
Am 12.03.2020 um 21:51 schrieb Trampas Stern: > I am using the latest lwip from git and noticed that my SNMP stopped > working, below is by general configuration, does anyone see an issue?  > > If I do SNMP walk it get the generic data but not the private mib... Which version were you using before

Re: [lwip-users] Core locked checking when using the SNMP netconn implementation

2020-03-13 Thread goldsi...@gmx.de
Am 13.03.2020 um 09:12 schrieb Harrold Spier: > > I wonder whether there is something wrong with the current SNMP app > implementation. > As long as all SNMP API functions are called by the same (SNMP) thread, > there should be no problem. > In my opinion, only checking for core locked is not valid

Re: [lwip-users] Do not fragment (DF) in a UDP transmission.

2020-03-10 Thread goldsi...@gmx.de
ng > lwIP for some time, but I have not paid that much attention to its interior. > It has always just worked for me, straight out of the box. > > Regards, > Roger W. Cover > > From: lwip-users on > behalf of goldsi...@gmx.de &

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

2020-03-09 Thread goldsi...@gmx.de
Am 09.03.2020 um 09:28 schrieb hamidkavianathar: > hi > I want to develop mqtt and lwm2m applications with lwip. I want to secure > them with mbedTLS. I am using a stm32 MCU. could you please tell my I should > do that? > thanks. The easiest way is to unpack mbedtls into a directory 'mbedtls' next

Re: [lwip-users] 802.1D bridge

2020-03-07 Thread goldsi...@gmx.de
Am 27.02.2020 um 22:05 schrieb SimonW: > Yup - bridge is what i want. I want to form a number of IoT nodes that are on > a mixture of 10/100 wired ethernet and b/g/n/ac WiFi into a single sub-net. OK. So have you just tested it? It's really not that hard. Just netif_add() your port netifs without

Re: [lwip-users] Do not fragment (DF) in a UDP transmission.

2020-03-07 Thread goldsi...@gmx.de
Am 06.03.2020 um 21:37 schrieb Roger Cover: > Greetings, > > I am writing a video transmitter. The protocol I am using requires that a > "test packet" has its do not fragment bit set. This is used to determine the > maximum usable MTU of the intervening network nodes. > > I would like to know the

Re: [lwip-users] "mem_trim can only shrink memory"

2020-03-05 Thread goldsi...@gmx.de
Am 24.02.2020 um 15:56 schrieb supergaute: > I'm using lwip STABLE_2_1_2, and I get an assertion: "mem_trim can only > shrink memory" > I'm using regular internal memory heap (defined by MEM_SIZE) > I can reproduce it within half an hour, but I'm not yet able identify what > can cause this. > > Wha

Re: [lwip-users] Compile issue with altcp_tls_mbedtls.c

2020-03-05 Thread goldsi...@gmx.de
Am 28.02.2020 um 23:59 schrieb Klaus Breining: > Hello, > > seems something went wrong with this file: In function > altcp_tls_free_config(...) there are calls to mbedtls_entropy_free and > mbedtls_ctr_drbg_free with arguments that don't exist: altcp_tls_config > has no members entropy or ctr_drbg.

Re: [lwip-users] Limit on number of TCP connections

2020-02-29 Thread goldsi...@gmx.de
Am 27.02.2020 um 16:25 schrieb Alex H: > Hello, > > I stumbled upon a limitation in the MEMP_NUM_TCP_PCB setting, where the > maximum is an unsigned short. I was wondering if there is a simple way > to boost this limit, as I get the following warning currently and cannot > connect more than 16960 c

Re: [lwip-users] ARP request gets a response but no ICMP reply

2020-02-29 Thread goldsi...@gmx.de
Am 27.02.2020 um 23:28 schrieb Parlapalli, Nikhil: > Hi, > >   > > I ported the lwip 1.4.1 to Aurix Tricore processor and wanted to test by > pinging from a linux machine. I can confirm with both a debugger and the > ARP response that the driver works fine. However, I cannot get the ICMP > response

Re: [lwip-users] https server woes.

2020-02-22 Thread goldsi...@gmx.de
Am 21.02.2020 um 21:25 schrieb Trampas Stern: > Simon, sorry about that I assumed since you asked I would send the file.  > > One my continual https problem, I see no end in sight the best I can > tell at the moment is that I am getting packets which are not being > processed.  That is I am getting

Re: [lwip-users] https server woes.

2020-02-20 Thread goldsi...@gmx.de
Also, please don't send empty mails with just an attachment. What are we supposed to do with that attachment? Describe what's in it. What did you do, which stations do we see, what do you think is happening, etc. You're trying to get help. Do as best as you can to make it easy for people to help

Re: [lwip-users] lwip-1.3.2 update to lwip-2.1.2

2020-02-19 Thread goldsi...@gmx.de
Am 17.02.2020 um 12:33 schrieb Adam Fullerton: > Hi, > > I am in the process of upgrading a remote monitoring system that used > lwip-1.3.2 to 2.1.2. It all went very well but I am having issues with > some of the options. The application uses the sockets API exclusively. > In lwipopts.h I have the

Re: [lwip-users] mbedtls

2020-02-17 Thread goldsi...@gmx.de
Am 17.02.2020 um 18:09 schrieb Trampas Stern: > Does anyone know how on an embedded platform to setup the entropy using > mbedtls? I did that, but it's been a while, and I don't remember from the top of my head. I think you *can* use a string entropy source and implement that correctly or you can

Re: [lwip-users] DHCP problems

2020-02-15 Thread goldsi...@gmx.de
Am 14.02.2020 um 19:53 schrieb Trampas Stern: > OK walking through the code it appears somewhere along the way the ACD > module was added and it looks like it needs to have it's > timer periodically called.  > > I added it to the timer list and seem to work now.  I would have figured > that the AC

Re: [lwip-users] IP forwarding to/from PPP working for one netif, but not another

2020-02-11 Thread goldsi...@gmx.de
Am 11.02.2020 um 10:20 schrieb Andrew Pullin: > [..] > > The part that I am stuck on presently is that Host2 has no knowledge of > how to route packets from PPP out to the WAN, say, 8.8.8.8. > Between ip4_forward, IP_FORWARD, ip4_route_src, LWIP_HOOK_IP4_ROUTE, > LWIP_HOOK_IP4_ROUTE_SRC, and the

Re: [lwip-users] Unable to connect to HTTP server using PPP

2020-02-06 Thread goldsi...@gmx.de
Am 03.02.2020 um 19:39 schrieb Sylvain Rochet: > Hi Renato, > > On Mon, Feb 03, 2020 at 03:26:54PM -0300, Renato Barresi wrote: >> >> #define VJ_SUPPORT 1 > > Could you try disabling VJ support ? It is known to be broken. If it's known to be broken, should we default it to 0

Re: [lwip-users] IP forwarding to/from PPP working for one netif, but not another

2020-01-30 Thread goldsi...@gmx.de
Am 30.01.2020 um 22:02 schrieb Sylvain Rochet: Hi Simon, On Thu, Jan 30, 2020 at 09:31:11PM +0100, goldsi...@gmx.de wrote: Am 30.01.2020 um 20:42 schrieb Sylvain Rochet: On Wed, Jan 29, 2020 at 08:15:11PM -0800, Andrew Pullin wrote: Host2:     - Micontroller device, ESP32     - has both

Re: [lwip-users] IP forwarding to/from PPP working for one netif, but not another

2020-01-30 Thread goldsi...@gmx.de
Am 30.01.2020 um 20:42 schrieb Sylvain Rochet: Hi Andrew, On Wed, Jan 29, 2020 at 08:15:11PM -0800, Andrew Pullin wrote: Uh-oh, I think I did a poor job of explaining it. Although you seem to have surmised most of it. The full rundown: Host1:     - Micontroller device with no MAC or PHY   

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

2020-01-29 Thread goldsi...@gmx.de
Am 29.01.2020 um 16:37 schrieb matteo.c...@alice.it: Dear all, I would like to ask some questions about the thread-safe functions. According the http://www.nongnu.org/lwip/2_0_x/pitfalls.html page, in the OS mode, all the callback-style APIs function must only be called from the TCPIP thread. I

Re: [lwip-users] LwIP PCBs reset

2020-01-13 Thread goldsi...@gmx.de
Am 13.01.2020 um 09:27 schrieb Amena El Homsi: Hi, thanks for your reply, please check my answers below. On Thu, Jan 9, 2020 at 6:35 PM goldsimon mailto:goldsi...@gmx.de>> wrote: Amena El Homsi wrote: >Hello, > >After disconnecting from an AP I have to reset the PCBs pools.

Re: [lwip-users] TCP Receive Timeout

2020-01-10 Thread goldsi...@gmx.de
Am 19.12.2019 um 06:44 schrieb Yacob Hassidim: Hello all, I use LwIP version 2.0.3. I want to define timeout for TCP receive. LwIP allows to define the following options: - LWIP_TCPIP_TIMEOUT Have you found out by now that LWIP_TCPIP_TIMEOUT has nothing to do with receive timeouts? When us

Re: [lwip-users] http_client.c - heap memory overflow

2020-01-10 Thread goldsi...@gmx.de
Am 05.01.2020 um 23:41 schrieb Jaroslav: Hello, I am using LWIP 2.1.2 + FreeRTOS 10 on board TM4C1294XL. I am trying to push measured data to a web server using http_client.c. I mannaged to make it working based on example in https://lists.nongnu.org/archive/html/lwip-users/2019-07/msg1. How

Re: [lwip-users] Lwip http server example raw api

2020-01-08 Thread goldsi...@gmx.de
Am 08.01.2020 um 01:16 schrieb grandsuri--- via lwip-users: I am trying to compile the httpd.c and fs.c in the examples directory on UBUNTU 14. The main function calls lwip_init() and httpd_init() and then waits in indefinite loop. However I am not seeing any port been listening using netstat com

Re: [lwip-users] fragmentation failure with stm32 if length > 1704

2019-12-11 Thread goldsi...@gmx.de
Am 11.12.2019 um 18:55 schrieb Ranran: Hello, I use a simple echo udp example for STM32 Hal , with stm32h743 EVAL. I encounter exception (it shows as unaligned exception, but the address is not anything we allocated. This failure happen if I increase the packet size from 1704 to 1744 ! tcip_th

Re: [lwip-users] Issues with netconn callbacks

2019-12-03 Thread goldsi...@gmx.de
Am 03.12.2019 um 01:05 schrieb Davide Bettio: Hello, Il giorno lun 2 dic 2019 alle ore 21:26 goldsi...@gmx.de <mailto:goldsi...@gmx.de> mailto:goldsi...@gmx.de>> ha scritto: Am 02.12.2019 um 20:39 schrieb Davide Bettio: So you're running the stock lwIP that comes wit

Re: [lwip-users] Issues with netconn callbacks

2019-12-03 Thread goldsi...@gmx.de
Am 03.12.2019 um 18:27 schrieb Davide Bettio: Hello, Il giorno lun 2 dic 2019 alle ore 21:26 goldsi...@gmx.de <mailto:goldsi...@gmx.de> mailto:goldsi...@gmx.de>> ha scritto: So you're running the stock lwIP that comes with ESP32? If so, I don't know how "va

Re: [lwip-users] Issues with netconn callbacks

2019-12-02 Thread goldsi...@gmx.de
Am 02.12.2019 um 20:39 schrieb Davide Bettio: Hello, I'm the author of AtomVM (https://github.com/bettio/AtomVM) and we are using lwip on ESP32. So you're running the stock lwIP that comes with ESP32? If so, I don't know how "vanilla" this is and how they keep their copy of lwIP up to date...

Re: [lwip-users] usage of ethernetif_input in a single-threaded environment with NO_SYS=0

2019-11-27 Thread goldsi...@gmx.de
Am 25.11.2019 um 21:41 schrieb samyuktar: Hello, I am using a CC1352P1 TI launchpad interfaced with an ENC28J60 SPI-Ethernet bridge. I saw the driver for the ethernet interface and have inserted my functions into the interface. I have NO_SYS = 0 and am using threads in my environment. One of the

Re: [lwip-users] autoip_remove_struct()

2019-11-21 Thread goldsi...@gmx.de
Am 20.11.2019 um 09:41 schrieb Dirk Ziegelmeier: no I've just pushed a fix. Regards, Simon Ciao Dirk On Wed, Nov 20, 2019 at 9:41 AM Amena El Homsi mailto:amena.elho...@gmail.com>> wrote: Thanks.. Is there a new lwip version that fixes this bug? On Wed, Nov 20, 2019 at 10:33 AM

Re: [lwip-users] lwip-users Digest, Vol 195, Issue 15

2019-11-14 Thread goldsi...@gmx.de
Am 14.11.2019 um 20:49 schrieb Lee: Hello I hope I am replying to this correctly or some one will tell me how. No, you're not replying correctly: you have subscribed to receive daily digests. Please don't respond to such a digest since that will break up the email thread sorting algorithms and

Re: [lwip-users] lwIP TCP/IP as the default TCP/IP stack on

2019-11-09 Thread goldsi...@gmx.de
Am 09.11.2019 um 22:33 schrieb 2...@bol.com.br: If there is no easy way of replacing the entire default Linux kernel TCP/IP stack, then how are we supposed to use lwIP TCP/IP stack in our applications ? lwIP is mainly an IP stack for embedded systems, not a replacement for the stack included in

Re: [lwip-users] PPPos does not detect modem disconnection

2019-11-07 Thread goldsi...@gmx.de
Am 07.11.2019 um 17:49 schrieb vinimac: Hi all, I am simulating a signal loss by removing the antenna from the modem and it keep sending packets to a server using TCP socket. After remove the antenna, the function send wont fail() and error number is not set too. I was expecting TCP layer to de

Re: [lwip-users] link down handling in dhcp v1.4.1

2019-11-06 Thread goldsi...@gmx.de
Am 06.11.2019 um 15:16 schrieb vinu: Hi all, I have come across an issue related to DHCP and link status. The device does not restart the dhcp negotiation whenever the link goes down and up automatically. Note that I have an interrupt callback for PHY link up/down. How should the dhcp be handl

Re: [lwip-users] MEM_USE_POOLS issue

2019-11-05 Thread goldsi...@gmx.de
Am 05.11.2019 um 08:59 schrieb mtimm: Hello, I have just successfully accomplished my first try with LwIP stack (v. 2.1.2). This was simple app using UDP and dynamic allocation (PBUF_RAM). Now I would like to switch into static allocation (PBUF_POOL). According to instructions I found on wiki pa

Re: [lwip-users] Setting the IP_DF flag on my UDP socket not working

2019-11-04 Thread goldsi...@gmx.de
Am 29.10.2019 um 01:10 schrieb jill_adelst...@selinc.com: Hello, I am working on an application where I am streaming data over UDP using lwip sendto().I am trying to set the don't fragment flag on my UDP socket as follows: int enable = 1; setsockopt(sock, SOL_SOCKET, IP_DF, reinterpret_cast(&ena

Re: [lwip-users] Help with netconn API for TCP

2019-11-04 Thread goldsi...@gmx.de
Am 31.10.2019 um 18:25 schrieb chandrahas: Hi, Could someone please point me to a good example or function sequence for using netconn API to implement a TCP Server? For my application, I need to create interfaces for TCP Server to configure the server and also provide call backs to application

Re: [lwip-users] One active TCP connection at a time

2019-11-04 Thread goldsi...@gmx.de
Am 31.10.2019 um 20:59 schrieb Jeffrey Nichols: Replying to myself here. This did indeed cause issues. Calling tcp_close() on the listening pcb inside the tcp_accept callback I occasionally get a deadlock inside tcp_remove_listener(), where the linked list is circular: pcb->next is equal to pcb.

Re: [lwip-users] ethernet external loopback test using lwip

2019-10-25 Thread goldsi...@gmx.de
Am 25.10.2019 um 15:17 schrieb vinu: Hi all, I need to run an external loopback test (using an Ethernet loopback cable) using LwIP 1.4.2 stack as part of board testing. Please note that i need the data to loop through the Ethernet cable and come back to the device. Is this possible using netconn

Re: [lwip-users] Where to call mdns_resp_add_netif?

2019-10-25 Thread goldsi...@gmx.de
Am 25.10.2019 um 01:19 schrieb Dave Nadler: Hi - Hoping for a bit of help using MDNS. Am I correct in understanding I need to register the IPaddress/netif with MDNS as below? Is there a convenient hook to do this when DHCP receives an IP address? Thanks in advance for any help, You can attach a

Re: [lwip-users] SNMP for lwip 1.4.1

2019-10-24 Thread goldsi...@gmx.de
Am 24.10.2019 um 20:35 schrieb Trampas Stern: I am with you on the old software! I would rather find new bugs than old bugs that have been fixed. I start porting the latest lwip version. OK, please report back anything that's missing in the UPGRADING document. Thanks, Simon __

Re: [lwip-users] memp_malloc: out of memory in pool TCP_PCB

2019-10-24 Thread goldsi...@gmx.de
Am 24.10.2019 um 18:57 schrieb Mário Luzeiro: Hello all, I'm running a HTTPD over ALTPCB / MBEDTLS It all works ok until I start to make lots os http requests (eg open multiple pages) No matter how much I increase MEMP_NUM_TCP_PCB, after a while, I will get this error: memp_malloc: out of mem

Re: [lwip-users] tcp_write: too much data

2019-10-24 Thread goldsi...@gmx.de
Am 24.10.2019 um 19:04 schrieb Mário Luzeiro: Hi all I'm getting this error: tcp_write: too much data (len=29 > snd_buf=0) sometimes if I tune some of parameters and on some cases the len and snd_buf value is different. What does it mean and how can I fix it? It means you try to send more t

Re: [lwip-users] SNMP for lwip 1.4.1

2019-10-24 Thread goldsi...@gmx.de
ding so we can see what's missing than digging in old versions. Especially when it comes to security of network devices, don't use old versions! Regards, Simon Trampas On Wed, Oct 23, 2019 at 5:55 PM goldsi...@gmx.de <mailto:goldsi...@gmx.de> mailto:goldsi...@gmx.de>> wr

Re: [lwip-users] SNMP for lwip 1.4.1

2019-10-23 Thread goldsi...@gmx.de
Am 23.10.2019 um 14:04 schrieb Trampas Stern: I was looking for some documentation on how configure custom OID for SNMP using lwip 1.4.1, does anyone happen to have an example? No, sorry, SNMP has quite changed since 1.4.1. We do have examples for private MIBs (if that's what you mean) plus we

Re: [lwip-users] https post_auto_wnd not work

2019-10-22 Thread goldsi...@gmx.de
Am 22.10.2019 um 14:48 schrieb tomek wilkxt: Hi I have set: #define LWIP_HTTPD_POST_MANUAL_WND 1 In normal http: if *post_auto_wnd=1 its work ok, i can read large file. if *post_auto_wnd=0, not work (I see TCP ZeroWindow flags). Well, these zero windows are expected, no? You'll have to update

Re: [lwip-users] Send Multiple

2019-10-08 Thread goldsi...@gmx.de
Am 07.10.2019 um 22:20 schrieb mikes603: How can I get LWIP to send multiple TCP-segments before each client ACK? An ACK for each part of the PDU, as seen below, seems very slow. It's not like that normally. There's probably something wro

Re: [lwip-users] POST message Length Limitation

2019-10-08 Thread goldsi...@gmx.de
Am 08.10.2019 um 16:17 schrieb Siva Munnaluri: Reposting as my internet got disconnected, not sure the previous Post is posted or not. The first one made it, no need to double-send... Hi LWIP Team, We are using http://git.savannah.nongnu.org/cgit/lwip.git/tree/contrib/examples/httpd/post_exa

Re: [lwip-users] MEMP_NUM_TCP_PCB effect on TLS and HTTPD

2019-10-08 Thread goldsi...@gmx.de
Am 08.10.2019 um 13:15 schrieb Mário Luzeiro: Hello all, I have a HTTPD via mbedTLS all is going OK except I have issues with multiple connections from browser requests (browsers send multiple connection at same time to faster load the website). Sometimes it cannot make the connection and can

Re: [lwip-users] HTTP keep alive SSI

2019-09-06 Thread goldsi...@gmx.de
Am 06.09.2019 um 19:39 schrieb tomek wilkxt: You could use a form of HTTP chunked encoding, You could explain more precisely ? Not in detail, that would get too long here. Just google for "http chunked encoding". Basically, you don't send a content length for the whole response in advanc

Re: [lwip-users] HTTP keep alive SSI

2019-09-06 Thread goldsi...@gmx.de
Am 06.09.2019 um 19:05 schrieb tomek wilkxt: Hi Tomek, are you aware of email threads and that you just hijacked another thread? Never use the "reply" feature unless actually responding to a mail! ok, my mistake And please, send text-only mails when sending mails to mailing

Re: [lwip-users] Running perl makefsdata

2019-08-14 Thread goldsi...@gmx.de
Am 14.08.2019 um 22:17 schrieb Sel: Hello, Do you know if I have to move makefsdata perl script from its location to run? When I try 'perl makefsdata' at the command line, I get the following back - FIND: Parameter format not correct Honestly, I don't know. The perl version of makefsdata is (

Re: [lwip-users] `MEMP_NUM_PPP_PCB' undeclared here (not in a function)

2019-08-11 Thread goldsi...@gmx.de
Hi, first: why did you send this three times? Am 11.08.2019 um 09:15 schrieb markus.for...@gmx.ch: Hello I updated lwip from 2.0.3 to 2.1.2 and get the following build error without any modifications: memp_std.h(102): `MEMP_NUM_PPP_PCB' undeclared here (not in a function) memp_std.h(102): size

Re: [lwip-users] DNS using Wired interface and PPP

2019-08-11 Thread goldsi...@gmx.de
Am 11.08.2019 um 14:55 schrieb Sergey A. Borshch: Hello everybody. My system has two network interfaces: main is wired Ethernet and backup is cellular modem using PPPoS. I want to choose which interface to use by netifapi_netif_set_default(). The problem I expect that both interfaces got DNS se

Re: [lwip-users] HTTP with netconn

2019-08-08 Thread goldsi...@gmx.de
Am 07.08.2019 um 11:15 schrieb Erwan: Hi all, I'm trying to use the httpserver_netconn from the contrib repo. I can receive HTTP request and respond back but the response is not right, there is only data, no IP header ... Do you have an idea of what is happening ? Well, the httpserver_netconn

Re: [lwip-users] HTTPS support in lwip

2019-08-06 Thread goldsi...@gmx.de
Am 05.08.2019 um 15:52 schrieb Siva Munnaluri: We want to develop secure embedded WebServer in one of our product. Our product is based on STM32F7 controller and we are using Atollic Truestudio as IDE. Our current product firmware is without RTOS. Can you please share any sample Secure Server ex

Re: [lwip-users] Reliable NAT tor lwIP

2019-08-03 Thread goldsi...@gmx.de
Am 03.08.2019 um 00:48 schrieb mav: 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. Any suggestions? Less than a month ago, Andrea Berlingieri said "lwipv6" included NAT and poin

Re: [lwip-users] Confused - Should I loop on pbufs in my receive callback?

2019-08-02 Thread goldsi...@gmx.de
Am 02.08.2019 um 17:34 schrieb lauziepi: Hello, thanks for the reply! Regarding question #2, would you (or someone else) be kind enough to tell me how to verify if there is more than one packet to handle? What should be my looping condition(s)? This is a mailing list. You're using a forum as a

Re: [lwip-users] Confused - Should I loop on pbufs in my receive callback?

2019-08-02 Thread goldsi...@gmx.de
Am 02.08.2019 um 20:29 schrieb goldsi...@gmx.de: Am 02.08.2019 um 17:34 schrieb lauziepi: Hello, thanks for the reply! Regarding question #2, would you (or someone else) be kind enough to tell me how to verify if there is more than one packet to handle? What should be my looping condition(s

Re: [lwip-users] Confused - Should I loop on pbufs in my receive callback?

2019-08-01 Thread goldsi...@gmx.de
Am 30.07.2019 um 03:37 schrieb lauziepi: Hello, I am seeing very slow response times from my device running lwip after awhile. I have tried various settings as recommended here and elsewhere, and the issue does not appear to be linked to an incorrect lwip configuration. When searching around, I

Re: [lwip-users] Raw Ethernet II frames for PTP

2019-07-29 Thread goldsi...@gmx.de
Am 26.07.2019 um 21:06 schrieb Nathan Hartman: On Thu, Jul 25, 2019 at 4:31 PM Dirk Ziegelmeier mailto:d...@ziegelmeier.net>> wrote: What do you need an IP stack for when you want to process raw ethernet frames??? My guess is that you need it because the system does other things with t

Re: [lwip-users] Raw Ethernet II frames for PTP

2019-07-25 Thread goldsi...@gmx.de
Am 25.07.2019 um 21:22 schrieb Nathan Immerman via lwip-users: Hi all, I am implementing a software Precision Time Protocol (PTP) implementation which requires reading Raw Ethernet II frames, no TCP/IP/UDP. An example packet is copied below. Is this possible using lwIP? Yes and no. There's no

Re: [lwip-users] Setting NTP server address according to some conditions

2019-07-17 Thread goldsi...@gmx.de
Am 19.04.2019 um 09:33 schrieb simeon.trifo...@amk-drives.bg: Hi! I’m using LWIP 2.0.3. In my code I have a static  NTP server address. But this address can be invalid or valid (depending what the user will write in it). If DHCP is enabled I want to reach the following behavior: * If the NTP

<    1   2   3   4   5   6   7   8   9   10   >