[lwip-users] Listening PCBs updating address issue

2022-04-29 Thread Amena El Homsi
is null. Am I right or wrong? -- Amena El-Homsi Computer & Communication Engineer Dipl. Eng, M.S. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

[lwip-users] Successful bind for wrong IP address!

2020-05-20 Thread Amena El Homsi
. If we use netcat to open a socket on linux using wrong IP address, binding fails as mentioned in the attached picture. -- Amena El-Homsi Computer & Communication Engineer Dipl. Eng, M.S. ___ lwip-users mailing list lwip-users@nongnu.org h

Re: [lwip-users] LwIP PCBs reset

2020-01-13 Thread Amena El Homsi
Hi, thanks for your reply, please check my answers below. On Thu, Jan 9, 2020 at 6:35 PM goldsimon wrote: > > > Amena El Homsi wrote: > >Hello, > > > >After disconnecting from an AP I have to reset the PCBs pools. If I did > >not > >do that and I rec

[lwip-users] LwIP PCBs reset

2020-01-09 Thread Amena El Homsi
? -- Amena El-Homsi Computer & Communication Engineer Dipl. Eng, M.S. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] autoip_remove_struct()

2019-11-20 Thread Amena El Homsi
utoip set", > netif_autoip_data(netif) != NULL); > > netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_AUTOIP, NULL); > } > > > Ciao > Dirk > > > On Wed, Nov 20, 2019 at 9:26 AM Amena El Homsi > wrote: > >> Hello, >> >> I set au

[lwip-users] autoip_remove_struct()

2019-11-20 Thread Amena El Homsi
) and autoip_remove_struct is expanded to: do { (netif)->autoip = NULL; } while (0) ? -- Amena El-Homsi Computer & Communication Engineer Dipl. Eng, M.S. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

[lwip-users] LwIP in Power save mode

2018-12-14 Thread Amena El Homsi
Hi, Most embedded systems have a power save mode in which memory is shut down and the state is saved in a non-volatile memory. Does LwIP have a list of variables that should be saved and restored to resume proper functionality? -- Amena El-Homsi Computer & Communication Engineer Dipl.

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

2018-11-06 Thread Amena El Homsi
->num, hdr->opcode, p); > > arp_callback is defined in my code and passes whatever is needed by the > callback. Just be sure to NOT free the packet in etharp_input but then do > it in your code (or free it after the callback returns in etharp_input). > > Dave > > On 1

[lwip-users] Passing ARP replies to host

2018-11-05 Thread Amena El Homsi
of the result of the ARP request, however raw_input() is not called unless ip4_input is called and since the arp will be processed by etharp_input I will not be able to use raw_pcb. Thanks, -- Amena El-Homsi Computer & Communication Engineer Dipl. Eng,

[lwip-users] Pbuf struct size

2018-09-19 Thread Amena El Homsi
Hi, The pbuf structure is 16 bytes. Is their a plan to add more elements to it in the next lwip versions or its size will not be changed? Thanks, -- Amena El-Homsi Computer & Communication Engineer Dipl. Eng, M.S. ___ lwip-users mailing list

Re: [lwip-users] icmp6

2018-08-14 Thread Amena El Homsi
wrote: > On 14.08.2018 14:49, Amena El Homsi wrote: > >> When we receive an echo request using IPv6, LwIP copies the request to >> new pbuf to send the reply. >> Why LwIP doesn't use the echo request pbuf, instead of allocating a new >> one (as what LwIP does when

[lwip-users] icmp6

2018-08-14 Thread Amena El Homsi
Hi, When we receive an echo request using IPv6, LwIP copies the request to new pbuf to send the reply. Why LwIP doesn't use the echo request pbuf, instead of allocating a new one (as what LwIP does when replying to IPv4 echo requests)? Thanks in advance. -- Amena El-Homsi Computer

[lwip-users] Socket support

2018-08-08 Thread Amena El Homsi
Hi, Can we support sockets using RAW API without Socket API? Thanks, -- Amena El-Homsi Computer & Communication Engineer Dipl. Eng, M.S. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] PBUF_RAM allocation

2018-06-28 Thread Amena El Homsi
Jun 28, 2018 at 3:26 PM, Simon Goldschmidt wrote: > "Amena El Homsi" wrote: > > For PBUF_RAM type, LwIP mentions that "struct pbuf and its payload are > > allocated in one piece of contiguous memory (so the first payload byte > > can be calculated from struct pbu

