Fix some errors in ipforward.h when CONFIG_NET_STATISTICS is enabled, but CONFIG_NETDEV_MULTINIC is not
This commit is contained in:
parent
994019d9be
commit
6df0ca5923
|
@ -259,6 +259,26 @@ int ipfwd_forward(FAR struct forward_s *fwd);
|
|||
|
||||
void ipfwd_poll(FAR struct net_driver_s *dev);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: ipfwd_dropstats
|
||||
*
|
||||
* Description:
|
||||
* Update statistics for a dropped packet.
|
||||
*
|
||||
* Input Parameters:
|
||||
* fwd - The forwarding state structure
|
||||
*
|
||||
* Returned Value:
|
||||
* None
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_NET_STATISTICS
|
||||
void ipfwd_dropstats(FAR struct forward_s *fwd);
|
||||
#else
|
||||
# define ipfwd_dropstats(fwd)
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_NETDEV_MULTINIC */
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -363,25 +383,5 @@ void ipv4_dropstats(FAR struct ipv4_hdr_s *ipv4);
|
|||
# define ipv4_dropstats(ipv4)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: ipfwd_dropstats
|
||||
*
|
||||
* Description:
|
||||
* Update statistics for a dropped packet.
|
||||
*
|
||||
* Input Parameters:
|
||||
* fwd - The forwarding state structure
|
||||
*
|
||||
* Returned Value:
|
||||
* None
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_NET_STATISTICS
|
||||
void ipfwd_dropstats(FAR struct forward_s *fwd)
|
||||
#else
|
||||
# define ipfwd_dropstats(fwd)
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_NET_IPFORWARD */
|
||||
#endif /* __NET_IPFORWARD_IPFORWARD_H */
|
||||
|
|
Loading…
Reference in New Issue