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

2021-10-02 Thread Sascha Hauer
On Tue, Sep 14, 2021 at 08:48:53AM +0200, Oleksij Rempel wrote:
> To make debugging of DHCP related issues easier, set DHCP vendor ID to
> "barebox" by default.
> 
> Signed-off-by: Oleksij Rempel 
> ---
>  net/dhcp.c | 2 ++
>  1 file changed, 2 insertions(+)

Applied, thanks

Sascha


-- 
Pengutronix e.K.   | |
Steuerwalder Str. 21   | http://www.pengutronix.de/  |
31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

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


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

2021-09-14 Thread Oleksij Rempel
To make debugging of DHCP related issues easier, set DHCP vendor ID to
"barebox" by default.

Signed-off-by: Oleksij Rempel 
---
 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", _dhcp_bootfile);
globalvar_add_simple_string("dhcp.rootpath", _dhcp_rootpath);
+
+   global_dhcp_vendor_id = strdup("barebox");
globalvar_add_simple_string("dhcp.vendor_id", _dhcp_vendor_id);
globalvar_add_simple_string("dhcp.client_uuid", 
_dhcp_client_uuid);
globalvar_add_simple_string("dhcp.client_id", _dhcp_client_id);
-- 
2.30.2


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