Re: [lwip-users] [RST, ACK] from port zero

2018-11-05 Thread Axel Lin
goldsimon 於 2018年11月1日 週四 上午12:53寫道: > > > Am 31. Oktober 2018 16:26:27 MEZ schrieb Bob Jones < > 0xdeadbeef2...@gmail.com>: > >Hello, > > > >I'm using lwIP the stack with sockets in our project to create multiple > >HTTP connections to a non-lwIP server. I've noticed in Wireshark traces > >that

[lwip-users] Passing ARP replies to host

2018-11-05 Thread Amena El Homsi
Hi, LwIP processes the ARP requests and replies updated the ARP table, then it calls pbuf_free(). Is there a way to send the ARP reply to the host when the host requested lwIP to send an ARP request? I was thinking to use raw pcb and define a raw callback function that will inform the host of th

Re: [lwip-users] Passing ARP replies to host

2018-11-05 Thread goldsi...@gmx.de
On 05.11.2018 16:35, Amena El Homsi wrote: LwIP processes the ARP requests and replies updated the ARP table, then it calls pbuf_free(). Is there a way to send the ARP reply to the host when the host requested lwIP to send an ARP request? No. I was thinking to use raw pcb and define a raw cal

Re: [lwip-users] [RST, ACK] from port zero

2018-11-05 Thread goldsi...@gmx.de
On 05.11.2018 16:39, Axel Lin wrote: goldsimon mailto:goldsi...@gmx.de>> 於 2018年11月1日 週四 上午12:53寫道: Am 31. Oktober 2018 16:26:27 MEZ schrieb Bob Jones <0xdeadbeef2...@gmail.com >: >Hello, > >I'm using lwIP the stack with sockets in our p

Re: [lwip-users] Passing ARP replies to host

2018-11-05 Thread Amena El Homsi
Thanks for your reply. So if I want to support it I have to add some changes to etharp.c file. Is there a plan to support such feature? On Mon, Nov 5, 2018 at 6:27 PM goldsi...@gmx.de wrote: > On 05.11.2018 16:35, Amena El Homsi wrote: > > LwIP processes the ARP requests and replies updated the

Re: [lwip-users] Passing ARP replies to host

2018-11-05 Thread David M. Zar
I had the need for the same functionality. In etharp.c, at the end of etharp_input, put something like this:   arp_callback(&sipaddr, (const struct eth_addr*)&hdr->shwaddr, netif->num, hdr->opcode, p); arp_callback is defined in my code and passes whatever is needed by the callback. Just be

Re: [lwip-users] Passing ARP replies to host

2018-11-05 Thread goldsimon
Am 5. November 2018 17:49:42 MEZ schrieb Amena El Homsi : >Thanks for your reply. So if I want to support it I have to add some >changes to etharp.c file. Yes. > Is there a plan to support such feature? No, but I'm not opposed to accepting patches adding hooks for such things (see the other

Re: [lwip-users] Passing ARP replies to host

2018-11-05 Thread Martin Kortmann
Hi, I have to copy and modify the code of etharp.c since several years. My problem with etharp.c is: My Ssstem includes one microcontroller (with lwip running on it) and several FPGAs. All of them are communicating via TCP/UDP, so i need one instance who can deliver the right ARP responses. And

Re: [lwip-users] Passing ARP replies to host

2018-11-05 Thread goldsimon
Am 5. November 2018 19:15:51 MEZ schrieb Martin Kortmann : >Hi, > >I have to copy and modify the code of etharp.c since several years. >My problem with etharp.c is: My Ssstem includes one microcontroller >(with lwip running on it) and several FPGAs. All of them are >communicating via TCP/UDP, s