]> git.puffer.fish Git - mirror/frr.git/commit
lib: Correct valgrind errors 11715/head
authorOlivier Dugeon <olivier.dugeon@orange.com>
Mon, 1 Aug 2022 15:26:36 +0000 (17:26 +0200)
committerOlivier Dugeon <olivier.dugeon@orange.com>
Mon, 1 Aug 2022 15:32:56 +0000 (17:32 +0200)
commit9bf9bd1a0b818f8cd1554ef07d47028247703b75
treeef863cb9f620eb9bd43a1224e1beedba8aeb2606
parentad9b47e65eda5a0fd33e3fc874457bf1fb1ccd7e
lib: Correct valgrind errors

In CSPF topo test, valgrind detects uninitialized bytes when exporting TE
Opaque information through ZEBRA. This is due to C pragma compilation directive
__attribute__(aligned(8)) in struct ls_node_id in link_state.h. Valgrind
consideris that struct ls_node_id nid = {} doesn't initialized the padding
bytes introduced by gcc.

This patch simply removes the C pragma compilation directive and also takes
opportunity to remove the transmission of remote node id for vertices and
subnets which is not known. Indeed, remote node id is only pertinent for
edges.

Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
lib/link_state.c
lib/link_state.h