#include "vrrp.h"
#include "vrrp_debug.h"
-#include "vrrp_memory.h"
#include "vrrp_vty.h"
+#include "vrrp_zebra.h"
#ifndef VTYSH_EXTRACT_PL
#include "vrrpd/vrrp_vty_clippy.c"
#endif
VTY_DECLVAR_CONTEXT(interface, ifp);
struct vrrp_vrouter *vr;
- uint16_t newadvint = no ? vd.advertisement_interval * 10:
- advertisement_interval;
+ uint16_t newadvint =
+ no ? vd.advertisement_interval * CS2MS : advertisement_interval;
- if (newadvint % 10 != 0) {
- vty_out(vty, "%% Value must be a multiple of 10\n");
+ if (newadvint % CS2MS != 0) {
+ vty_out(vty, "%% Value must be a multiple of %u\n",
+ (unsigned int)CS2MS);
return CMD_WARNING_CONFIG_FAILED;
}
"Force VRRP router into administrative shutdown\n")
{
if (adv) {
- if (advint % 10 != 0) {
- vty_out(vty, "%% Value must be a multiple of 10\n");
+ if (advint % CS2MS != 0) {
+ vty_out(vty, "%% Value must be a multiple of %u\n",
+ (unsigned int)CS2MS);
return CMD_WARNING_CONFIG_FAILED;
}
/* all internal computations are in centiseconds */