Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
XFREE(MTYPE_VRRP_RTR, 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;
{
struct vrrp_vrouter vr;
vr.vrid = vrid;
+ vr.ifp = (struct interface *)ifp;
return hash_lookup(vrrp_vrouters_hash, &vr);
}
return hash_lookup(vrrp_vrouters_hash, &vr);
}
/*
* Find VRRP Virtual Router by Virtual Router ID
*/
/*
* 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);