svn commit: r277563 - head/sys/netinet

Will Andrews will at FreeBSD.org
Fri Jan 23 14:28:13 UTC 2015


Author: will
Date: Fri Jan 23 14:28:12 2015
New Revision: 277563
URL: https://svnweb.freebsd.org/changeset/base/277563

Log:
  When a CARP state change is caused by an ifconfig request, log it accordingly.
  
  Suggested by:	glebius
  MFC after:	1 week
  MFC with:	277530

Modified:
  head/sys/netinet/ip_carp.c

Modified: head/sys/netinet/ip_carp.c
==============================================================================
--- head/sys/netinet/ip_carp.c	Fri Jan 23 13:26:35 2015	(r277562)
+++ head/sys/netinet/ip_carp.c	Fri Jan 23 14:28:12 2015	(r277563)
@@ -1702,12 +1702,14 @@ carp_ioctl(struct ifreq *ifr, u_long cmd
 			switch (carpr.carpr_state) {
 			case BACKUP:
 				callout_stop(&sc->sc_ad_tmo);
-				carp_set_state(sc, BACKUP, "SIOCSVH");
+				carp_set_state(sc, BACKUP,
+				    "user requested via ifconfig");
 				carp_setrun(sc, 0);
 				carp_delroute(sc);
 				break;
 			case MASTER:
-				carp_master_down_locked(sc, "SIOCSVH");
+				carp_master_down_locked(sc,
+				    "user requested via ifconfig");
 				break;
 			default:
 				break;


More information about the svn-src-head mailing list