net/icmpv6, neighbor, and netdev: Rename netdev_dev_lladdrsize() to netdev_lladdrsize() and move the prototype to include/nuttx/nex/netdev.h, giving is global scope within the OS. Reviewer: This degrades the integrity of the modular architecture by introducing a new coupling via C function call. Not a good thing at all.

This commit is contained in:
Xiang Xiao
2018-11-09 16:05:11 -06:00
committed by Gregory Nutt
parent a139b7f9b1
commit 71e1056e6d
10 changed files with 25 additions and 25 deletions
-16
View File
@@ -499,22 +499,6 @@ struct lifconf; /* Forward reference */
int netdev_ipv6_ifconf(FAR struct lifconf *lifc);
#endif
/****************************************************************************
* Name: netdev_dev_lladdrsize
*
* Description:
* Returns the size of the MAC address associated with a network device.
*
* Input Parameters:
* dev - A reference to the device of interest
*
* Returned Value:
* The size of the MAC address associated with this device
*
****************************************************************************/
int netdev_dev_lladdrsize(FAR struct net_driver_s *dev);
/****************************************************************************
* Name: netdown_notifier_setup
*
+2 -2
View File
@@ -98,7 +98,7 @@ static inline int netdev_pktradio_addrlen(FAR struct net_driver_s *dev)
****************************************************************************/
/****************************************************************************
* Name: netdev_dev_lladdrsize
* Name: netdev_lladdrsize
*
* Description:
* Returns the size of the MAC address associated with a network device.
@@ -111,7 +111,7 @@ static inline int netdev_pktradio_addrlen(FAR struct net_driver_s *dev)
*
****************************************************************************/
int netdev_dev_lladdrsize(FAR struct net_driver_s *dev)
int netdev_lladdrsize(FAR struct net_driver_s *dev)
{
DEBUGASSERT(dev != NULL);