[network][netdev] Improve the default netdev operation and format code

Signed-off-by: chenyong <1521761801@qq.com>
This commit is contained in:
chenyong
2019-08-22 18:33:30 +08:00
parent d588940dac
commit 0d8a216260
5 changed files with 105 additions and 71 deletions
+3
View File
@@ -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*/