Skip to content

Commit a9cad2b

Browse files
author
liuxianliang
committed
[net][lwip] rename hostname, change "RT-Thread_xx" into "RTTHREAD_xx"
Signed-off-by: liuxianliang <[email protected]>
1 parent 3557d8f commit a9cad2b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

components/net/lwip-1.4.1/src/netif/ethernetif.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,8 @@ rt_err_t eth_device_init_with_flag(struct eth_device *dev, const char *name, rt_
483483

484484
#if LWIP_NETIF_HOSTNAME
485485
/* Initialize interface hostname */
486-
hostname = (char *)netif + sizeof(struct netif);
487-
rt_sprintf(hostname, "RT-Thread_%02x%02x", name[0], name[1]);
486+
hostname = (char *)netif + sizeof(struct netif);
487+
rt_sprintf(hostname, "RTTHREAD_%02x%02x", name[0], name[1]);
488488
netif->hostname = hostname;
489489
#endif /* LWIP_NETIF_HOSTNAME */
490490

components/net/lwip-2.0.2/src/netif/ethernetif.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,8 +524,8 @@ rt_err_t eth_device_init_with_flag(struct eth_device *dev, const char *name, rt_
524524

525525
#if LWIP_NETIF_HOSTNAME
526526
/* Initialize interface hostname */
527-
hostname = (char *)netif + sizeof(struct netif);
528-
rt_sprintf(hostname, "RT-Thread_%02x%02x", name[0], name[1]);
527+
hostname = (char *)netif + sizeof(struct netif);
528+
rt_sprintf(hostname, "RTTHREAD_%02x%02x", name[0], name[1]);
529529
netif->hostname = hostname;
530530
#endif /* LWIP_NETIF_HOSTNAME */
531531

0 commit comments

Comments
 (0)