mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 13:18:50 +08:00
net/icmpv6/icmpv6_input.c: Fix a recently introduced error found in build testing.
This commit is contained in:
parent
9e42bede2f
commit
9d2e6cf66a
1 changed files with 3 additions and 2 deletions
|
@ -105,7 +105,8 @@
|
|||
|
||||
#ifdef CONFIG_NET_ICMPv6_SOCKET
|
||||
static uint16_t icmpv6_datahandler(FAR struct net_driver_s *dev,
|
||||
FAR struct icmpv6_conn_s *conn)
|
||||
FAR struct icmpv6_conn_s *conn,
|
||||
unsigned int iplen)
|
||||
{
|
||||
FAR struct ipv6_hdr_s *ipv6;
|
||||
struct sockaddr_in6 inaddr;
|
||||
|
@ -468,7 +469,7 @@ void icmpv6_input(FAR struct net_driver_s *dev, unsigned int iplen)
|
|||
* ahead buffer.
|
||||
*/
|
||||
|
||||
nbuffered = icmpv6_datahandler(dev, conn);
|
||||
nbuffered = icmpv6_datahandler(dev, conn, iplen);
|
||||
if (nbuffered == 0)
|
||||
{
|
||||
/* Could not buffer the data.. drop the packet */
|
||||
|
|
Loading…
Reference in a new issue