rstate = Connected after last RI-Rsp

This commit is contained in:
Josh Deprez 2024-04-01 15:09:26 +11:00
parent 53d6a21d5d
commit 26e9f67dc5
Signed by: josh
SSH key fingerprint: SHA256:zZji7w1Ilh2RuUpbQcqkLPrqmRwpiCSycbF2EfKm6Kw

View file

@ -276,6 +276,10 @@ func (p *peer) handle(ctx context.Context) error {
log.Printf("Couldn't send RI-Ack packet: %v", err)
return err
}
if pkt.Flags&aurp.RoutingFlagLast != 0 {
// No longer waiting for an RI-Rsp
rstate = rsConnected
}
case *aurp.RIAckPacket:
switch sstate {