[PATCH v1] net: dhcp: set default DHCP vendor ID to "barebox"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



To make debugging of DHCP related issues easier, set DHCP vendor ID to
"barebox" by default.

Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx>
---
 net/dhcp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/dhcp.c b/net/dhcp.c
index 427985eca..d28c37c69 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);
-- 
2.30.2


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux