From 8256ea1b0e8e967cec1e04ee8b11cd63aa5ef9da Mon Sep 17 00:00:00 2001 From: aswinsankar Date: Mon, 5 Jan 2026 23:32:07 +0530 Subject: [PATCH] patched --- .../enet/core/examples/lwip/enet_cpsw_tcpserver/app_main.c | 1 + source/networking/lwip/lwip-stack/src/include/lwip/opt.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/networking/enet/core/examples/lwip/enet_cpsw_tcpserver/app_main.c b/source/networking/enet/core/examples/lwip/enet_cpsw_tcpserver/app_main.c index 175eb3b..756e3b4 100644 --- a/source/networking/enet/core/examples/lwip/enet_cpsw_tcpserver/app_main.c +++ b/source/networking/enet/core/examples/lwip/enet_cpsw_tcpserver/app_main.c @@ -254,6 +254,7 @@ static void App_setupNetif() netif_set_status_callback(g_pNetif[netifIdx], App_netifStatusChangeCb); netif_set_link_callback(g_pNetif[netifIdx], App_netifLinkChangeCb); netif_set_up(g_pNetif[NETIF_INST_ID0 + netifIdx]); + g_pNetif[netifIdx]->hostname = "launchpad-am263x"; } LwipifEnetApp_startSchedule(hlwipIfApp, g_pNetif[ENET_SYSCFG_DEFAULT_NETIF_IDX]); } diff --git a/source/networking/lwip/lwip-stack/src/include/lwip/opt.h b/source/networking/lwip/lwip-stack/src/include/lwip/opt.h index 2573285..bde22cd 100644 --- a/source/networking/lwip/lwip-stack/src/include/lwip/opt.h +++ b/source/networking/lwip/lwip-stack/src/include/lwip/opt.h @@ -1671,7 +1671,7 @@ * field. */ #if !defined LWIP_NETIF_HOSTNAME || defined __DOXYGEN__ -#define LWIP_NETIF_HOSTNAME 0 +#define LWIP_NETIF_HOSTNAME 1 #endif /** -- 2.49.0.windows.1