diff options
| author | liuxianliang <[email protected]> | 2019-12-19 10:28:22 +0800 |
|---|---|---|
| committer | liuxianliang <[email protected]> | 2019-12-19 10:36:40 +0800 |
| commit | a9cad2b95b75b5b07dcb91b6db85fa6e6a508aa1 (patch) | |
| tree | 324a7889d14a7dc91951933ba29a1af2bb5540af /components | |
| parent | 3557d8f8a18e3600584ac2d3ebc36bc54dfdab41 (diff) | |
[net][lwip] rename hostname, change "RT-Thread_xx" into "RTTHREAD_xx"
Signed-off-by: liuxianliang <[email protected]>
Diffstat (limited to 'components')
| -rw-r--r-- | components/net/lwip-1.4.1/src/netif/ethernetif.c | 4 | ||||
| -rw-r--r-- | components/net/lwip-2.0.2/src/netif/ethernetif.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/components/net/lwip-1.4.1/src/netif/ethernetif.c b/components/net/lwip-1.4.1/src/netif/ethernetif.c index 70dd9c00d0..f729b27b93 100644 --- a/components/net/lwip-1.4.1/src/netif/ethernetif.c +++ b/components/net/lwip-1.4.1/src/netif/ethernetif.c @@ -483,8 +483,8 @@ 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]); + hostname = (char *)netif + sizeof(struct netif); + rt_sprintf(hostname, "RTTHREAD_%02x%02x", name[0], name[1]); netif->hostname = hostname; #endif /* LWIP_NETIF_HOSTNAME */ diff --git a/components/net/lwip-2.0.2/src/netif/ethernetif.c b/components/net/lwip-2.0.2/src/netif/ethernetif.c index 87aecdb58b..4ce0993f37 100644 --- a/components/net/lwip-2.0.2/src/netif/ethernetif.c +++ b/components/net/lwip-2.0.2/src/netif/ethernetif.c @@ -524,8 +524,8 @@ 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]); + hostname = (char *)netif + sizeof(struct netif); + rt_sprintf(hostname, "RTTHREAD_%02x%02x", name[0], name[1]); netif->hostname = hostname; #endif /* LWIP_NETIF_HOSTNAME */ |
