mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 18:58:27 +08:00
net: move the tool interface functions to the public directory
expose the query interface of the network card to the network card driver so that the network card driver can support more features. Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
@@ -106,23 +106,6 @@ typedef int (*netdev_callback_t)(FAR struct net_driver_s *dev,
|
||||
|
||||
bool netdev_verify(FAR struct net_driver_s *dev);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: netdev_findbyname
|
||||
*
|
||||
* Description:
|
||||
* Find a previously registered network device using its assigned
|
||||
* network interface name
|
||||
*
|
||||
* Input Parameters:
|
||||
* ifname The interface name of the device of interest
|
||||
*
|
||||
* Returned Value:
|
||||
* Pointer to driver on success; null on failure
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
FAR struct net_driver_s *netdev_findbyname(FAR const char *ifname);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: netdev_foreach
|
||||
*
|
||||
@@ -241,24 +224,6 @@ FAR struct net_driver_s *netdev_findby_ripv6addr(
|
||||
const net_ipv6addr_t ripaddr);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: netdev_findbyindex
|
||||
*
|
||||
* Description:
|
||||
* Find a previously registered network device by assigned interface index.
|
||||
*
|
||||
* Input Parameters:
|
||||
* ifindex - The interface index. This is a one-based index and must be
|
||||
* greater than zero.
|
||||
*
|
||||
* Returned Value:
|
||||
* Pointer to driver on success; NULL on failure. This function will return
|
||||
* NULL only if there is no device corresponding to the provided index.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
FAR struct net_driver_s *netdev_findbyindex(int ifindex);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: netdev_nextindex
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user