summaryrefslogtreecommitdiffstats
path: root/vrrpd
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-09-11 22:29:05 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-12-09 20:39:18 +0100
commitfb8b348cc115eaac21ad3986ad65b53400462360 (patch)
treefd0b2af5cd9aa15ffc6e2345667f1701c447c2c1 /vrrpd
parentvrrpd: make vrrp_[add|del]_ip not insane (diff)
downloadfrr-fb8b348cc115eaac21ad3986ad65b53400462360.tar.xz
frr-fb8b348cc115eaac21ad3986ad65b53400462360.zip
vrrpd: const vrrp_lookup()
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'vrrpd')
-rw-r--r--vrrpd/vrrp.c4
-rw-r--r--vrrpd/vrrp.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/vrrpd/vrrp.c b/vrrpd/vrrp.c
index 1cdcaf88a..a0d5a4170 100644
--- a/vrrpd/vrrp.c
+++ b/vrrpd/vrrp.c
@@ -654,12 +654,12 @@ void vrrp_vrouter_destroy(struct vrrp_vrouter *vr)
XFREE(MTYPE_VRRP_RTR, vr);
}
-struct vrrp_vrouter *vrrp_lookup(struct interface *ifp, uint8_t vrid)
+struct vrrp_vrouter *vrrp_lookup(const struct interface *ifp, uint8_t vrid)
{
struct vrrp_vrouter vr;
vr.vrid = vrid;
- vr.ifp = ifp;
+ vr.ifp = (struct interface *)ifp;
return hash_lookup(vrrp_vrouters_hash, &vr);
}
diff --git a/vrrpd/vrrp.h b/vrrpd/vrrp.h
index 9c1139837..b1994c23f 100644
--- a/vrrpd/vrrp.h
+++ b/vrrpd/vrrp.h
@@ -567,6 +567,6 @@ int vrrp_config_write_global(struct vty *vty);
/*
* Find VRRP Virtual Router by Virtual Router ID
*/
-struct vrrp_vrouter *vrrp_lookup(struct interface *ifp, uint8_t vrid);
+struct vrrp_vrouter *vrrp_lookup(const struct interface *ifp, uint8_t vrid);
#endif /* __VRRP_H__ */