Skip to content

Commit 2a5d367

Browse files
author
gupurush
committed
Added change to ensure first character in byte stream indicates its a null terminated string
1 parent 1253b16 commit 2a5d367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

files/dhcp/dhclient.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ request subnet-mask, broadcast-address, time-offset, routers,
4141
{% if ZTP is defined and ZTP_DHCP_DISABLED is not defined %}
4242
send user-class "SONiC-ZTP";
4343
send dhcp6.user-class "SONiC-ZTP";
44-
send dhcp-client-identifier "SONiC##{{ ZTP['mode']['product-name'] }}##{{ ZTP['mode']['serial-no'] }}";
44+
send dhcp-client-identifier "\x00SONiC##{{ ZTP['mode']['product-name'] }}##{{ ZTP['mode']['serial-no'] }}";
4545
retry 60;
4646
{% endif %}
4747

0 commit comments

Comments
 (0)