]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: Correct SID check size 14962/head
authorOlivier Dugeon <olivier.dugeon@orange.com>
Thu, 7 Dec 2023 13:53:16 +0000 (14:53 +0100)
committerOlivier Dugeon <olivier.dugeon@orange.com>
Fri, 8 Dec 2023 12:47:34 +0000 (13:47 +0100)
commit397dbbcae6083a00f30ad8310160650ec7ac7a87
tree67420b51cb458090ffdc2b8415503eac4a1e8d39
parentcad5ee56be313c3d5b96082a5133435839af6cca
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>
ospfd/ospf_ext.c