ip6-nd: initialize radv_info->send_radv to 1 60/37560/3
authorDave Barach <dave@barachs.net>
Sun, 30 Oct 2022 20:45:24 +0000 (16:45 -0400)
committerMatthew Smith <mgsmith@netgate.com>
Sat, 5 Nov 2022 19:11:12 +0000 (19:11 +0000)
commitf094ce7653917b8c331a79c088ef63ea2679c40d
tree64affc51c42375c60064a8adf11c6ed55f5a25cd
parent23c989642c1061e5ebbbe55b6fbde274e0914a90
ip6-nd: initialize radv_info->send_radv to 1

Otherwise, the newly configured interface will never send RADV's.

See below. In the typical case, suppress = 0 and is_no = 0, which
propagates the current value of radv->send_radv:

  radv_info->send_radv =
    (suppress != 0) ? ((is_no != 0) ? 1 : 0) : radv_info->send_radv;

No other bit of code will set send_radv, at least in straightforward
ways.

Type:fix

Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: If9368155f7676460ca1f87729c2b3c453405d08d
src/vnet/ip6-nd/ip6_ra.c