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

2017-11-14 Thread Amena El Homsi
The problem is that 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

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

2017-11-15 Thread Amena El Homsi
h would prevent 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 wrote: > Amena El Homsi wrote: > >> I am trying to send ping request using Lwip. >> The ICMP header and ping data is i

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 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 > not managed > >

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 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". Could you tell us &g

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

2017-11-15 Thread Amena El Homsi
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 wrote: > > > Amena El Homsi wrote: &

[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 & Comm

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 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 at 9:41 AM, Amena El

[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. ___

[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] tcp_write

2018-06-13 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.

[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

Re: [lwip-users] PBUF_RAM allocation

2018-06-28 Thread Amena El Homsi
ction. Thanks, Amena On Thu, 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

[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

[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 Com

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

Re: [lwip-users] icmp6

2018-08-14 Thread Amena El Homsi
ging the list at >>lwip-users-ow...@nongnu.org >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of lwip-users digest..." >> Today's Topics: >> 1. icmp6

[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

[lwip-users] Passing ARP replies to host

2018-11-05 Thread Amena El Homsi
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,

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 up

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

2018-11-06 Thread Amena El Homsi
shwaddr, > netif->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). > >

[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.

[lwip-users] autoip_remove_struct()

2019-11-20 Thread Amena El Homsi
NDEX_DHCP, NULL) 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

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] LwIP PCBs reset

2020-01-09 Thread Amena El Homsi
ening? -- 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] 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 recon

[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

[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