Brian, On 09/05, Gix, Brian wrote: > > if (net->iv_upd_state == IV_UPD_INIT) { > > - if (iv_index > net->iv_index) > > + if (iv_index > net->iv_index + 1) > > mesh_net_set_seq_num(net, 0); > > I think you have found something, but I think we are missing something here... > > If iv_index > net->iv_index, and iv_update == false, then we still > want to reset to Seq Zero, I think...Even if the increase is just 1. Indeed. Let me re-test both scenarios and I'll get back to you with v2. > So perhaps: > if (iv_index > net->iv_index && !iv_update) > mesh_net_set_seq_num(net, 0); > else if (iv_index > net->iv_index + 2) > mesh_net_set_seq_num(net, 0); > > Or more esoterically (and maybe harder to follow): > if (iv_index > net->iv_index + iv_update) > mesh_net_set_seq_num(net, 0); > > Or something like that. Yeah, that looks reasonable. -- Michał Lowas-Rzechonek <michal.lowas-rzechonek@xxxxxxxxxxx> Silvair http://silvair.com Jasnogórska 44, 31-358 Krakow, POLAND