summaryrefslogtreecommitdiff
path: root/components/net/netdev/include/netdev.h
diff options
context:
space:
mode:
authorchenyong <[email protected]>2019-07-02 20:11:41 +0800
committerchenyong <[email protected]>2019-07-02 20:11:41 +0800
commit48857d1e67848fa999ef6454756522fb06f42bcf (patch)
treed36c971c44cf70d3d545f8c161dfae8e8042aaac /components/net/netdev/include/netdev.h
parent61e4140db2427be1c4fd5d107c1069774fc3c820 (diff)
[net][netdev] Add FINSH_USING_MSH control for netdev network commands
Diffstat (limited to 'components/net/netdev/include/netdev.h')
-rw-r--r--components/net/netdev/include/netdev.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/net/netdev/include/netdev.h b/components/net/netdev/include/netdev.h
index 71a61be3c0..25a8493a8f 100644
--- a/components/net/netdev/include/netdev.h
+++ b/components/net/netdev/include/netdev.h
@@ -132,10 +132,11 @@ struct netdev_ops
int (*set_dns_server)(struct netdev *netdev, uint8_t dns_num, ip_addr_t *dns_server);
int (*set_dhcp)(struct netdev *netdev, rt_bool_t is_enabled);
+#ifdef FINSH_USING_MSH
/* set network interface device common network interface device operations */
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
};
/* The network interface device registered and unregistered*/