From 0518070d8ad99faf489334b119520f53679fde65 Mon Sep 17 00:00:00 2001 From: Christian Ruppert Date: Wed, 14 Sep 2016 21:14:01 +0200 Subject: [PATCH] Show source IP of advertisement Also showing the IP address of the advertisement might help while troubleshooting Signed-off-by: Christian Ruppert --- src/carp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/carp.c b/src/carp.c index 2b1599c..c227029 100644 --- a/src/carp.c +++ b/src/carp.c @@ -573,8 +573,8 @@ static void packethandler(unsigned char *dummy, carp_set_state(&sc, BACKUP); carp_setrun(&sc, 0); - logfile(LOG_WARNING, _("Preferred master advertised: " - "going back to BACKUP state")); + logfile(LOG_WARNING, _("Preferred master advertised from %s: " + "going back to BACKUP state"), inet_ntoa(iphead.ip_src)); } /* @@ -588,8 +588,8 @@ static void packethandler(unsigned char *dummy, iphead.ip_src.s_addr > srcip.s_addr)) { gratuitous_arp(dev_desc_fd); sc.sc_delayed_arp = 2; /* and yet another in 2 ticks */ - logfile(LOG_WARNING, _("Non-preferred master advertising: " - "reasserting control of VIP with another gratuitous arp")); + logfile(LOG_WARNING, _("Non-preferred master advertising from %s: " + "reasserting control of VIP with another gratuitous arp"), inet_ntoa(iphead.ip_src)); } break; case BACKUP: