[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: hanhui
Subject: [lwip-devel] [bug #52937] raw_input() must tell ip4/6_input() whether this protocol has been received
Date: Sat, 20 Jan 2018 21:59:13 -0500 (EST)
User-agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X; zh-cn) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/14G60 Quark/ Mobile AliApp(TUnionSDK/0.3.0)

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

I explain what I mean. If an application, such as OSFP, uses a RAW socket to
receive a special IP protocol packet, the raw_input() function handles it
properly, but the ip4/6_input() will jump to the unrecognized protocol
processing branch and send an ICMP packet. The processing is not correct. The
raw_input() function must be able to tell the ip4/6_input() function that this
special protocol packet has been received, but where raw_input() can not use
eaten = 1 as the return value, otherwise other raw sockets may be wrong, so
raw_input() need to add a parameter such as u8_t * is_recved, if the user raw
socket correctly received the packet, raw_input() set this parameter to 1,
ip4/6_input() function in the unrecognized protocol branch then not send the
ICMP unrecognized packet if this parameter is 1.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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