summaryrefslogtreecommitdiff
path: root/lib/prefix.h
diff options
context:
space:
mode:
authorKantesh Mundaragi <kmundaragi@vmware.com>2022-05-30 06:42:06 -0700
committerIqra Siddiqui <imujeebsiddi@vmware.com>2023-07-19 05:49:44 -0700
commit725f61150eac3afe2341213190e75563ea646b7e (patch)
treee5468c3dd7b2e945e5f0a49e5e04ff90b75c9f2a /lib/prefix.h
parent58560337776556c1a2d8ed3578f6b51e4621fe22 (diff)
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 90b792b33c..7ca525e762 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