lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] UDP sending more than 1472 bytes with raw API


From: Sergio R. Caprile
Subject: Re: [lwip-users] UDP sending more than 1472 bytes with raw API
Date: Fri, 29 Jul 2016 11:20:15 -0300

>> UDP is message oriented, so you have to split your data in datagrams, 
>> because a datagram must fit on an IP datagram on an Ethernet frame.

> No, IP supports fragmentation, and lwIP supports fragmented IP packets 
> using the IP_FRAG compilation option.

Good point, I'm too used to stacks not supporting fragmentation quite well, and memory constraints where a full size Ethernet frame is a bit of a luxury...
As per the OP question, he then could get away with 
IP_FRAG and a a big enough pbuf if he can afford it ?

lwipopts.h --> #define IP_FRAG 1
application --> udp_send(pcb, p);

Or is there another mechanism I'm not aware of ?
BTW, good to know!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]