]> git.proxmox.com Git - mirror_frr.git/commit - ospf6d/ospf6_route.h
ospf6d: replace memcmp with correct comparisons
authorIgor Ryzhov <iryzhov@nfware.com>
Mon, 15 Nov 2021 16:45:18 +0000 (19:45 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 16 Nov 2021 09:43:36 +0000 (12:43 +0300)
commit66314e9fe0cbd867fdfe3dd7b2fc71c2e7983454
tree1c59c662df89a0fc63fc6ec92886a07bf112f503
parent8f359e1593c41432273458b0c7bfd7cd27b47d45
ospf6d: replace memcmp with correct comparisons

Using memcmp with complex structures like prefix or ospf6_ls_origin is
not correct, because even two structures with same values in all fields
may have different values in padding bytes and comparison will fail.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
ospf6d/ospf6_route.h