[lwip-users] DHCP.h need to include "lwip/prot/dhcp.h" ?

2017-09-08 Thread antonio
Dear All, I found a small problem, while porting lwip from 1.4.1 to 2.0.2. I have an application that requires including dhcp.h, however, since the DHCP state messages are in prot/dhcp.h I got a compile error.. " error: 'DHCP_STATE_BOUND' undeclared (first use in this function)

[lwip-users] Replacing pbuf with

2017-08-31 Thread antonio
if there is someone who have attempted it or done something similar. Thanks in advance. Best, /Antonio -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip

[lwip-users] LWIP_1.4.1 DHCP not working.

2017-08-29 Thread antonio
Dear All, I have a basic scenario where my MBEDTLS application uses LWIP sockets. So far I have used static IP address with my mbedtls application and it worked well, and today, I wanted to use DCHP to replace the static configuration with dynamic address config and I do not get any address

[lwip-users] Help Problem with Lwip-2.0.3 TCP Connect.

2017-11-28 Thread antonio
Hi All, I am connecting to api.ipify.org which returns my IP. (using HTTPS application enabled by MbedTLS). I am having an annoying problem with my port. More often the TCP connection establishment does not finish, my client remains in TCP SYN and re-transmits it for 6X before the connection

Re: [lwip-users] Problem with TCP Connect.

2017-11-24 Thread antonio
Sorry for that, I now attach another file I just captured. Thanks in advance. Lwip203_TCPConnectProblem.pcap -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html

[lwip-users] Problem with TCP Connect.

2017-11-23 Thread antonio
Hi All, I am using LWIP_2.0.3 with mbedtls. The application is basic, just connects to the server and returns the my IP. It runs fine as long as I connect to my own server (provided with mbedtls). However, when I try to connect to an external server (e.g: api.ipify.org , www.myip.com),

Re: [lwip-users] LWIP 2.0.3 strange behavior with MBEDTLS

2017-12-15 Thread antonio
Hi Simon, I have solved it long ago. Now problem is with SYN_SENT, I observe that for many times, my LWIP starts a TCP Connection Establishment, but does not go further than SYN_SENT bcz the server never replies.. when I try in a PC, this never happens.. then I came to conclusion that something

[lwip-users] LWIP 2.0.3 strange behavior with MBEDTLS

2017-11-13 Thread antonio
Hi all, I have a strange memory issue, that I'd like help with. I am using Lwip-2.0.3 and running a basic HTTPS MbedTLS application to request MyIP. When I connect the application to a server running on my PC, it works fine, but when I try to connect to a remote server "api.ipify.org" I

Re: [lwip-users] Question about DHCP server and 2nd layer delivery

2017-11-01 Thread antonio
Hi Xiaomin, There is not a DHCP server in Lwip, however, you can find one around the web and try to integrate it into your application. A quick check on the web, I found code for basic DHCP servers... here is an example.. https://github.com/crossbowerbt/dhcpserver/blob/master/dhcpserver.c

[lwip-users] "HIDE the declaration of PBUF STRUCT in pbuf.h"

2017-11-01 Thread antonio
Hi all, I *moved* the declaration of *struct pbuf from pbuf.h to pbuf.c*. In addition, I also *created functions for accessing and setting pbuf struct fields*. Then I went in all the files and *replaced direct access to my provided functions using "Coccinelle" *. However, I have many compilation

[lwip-users] DHCP problem V2.0.3

2017-11-08 Thread antonio
Hi all, I switched from Lwip v2.0.2 to v2.0.3-development and my application stopped acquiring IP address via DHCP. It seems that the server offers an address, but the client (my app) does not accept it :( This is the error I am getting.. ===>LWIP_HTTPS::Interface [tp] set.

Re: [lwip-users] Board hangs when LWIP_DEBUG is enabled

2018-04-26 Thread antonio
Hi, I guess you run out of resouces (i.e, memory). I don't use the same board, but It also happens with me. Try increasing your application heap( memory pool) or whatever u use and run it again. I hope it helps. Br, /A -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html

Re: [lwip-users] help with mDNS sending a DNS_RRTYPE_SRV query

2018-04-05 Thread antonio
On 05.04.2018 16:24, antonio wrote: > I have a small application using MDNS, and I use the loopback interface. > At the beginning the Thread1 starts the MDNS process, Q: Wait, why are you talking about threads? You are using the callback API of lwIP, right? There should not be more th

Re: [lwip-users] help with mDNS sending a DNS_RRTYPE_SRV query

2018-04-10 Thread antonio
Hi Erik, I am using a simulation like environment, and since I am using a loopback interface, and I am unable to see TX/RX packets through wireshark on the *loopback_if *127.0.0.1. However, I added my own hack functionality *err_t mdns_resolve(const char* hostname, ip_addr_t *addr,

[lwip-users] help with mDNS sending a DNS_RRTYPE_SRV query

2018-04-05 Thread antonio
Hi all, I have a small problem. I have a small application using MDNS, and I use the loopback interface. At the beginning the Thread1 starts the MDNS process, and I can see that it sends 3 probes and 2 responses. All these messages are correctly received also. After that I call Thread2 Is

Re: [lwip-users] help with mDNS sending a DNS_RRTYPE_SRV query

2018-04-09 Thread antonio
HI Simon, Let me see if I can be clear. I have an application using loopback interface. The goal is to test mDNS functions and observe queries and responses., a) My application first tries a DNS_RRTYPE_A query, and I get a response. here there is no problem. b) The problem happens whenever I

