When a CARP state change is caused by an ifconfig request, log it accordingly.
Suggested by: glebius MFC after: 1 week MFC with: 277530
This commit is contained in:
parent
ffc610b221
commit
369a670857
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277563
@ -1702,12 +1702,14 @@ carp_ioctl(struct ifreq *ifr, u_long cmd, struct thread *td)
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user