mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-09 20:45:41 +08:00
[component][sal]add netgetdev api
This commit is contained in:
1 parent
c9a1245977
commit
906d1caea6
2 files changed
+41
No files matched your search
@@ -155,6 +155,9 @@ struct netdev *netdev_get_by_name(const char *name);
|
||||
struct netdev *netdev_get_by_family(int family);
|
||||
int netdev_family_get(struct netdev *netdev);
|
||||
#endif /* RT_USING_SAL */
|
||||
#if defined(SAL_USING_AF_NETLINK)
|
||||
int netdev_getnetdev(struct msg_buf *msg, int (*cb)(struct msg_buf *m_buf, struct netdev *nd, int nd_num, int index, int ipvx));
|
||||
#endif
|
||||
|
||||
/* Set default network interface device in list */
|
||||
void netdev_set_default(struct netdev *netdev);
|
||||
|
||||
Reference in new issue
Block a user