lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #55037] lwip 2.1.0 socket raw api lack of IPv6 cmsghdr


From: hongchengyan
Subject: [lwip-devel] [bug #55037] lwip 2.1.0 socket raw api lack of IPv6 cmsghdr information
Date: Fri, 16 Nov 2018 22:40:15 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36

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

I Checked the patch #9554 and it really provides most of this post already
except the pbuf_clone changes if I did not miss it.

I have another question.
Since I use SOCK_RAW to get exactly IPv6 payload info, however, I will receive
all IPv6 packet include IPv6 header in the application. I notice that in line
1053 of ip6.c, the ipv6 header is added again as following:

#if LWIP_RAW
  /* p points to IPv6 header again for raw_input. */
  pbuf_add_header_force(p, hlen_tot);
  /* raw input did not eat the packet? */
  raw_status = raw_input(p, inp);

So why raw_input need the IPv6 header info? What is the motivation behind
this? At least, I do not need the IPv6 header in my application since the
cmsghdr has already provide destaddr information which maybe the most commonly
used IPv6 header information.

Thanks!

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?55037>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

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