mirror of
https://github.com/apache/nuttx.git
synced 2026-05-24 16:11:56 +08:00
IP forward: ipfwd_dropstats needs to include errno.h
This commit is contained in:
@@ -39,6 +39,9 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#include <nuttx/net/ip.h>
|
||||
#include <nuttx/net/netstats.h>
|
||||
|
||||
#include "ipforward/ipforward.h"
|
||||
@@ -171,6 +174,7 @@ void ipv4_dropstats(FAR struct ipv4_hdr_s *ipv4)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_NETDEV_MULTINIC
|
||||
void ipfwd_dropstats(FAR struct forward_s *fwd)
|
||||
{
|
||||
#ifdef CONFIG_NET_IPv4
|
||||
@@ -190,5 +194,6 @@ void ipfwd_dropstats(FAR struct forward_s *fwd)
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_NET_IPFORWARD && CONFIG_NET_STATISTICS */
|
||||
|
||||
Reference in New Issue
Block a user