mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 03:09:16 +08:00
[network][netdev] Improve the default netdev operation and format code
Signed-off-by: chenyong <1521761801@qq.com>
This commit is contained in:
@@ -137,6 +137,9 @@ struct netdev_ops
|
||||
int (*ping)(struct netdev *netdev, const char *host, size_t data_len, uint32_t timeout, struct netdev_ping_resp *ping_resp);
|
||||
void (*netstat)(struct netdev *netdev);
|
||||
#endif
|
||||
|
||||
/* set default network interface device in current network stack*/
|
||||
int (*set_default)(struct netdev *netdev);
|
||||
};
|
||||
|
||||
/* The network interface device registered and unregistered*/
|
||||
|
||||
Reference in New Issue
Block a user