From b4d1f0bae19852f55122d07688ed89913b690e94 Mon Sep 17 00:00:00 2001 From: Quentin Armitage Date: Sun, 1 Nov 2015 20:16:11 +0000 Subject: Add interface index to vrrp dump data Signed-off-by: Quentin Armitage (cherry picked from commit 8a9940ded805dc324f8c963d22861e1f60e6f927) --- keepalived/vrrp/vrrp_data.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/keepalived/vrrp/vrrp_data.c b/keepalived/vrrp/vrrp_data.c index 45d09e6..db55f11 100644 --- a/keepalived/vrrp/vrrp_data.c +++ b/keepalived/vrrp/vrrp_data.c @@ -326,9 +326,10 @@ dump_vrrp(void *data) if (vrrp->smtp_alert) log_message(LOG_INFO, " Using smtp notification"); if (__test_bit(VRRP_VMAC_BIT, &vrrp->vmac_flags)) - log_message(LOG_INFO, " Using VRRP VMAC (flags:%s|%s)" + log_message(LOG_INFO, " Using VRRP VMAC (flags:%s|%s), vmac ifindex %d" , (__test_bit(VRRP_VMAC_UP_BIT, &vrrp->vmac_flags)) ? "UP" : "DOWN" - , (__test_bit(VRRP_VMAC_XMITBASE_BIT, &vrrp->vmac_flags)) ? "xmit_base" : "xmit"); + , (__test_bit(VRRP_VMAC_XMITBASE_BIT, &vrrp->vmac_flags)) ? "xmit_base" : "xmit" + , vrrp->ifp->base_ifindex); } void -- 1.7.12.1