[Top][All Lists]

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

[lwip-devel] [bug #52937] raw_input() must tell ip4/6_input() whether th

From: Joel Cunningham
Subject: [lwip-devel] [bug #52937] raw_input() must tell ip4/6_input() whether this protocol has been received
Date: Mon, 22 Jan 2018 10:16:00 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0

Follow-up Comment #8, bug #52937 (project lwip):

The issue that hanhui pointed out is that there are three states that can
happen in the raw_input, but the return value only communicates the first two

1. No matching pcb.
1. Matching pcb zero-copy 'eats' the pbuf, no further processing can happen on
2. Matching pcb copies the pbuf, further processing can be done on it.

The netconn layer (recv_raw) always copies the pbuf, so eaten would never be
1.  From what hanhui described, it sounds like Linux doesn't have the
zero-copy 'eaten' case.

I'm wondering if instead this additional state should be communicated from the
raw_input return value, i.e. return 0 for no matching pcb, return 1 for eaten,
return 2 for copied/delivered.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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