.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "CHANGE_ACTIVE_INTERFACE" "" "06 October 2005" "" ""
.SH NAME
change_active_interface \- change the active slave into the specified one
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
void change_active_interface (struct bonding * \fIbond\fB, struct slave * \fInew\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIbond\fB\fR
our bonding struct
.TP
\fB\fInew\fB\fR
the new slave to make the active one
.SH "DESCRIPTION"
.PP
Set the new slave to the bond's settings and unset them on the old
current_slave.
Setting include flags, mc-list, promiscuity, allmulti, etc.
.PP
If \fInew\fR\&'s link state is BOND_LINK_BACK we'll set it to BOND_LINK_UP,
because it is apparently the best available slave we have, even though its
updelay hasn't timed out yet.
.SH "WARNING"
.PP
Caller must hold ptrlock for writing.