[lwip-users] PBUF_RAM allocation

2018-06-28 Thread Amena El Homsi
ure only from the lwIP pools, and calls the MMU to allocate memory to the frame, then I set p->payload to the frame pointer. I am able to send and receive ARPs, pings, and DHCP messeages. Are there specific cases where this procedure will not work correctly? Thanks, Amena -- Amena E

[lwip-users] tcp_write

2018-06-14 Thread Amena El Homsi
Hi, In tcp_write() function, why we don't allocate segments bigger than half the maximum window we ever received? Is this a LwIP requirement or TCP protocol requirement? Thanks, Amena -- Amena El-Homsi Computer & Communication Engineer Dipl. Eng,

[lwip-users] IP/TCP header options

2018-05-03 Thread Amena El Homsi
, Amena -- Amena El-Homsi Computer & Communication Engineer Dipl. Eng, M.S. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

[lwip-users] unable to find MEMP_SEPARATE_POOLS macro

2018-01-23 Thread Amena El Homsi
Hello, I am using lwip 2.0.3 Release version, I din't find MEMP_SEPARATE_POOLS Macro. How to know if the pools are placed in one array or separate arrays? Regards, Amena -- Amena El-Homsi Computer & Communication Engineer Dipl. Eng, M.S. ___

Re: [lwip-users] Double VLAN tagging

2018-01-10 Thread Amena El Homsi
So the LwIP discards such frames, right? Thanks Amena On Wed, Jan 10, 2018 at 10:56 AM, Dirk Ziegelmeier <d...@ziegelmeier.net> wrote: > No, lwIP doesn't support it. But it should be easy to add in > src/netif/ethernet.c. > > Ciao > Dirk > > On Wed, Jan 10, 2018

[lwip-users] Double VLAN tagging

2018-01-10 Thread Amena El Homsi
Hello, In the eth_type enum, I didn't see the ETHTYPE 0x88a8 referring to the TPID of service-provider outer S-TAG used when the Ethernet frame have double VLAN tagging. Does LwIP support Ethernet frames with double VLAN tagging? Thanks, Amena -- Amena El-Homsi Computer & Communica

Re: [lwip-users] Packet queuing to an ARP table entry

2017-11-15 Thread Amena El Homsi
the frame address to clean it. For the incoming frames, I didn't face any problem in passing the frame address as pbuf payload ptr of PBUF_ROM type and LwIP did the necessary parsing of the received frames. On Wed, Nov 15, 2017 at 4:47 PM, goldsimon <goldsi...@gmx.de> wrote: > > >

Re: [lwip-users] Packet queuing to an ARP table entry

2017-11-15 Thread Amena El Homsi
On Wed, Nov 15, 2017 at 3:15 PM, Simon Goldschmidt <goldsi...@gmx.de> wrote: > Amena El Homsi wrote: > > Actually I had this understanding from this link http://www.nongnu.org/ > lwip/2_0_x/group__pbuf.html > > That page says "PBUF_ROM: pbuf data is stored in ROM&quo

Re: [lwip-users] Packet queuing to an ARP table entry

2017-11-15 Thread Amena El Homsi
On Wed, Nov 15, 2017 at 1:22 PM, Simon Goldschmidt <goldsi...@gmx.de> wrote: > Amena El Homsi wrote: > > What I know is PBUF_ROM doesn't mean the actual ROM (stable for very > long) but it > > means that the data is immutable and it is located in memory which is >

Re: [lwip-users] Packet queuing to an ARP table entry

2017-11-15 Thread Amena El Homsi
event copying", so I have to add some instructions inside the LwIP code, right? Regards, Amena On Tue, Nov 14, 2017 at 11:31 PM, goldsi...@gmx.de <goldsi...@gmx.de> wrote: > Amena El Homsi wrote: > >> I am trying to send ping request using Lwip. >> The ICMP header a

[lwip-users] Packet queuing to an ARP table entry

2017-11-14 Thread Amena El Homsi
LwIP creates a new pbuf RAM 'r' and copies 'q' of type PBUF RAM and 'p' of type PBUF_ROM to the new PBUF RAM! Indeed I don't want to copy PBUF_ROM payload to the new PBUF_RAM, is there a way to avoid such copy? why LwIP doesn't copy 'q' to 'r' while preserving the chain between the PBUF_RAM and PBUF