]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: Correct SID check size 14979/head
authorOlivier Dugeon <olivier.dugeon@orange.com>
Thu, 7 Dec 2023 13:53:16 +0000 (14:53 +0100)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Mon, 11 Dec 2023 12:08:24 +0000 (12:08 +0000)
commit158977f9aa87780505b5d187ffe6e1ede677b541
tree55c918852ee2913ee0e525b884f0a9a7a972a29c
parente19c28ba4695f28264f3d0c9fac173e2b954023a
ospfd: Correct SID check size

Segment Router Identifier (SID) could be an index (4 bytes) within a range
(SRGB or SRLB) or an MPLS label (3 bytes). Thus, before calling check_size
macro to verify SID TLVs size, it is mandatory to determine the SID type to
avoid wrong assert.

Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
(cherry picked from commit 397dbbcae6083a00f30ad8310160650ec7ac7a87)
ospfd/ospf_ext.c