On 06/27, Michał Lowas-Rzechonek wrote: > If we are in IV Update state, packets shall be transmitted using IV > Index - 1, including relayed packets. > --- > mesh/net.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mesh/net.c b/mesh/net.c > index a5693f154..0a6ff8eac 100644 > --- a/mesh/net.c > +++ b/mesh/net.c > @@ -2512,7 +2512,7 @@ static void net_rx(void *net_ptr, void *user_data) > relay_advice = packet_received(net, key_id, iv_index, > out, out_size, rssi); > if (relay_advice > data->relay_advice) { > - data->iv_index = iv_index; > + data->iv_index = mesh_net_get_iv_index(net); Ew, I misread the spec. 3.4.6.3 explicitly says: "When a message is retransmitted, as defined below, the IV Index used when retransmitting the message shall be the same as the IV Index when it was received" Please disregard this patch. cheers -- Michał Lowas-Rzechonek <michal.lowas-rzechonek@xxxxxxxxxxx> Silvair http://silvair.com Jasnogórska 44, 31-358 Krakow, POLAND