Skip to content

Commit

Permalink
zebra: fix encoded DNSSL length
Browse files Browse the repository at this point in the history
The encoded DNSSL length is not set so the value is missing from RA
packet.

Signed-off-by: Igor Ryzhov <[email protected]>
  • Loading branch information
idryzhov committed Apr 15, 2024
1 parent 572b6f3 commit 8d6f7a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zebra/zebra_nb_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -3187,6 +3187,7 @@ int lib_interface_zebra_ipv6_router_advertisements_dnssl_dnssl_domain_create(
strlcpy(dnssl.name, yang_dnode_get_string(args->dnode, "domain"),
sizeof(dnssl.name));
ret = rtadv_dnssl_encode(dnssl.encoded_name, dnssl.name);
dnssl.encoded_len = ret;

if (args->event == NB_EV_VALIDATE) {
if (ret < 0) {
Expand Down

0 comments on commit 8d6f7a4

Please sign in to comment.