]> git.ipfire.org Git - thirdparty/bird.git/commit
RPKI: refactored pdu to host byte order conversion
authorMaria Matejka <mq@ucw.cz>
Thu, 28 Nov 2024 13:10:40 +0000 (14:10 +0100)
committerMaria Matejka <mq@ucw.cz>
Thu, 28 Nov 2024 13:19:47 +0000 (14:19 +0100)
commit3ca6e03db774f0a2d462faf20646e4a341664c8d
treee19caf258a49d2b2de80200ddc7e44ae8fa77711
parent54499f8850fd5b3a25639dc06d5618ae98ac1537
RPKI: refactored pdu to host byte order conversion

We shouldn't convert bytes 2 and 3 of the PDU blindly, there are several
cases where these are used by bytes. Instead, the conversion is done
only where needed.

This fixes misinterpretation bug of ASPA PDU flags on little endian
architectures.
proto/rpki/packets.c