[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
possibilities:
1. No matching pcb.
1. Matching pcb zero-copy 'eats' the pbuf, no further processing can happen on
it.
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:
<http://savannah.nongnu.org/bugs/?52937>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #52937] raw_input() must tell ip4/6_input() whether this protocol has been received, hanhui, 2018/01/20
- [lwip-devel] [bug #52937] raw_input() must tell ip4/6_input() whether this protocol has been received, Simon Goldschmidt, 2018/01/20
- [lwip-devel] [bug #52937] raw_input() must tell ip4/6_input() whether this protocol has been received, hanhui, 2018/01/20
- [lwip-devel] [bug #52937] raw_input() must tell ip4/6_input() whether this protocol has been received, Simon Goldschmidt, 2018/01/21
- [lwip-devel] [bug #52937] raw_input() must tell ip4/6_input() whether this protocol has been received, hanhui, 2018/01/21
- [lwip-devel] [bug #52937] raw_input() must tell ip4/6_input() whether this protocol has been received, Simon Goldschmidt, 2018/01/21
- [lwip-devel] [bug #52937] raw_input() must tell ip4/6_input() whether this protocol has been received, hanhui, 2018/01/21
- [lwip-devel] [bug #52937] raw_input() must tell ip4/6_input() whether this protocol has been received, hanhui, 2018/01/21
- [lwip-devel] [bug #52937] raw_input() must tell ip4/6_input() whether this protocol has been received,
Joel Cunningham <=
- [lwip-devel] [bug #52937] raw_input() must tell ip4/6_input() whether this protocol has been received, Simon Goldschmidt, 2018/01/22
- [lwip-devel] [bug #52937] raw_input() must tell ip4/6_input() whether this protocol has been received, hanhui, 2018/01/22
- [lwip-devel] [bug #52937] raw_input() must tell ip4/6_input() whether this protocol has been received, hanhui, 2018/01/22
- [lwip-devel] [bug #52937] raw_input() must tell ip4/6_input() whether this protocol has been received, Joel Cunningham, 2018/01/22
- [lwip-devel] [bug #52937] raw_input() must tell ip4/6_input() whether this protocol has been received, Simon Goldschmidt, 2018/01/22
- [lwip-devel] [bug #52937] raw_input() must tell ip4/6_input() whether this protocol has been received, Joel Cunningham, 2018/01/22
- [lwip-devel] [bug #52937] raw_input() must tell ip4/6_input() whether this protocol has been received, hanhui, 2018/01/22
- [lwip-devel] [bug #52937] raw_input() must tell ip4/6_input() whether this protocol has been received, Simon Goldschmidt, 2018/01/23
- [lwip-devel] [bug #52937] raw_input() must tell ip4/6_input() whether this protocol has been received, Joel Cunningham, 2018/01/23
- [lwip-devel] [bug #52937] raw_input() must tell ip4/6_input() whether this protocol has been received, Simon Goldschmidt, 2018/01/25