mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
net/netdev: All utility functions that lookup network devices should begin with netdev_findby_. Also correct some comments and the name of a formal parameter.
This commit is contained in:
@@ -77,7 +77,7 @@ void netdev_ipv4_txnotify(in_addr_t lipaddr, in_addr_t ripaddr)
|
||||
|
||||
/* Find the device driver that serves the subnet of the remote address */
|
||||
|
||||
dev = netdev_findby_ipv4addr(lipaddr, ripaddr);
|
||||
dev = netdev_findby_ripv4addr(lipaddr, ripaddr);
|
||||
if (dev && dev->d_txavail)
|
||||
{
|
||||
/* Notify the device driver that new TX data is available. */
|
||||
@@ -112,7 +112,7 @@ void netdev_ipv6_txnotify(FAR const net_ipv6addr_t lipaddr,
|
||||
|
||||
/* Find the device driver that serves the subnet of the remote address */
|
||||
|
||||
dev = netdev_findby_ipv6addr(lipaddr, ripaddr);
|
||||
dev = netdev_findby_ripv6addr(lipaddr, ripaddr);
|
||||
if (dev && dev->d_txavail)
|
||||
{
|
||||
/* Notify the device driver that new TX data is available. */
|
||||
|
||||
Reference in New Issue
Block a user