[net][lwip] rename hostname, change "RT-Thread_xx" into "RTTHREAD_xx"
Signed-off-by: liuxianliang <liuxianliang@rt-thread.com>
This commit is contained in:
parent
3557d8f8a1
commit
a9cad2b95b
@ -483,8 +483,8 @@ rt_err_t eth_device_init_with_flag(struct eth_device *dev, const char *name, rt_
|
|||||||
|
|
||||||
#if LWIP_NETIF_HOSTNAME
|
#if LWIP_NETIF_HOSTNAME
|
||||||
/* Initialize interface hostname */
|
/* Initialize interface hostname */
|
||||||
hostname = (char *)netif + sizeof(struct netif);
|
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;
|
netif->hostname = hostname;
|
||||||
#endif /* LWIP_NETIF_HOSTNAME */
|
#endif /* LWIP_NETIF_HOSTNAME */
|
||||||
|
|
||||||
|
@ -524,8 +524,8 @@ rt_err_t eth_device_init_with_flag(struct eth_device *dev, const char *name, rt_
|
|||||||
|
|
||||||
#if LWIP_NETIF_HOSTNAME
|
#if LWIP_NETIF_HOSTNAME
|
||||||
/* Initialize interface hostname */
|
/* Initialize interface hostname */
|
||||||
hostname = (char *)netif + sizeof(struct netif);
|
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;
|
netif->hostname = hostname;
|
||||||
#endif /* LWIP_NETIF_HOSTNAME */
|
#endif /* LWIP_NETIF_HOSTNAME */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user