mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
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:
@@ -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
|
||||
*
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user