提交 a9cad2b9 编写于 作者: L liuxianliang

[net][lwip] rename hostname, change "RT-Thread_xx" into "RTTHREAD_xx"

Signed-off-by: Nliuxianliang <liuxianliang@rt-thread.com>
上级 3557d8f8
......@@ -484,7 +484,7 @@ rt_err_t eth_device_init_with_flag(struct eth_device *dev, const char *name, rt_
#if LWIP_NETIF_HOSTNAME
/* Initialize interface hostname */
hostname = (char *)netif + sizeof(struct netif);
rt_sprintf(hostname, "RT-Thread_%02x%02x", name[0], name[1]);
rt_sprintf(hostname, "RTTHREAD_%02x%02x", name[0], name[1]);
netif->hostname = hostname;
#endif /* LWIP_NETIF_HOSTNAME */
......
......@@ -525,7 +525,7 @@ rt_err_t eth_device_init_with_flag(struct eth_device *dev, const char *name, rt_
#if LWIP_NETIF_HOSTNAME
/* Initialize interface hostname */
hostname = (char *)netif + sizeof(struct netif);
rt_sprintf(hostname, "RT-Thread_%02x%02x", name[0], name[1]);
rt_sprintf(hostname, "RTTHREAD_%02x%02x", name[0], name[1]);
netif->hostname = hostname;
#endif /* LWIP_NETIF_HOSTNAME */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册