[lwip-users] mDNS strange behavior using "dig"

2018-04-17 Thread antonio
Hi All, I have a small problem. I am sending queries to my MDNS REsponder using *dig*. However, the behavior is strange to me 1) dig @10.10.0.10 -p5353 myssh._ssh._tcp.local srv, HERE I get a correct answer. PROBLEM 2)dig @224.0.0.251 -p5353 myssh._ssh._tcp.local srv HERE I GET

Re: [lwip-users] mDNS strange behavior using "dig"

2018-04-18 Thread antonio
Hi Erik, I think I found the problem, or I believe this is what is happening. My client is running on a Wireless Device, so it can only access services/devices also connected to the same router. After extensive debugging, I realized that the Router is not allowing Multicast Destination IP Addr

Re: [lwip-users] Question regarding mdns responder

2018-03-20 Thread antonio
Hi Erik, I came across mdns. I need to basically re-implement the Probing and announcing part. However, I noticed that I need an FSM that handles all the states Probing--->Announcing---(maybe Probing Again) as it is described in the RFC6762. Now I am just reading the code and try to

[lwip-users] Use IPv4/IPv6 Dual Stack

2018-04-26 Thread antonio
Hi all, After using with IPv4 for long time, I decided to enable dual stack, i.e, using both IPv4/6 simultaneously. I followed the configuration from lwip-contrib/ports/unix/unixsim/*.c. I have a small *socket-based HTTP web-server*, and I am using a simulation like environment, with a *TAP_IF*

[lwip-users] getaddrinfo returning only IPv4 address

2019-03-27 Thread antonio
Hi All, I am using LWIP with LWIPv4/6 (dual-stack enabled). I used getaddrinfo to resolve some domains, and I am only getting an IPv4. However, with my .c application on my Laptop connected to the same AP, I get two addresses This is what I get when I use a c application on my Laptop. ./ip6

Re: [lwip-users] Throughput benchmark question - nasty ~1.5 second pauses

2019-03-18 Thread antonio
Hi Simon, I am using LWIP-2.1.2 TCP_Dup_Ack_FIN_ACK_RST.pcapng I read through this thread, and I am having a problem similar to the one described here.. Description: "LWIP stack at client at some point skips an expected

Re: [lwip-users] Building mbedtls using LWIP library :: Handshake takes too long

2017-06-08 Thread Antonio Gonga
, as far as I understand. Have you been able to run the SSL server demo from mbedTLS ?... If not then I suggest first run the demo And then work on your own code. Good luck, Noam. From: lwip-users [mailto:lwip-users-bounces+noam=silrd@nongnu.org] On Behalf Of antonio Sent: Thursday, June 08

Re: [lwip-users] Simultaneous GET requests to HTTP Server

2017-06-16 Thread Antonio Gonga
Hi Simeon, I am not sure but I believe, the server does not send anything because it still processing the first request when the others arrive. Q: Did you try to use threads in your server ? For example I had developed one multi-thread HTTP server using LWIP-1.4 and I was able to have many

[lwip-users] How to begin using lwIP stack

2008-06-30 Thread Antonio de Angelis
to include, what libraries to link...etc.). Sorry but i'm not expert in network programming and I want to learn how to use the lwIP stack! Regards Antonio de Angelis ___ lwip-users mailing list lwip-users@nongnu.org http://lists.nongnu.org/mailman

Re : RE : [lwip-users] How to begin using lwIP stack

2008-07-02 Thread Antonio de Angelis
] De la part de Antonio de Angelis Envoyé : lundi 30 juin 2008 23:58 À : lwip-users@nongnu.org Objet : [lwip-users] How to begin using lwIP stack Hi All, I'm a new user of lwIP, i have to work with the win32 port of the stack. I've downloaded the stable 1.3.0 release and the contrib 1.3.0 files

Re: [lwip-users] How to build a simple TCP [...]

2008-07-09 Thread Antonio de Angelis
! :-) Antonio de Angelis [EMAIL PROTECTED] ha scritto: Antonio de Angelis wrote: [lengthy post...] First of all, your mail is very difficult to read if you mix such long code passages with the actual questions you want to ask. Chances you get a response are higher if the problem is expalined shortly

Re: [lwip-users] How to build a simple TCP [...]

2008-07-09 Thread Antonio de Angelis
UPDATE: I've tried to put the server process on a different machine on my home network, and it seems to work. But I want to make it work on the same machine... I attach the wireshark dump of the communication... is it working in the exact way? Antonio de Angelis [EMAIL PROTECTED] ha scritto

Re: [lwip-users] How to build a simple TCP [...]

2008-07-10 Thread Antonio de Angelis
MAC address but I don't know how to fix this issue... thank you and thanks to Kieran and Bill, all of your mails help me very much understanding the problem!!! :-) Antonio de Angelis -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Per conto di [EMAIL PROTECTED

[lwip-users] Refusing an incoming connection on a listening port

2008-08-20 Thread Antonio de Angelis
in case that there are too much active connections on the server. Thank you Antonio de Angelis ___ lwip-users mailing list lwip-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Refusing an incoming connection on a listening port

2008-08-20 Thread Antonio de Angelis
In data 20 agosto 2008 alle ore 13:12:07, Jonathan Larmour [EMAIL PROTECTED] ha scritto: Antonio de Angelis wrote: Hi all, I am working with the Win32 port. My question is, when i create a listening server on a specific port, how can I refuse an incoming connection on that port