]> git.puffer.fish Git - matthieu/frr.git/commit
ospf6d: Increment sequence number correctly in Authentication Trailer
authorDavid Ward <david.ward@ll.mit.edu>
Mon, 19 Jun 2023 20:00:38 +0000 (16:00 -0400)
committerDavid Ward <david.ward@ll.mit.edu>
Mon, 19 Jun 2023 20:00:38 +0000 (16:00 -0400)
commit9a2d6d98ec12f0adb63cc3748eeb1d9effcdd34b
tree84e86869fb67b9ac5201ae064302680ff34ba604
parent4230f85bef81902c6edc6b650096262f9a166baa
ospf6d: Increment sequence number correctly in Authentication Trailer

According to RFC 7166, the sequence number should be treated as an
unsigned 64-bit value, although it is stored as two 32-bit values.

When incrementing it, the code caused the lower-order 32-bit value
to skip from 0xFFFFFFFE to 0. As a side effect, an error was never
produced if the full 64-bit sequence number wrapped.

Fixes: #13805
Signed-off-by: David Ward <david.ward@ll.mit.edu>
ospf6d/ospf6_auth_trailer.c