summaryrefslogtreecommitdiffstats
path: root/lib/prefix.h
diff options
context:
space:
mode:
authorKantesh Mundaragi <kmundaragi@vmware.com>2022-05-30 15:42:06 +0200
committerIqra Siddiqui <imujeebsiddi@vmware.com>2023-07-19 14:49:44 +0200
commit725f61150eac3afe2341213190e75563ea646b7e (patch)
treee5468c3dd7b2e945e5f0a49e5e04ff90b75c9f2a /lib/prefix.h
parentMerge pull request #14049 from opensourcerouting/fix/initialize_some_bools (diff)
downloadfrr-725f61150eac3afe2341213190e75563ea646b7e.tar.xz
frr-725f61150eac3afe2341213190e75563ea646b7e.zip
bgpd: Fix coverity for EVPN
Reported Warning: Compare member by member to check object equality RCA: struct evpn_addr contains padding Authored-by: Kantesh Mundaragi <kmundaragi@vmware.com> Signed-off-by: Iqra Siddiqui <imujeebsiddi@vmware.com>
Diffstat (limited to 'lib/prefix.h')
-rw-r--r--lib/prefix.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/prefix.h b/lib/prefix.h
index 90b792b33..7ca525e76 100644
--- a/lib/prefix.h
+++ b/lib/prefix.h
@@ -427,6 +427,7 @@ extern int prefix_cmp(union prefixconstptr ua, union prefixconstptr ub);
extern int prefix_common_bits(union prefixconstptr ua, union prefixconstptr ub);
extern void prefix_copy(union prefixptr udst, union prefixconstptr usrc);
extern void apply_mask(union prefixptr pu);
+extern bool evpn_addr_same(const struct evpn_addr *e1, const struct evpn_addr *e2);
#ifdef __clang_analyzer__
/* clang-SA doesn't understand transparent unions, making it think that the