mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
netdev:In netdev_default,If there is only one loopback network devices, it returns NULL
Referring to Linux,if there is only a loopback network device and the destination address does not belong to the loopback address, then the loopback network devices is not selected Signed-off-by: wangchen <wangchen41@xiaomi.com>
This commit is contained in:
parent
b5b0430c39
commit
7dcbd235fc
1 changed files with 1 additions and 1 deletions
|
|
@ -75,9 +75,9 @@ FAR struct net_driver_s *netdev_default(void)
|
|||
* device).
|
||||
*/
|
||||
|
||||
ret = dev;
|
||||
if (dev->d_lltype != NET_LL_LOOPBACK)
|
||||
{
|
||||
ret = dev;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue