On 31/05/2013 19:54, John Zavgren wrote:
Alan:

There are two parameters involved here that have similar names: MAX_PACKET_LEN and MAX_BUFFER_LEN.

If the code receives a "jumbo" packet (larger than MAX_PACKET_LEN) then the length is truncated to MAX_PACKET_LEN before the next step. In that "if block" we look to see if the (possibly) truncated packet exceeds the size of the packet buffer, if so, then the code allocates a whole new larger buffer.

Does this sound OK?

John
MAX_PACKET_LEN and MAX_BUFFER_LEN looked the same, sorry for the noise, the change is fine.

-Alan

Reply via email to