summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2021-09-14 08:48:53 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-10-05 13:51:11 +0200
commit383e041372a86e1a7da8a9a53b42edf7a6db2313 (patch)
tree253feb22d11470db99dfed4f9202afc709a1458d /net
parent4472f8a714f68078788e58b3b8fc164ae1459585 (diff)
downloadbarebox-383e041372a86e1a7da8a9a53b42edf7a6db2313.tar.gz
barebox-383e041372a86e1a7da8a9a53b42edf7a6db2313.tar.xz
net: dhcp: set default DHCP vendor ID to "barebox"
To make debugging of DHCP related issues easier, set DHCP vendor ID to "barebox" by default. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Link: https://lore.barebox.org/20210914064853.2808775-1-o.rempel@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net')
-rw-r--r--net/dhcp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/dhcp.c b/net/dhcp.c
index 427985eca1..d28c37c693 100644
--- a/net/dhcp.c
+++ b/net/dhcp.c
@@ -640,6 +640,8 @@ static int dhcp_global_init(void)
{
globalvar_add_simple_string("dhcp.bootfile", &global_dhcp_bootfile);
globalvar_add_simple_string("dhcp.rootpath", &global_dhcp_rootpath);
+
+ global_dhcp_vendor_id = strdup("barebox");
globalvar_add_simple_string("dhcp.vendor_id", &global_dhcp_vendor_id);
globalvar_add_simple_string("dhcp.client_uuid", &global_dhcp_client_uuid);
globalvar_add_simple_string("dhcp.client_id", &global_dhcp_client_id);