[net][at] Fix socket create failed issue when default netdev mismatch.

Signed-off-by: chenyong <1521761801@qq.com>
This commit is contained in:
chenyong
2019-05-28 16:25:42 +08:00
parent b5ad12573f
commit 1f9a668607
3 changed files with 21 additions and 5 deletions
+1
View File
@@ -138,6 +138,7 @@ struct netdev *netdev_get_by_ipaddr(ip_addr_t *ip_addr);
struct netdev *netdev_get_by_name(const char *name);
#ifdef RT_USING_SAL
struct netdev *netdev_get_by_family(int family);
int netdev_family_get(struct netdev *netdev);
#endif /* RT_USING_SAL */
/* Set default network interface device in list */