turn_on
chtype turn_on, turn_off;
((turn_on = ((oldmode ^ newmode) & newmode)) !=
if ((turn_on = ((oldmode ^ newmode) & newmode)) != A_NORMAL) {
if (turn_on & bit_attributes[i]) {
if ((turn_on &= ~bit_attributes[i]) ==
ATTR_STATE = turn_on(putout, attr);
STATIC attr_t turn_on(int (*)(int), attr_t);
ATTR_STATE = turn_on(putout, attr);
static attr_t turn_on(int (*)(int), attr_t);
uint64_t turn_on, turn_off;
turn_on = (flags ^ intf_flags) & ~cantchange_flags;
turn_off = intf_flags & turn_on;
turn_on ^= turn_off;
*onp = turn_on;
uint64_t turn_on;
ip_sioctl_flags_onoff(ipif, flags, &turn_on, &turn_off);
if ((turn_on|turn_off) == 0)
(turn_on|intf_flags) & IFF_NOFAILOVER)
if ((intf_flags & IFF_VRRP) && ((turn_off | turn_on) & IFF_UP)) {
if ((turn_off | turn_on) & IFF_NOACCEPT) {
if (turn_on & IFF_NOFAILOVER) {
turn_on |= IFF_DEPRECATED;
if ((turn_on & appflags) && !(flags & IFF_NOFAILOVER))
if ((turn_on & IFF_TEMPORARY) && !(ipif->ipif_isv6))
if ((turn_on & IFF_ROUTER) && (phyi->phyint_flags & PHYI_LOOPBACK))
if ((turn_on|turn_off) & IFF_PHYINT_FLAGS)
if (turn_on & PHYI_STANDBY) {
turn_on |= PHYI_INACTIVE;
if ((turn_on | turn_off) & ILLF_ROUTER) {
err = ill_forward_set(ill, ((turn_on & ILLF_ROUTER) != 0));
!(turn_on & IPIF_UP)) {
ipif->ipif_flags |= (turn_on & IFF_LOGINT_FLAGS);
ill->ill_flags |= (turn_on & IFF_PHYINTINST_FLAGS);
phyi->phyint_flags |= (turn_on & IFF_PHYINT_FLAGS);
if ((turn_on|turn_off) &
(!(ipif->ipif_flags & IPIF_NOLOCAL) && !(turn_on & IPIF_NOLOCAL) ||
if ((turn_on|turn_off) &
if (((ipif->ipif_flags | turn_on) & IPIF_UP) &&
turn_on &= ~IPIF_UP;
} else if ((turn_on|turn_off) & ILLF_NOACCEPT) {
uint64_t turn_on, turn_off;
ip_sioctl_flags_onoff(ipif, flags, &turn_on, &turn_off);
turn_on &= ~IFF_UP;
if ((turn_on|turn_off) & IFF_PHYINT_FLAGS)
ipif->ipif_flags |= (turn_on & IFF_LOGINT_FLAGS);
ill->ill_flags |= (turn_on & IFF_PHYINTINST_FLAGS);
phyi->phyint_flags |= (turn_on & IFF_PHYINT_FLAGS);
if ((turn_on|turn_off) & (PHYI_FAILED | PHYI_INACTIVE | PHYI_OFFLINE)) {
if ((turn_on|turn_off) & ILLF_NOACCEPT) {
uint64_t turn_on, turn_off;
ip_sioctl_flags_onoff(ipif, flags, &turn_on, &turn_off);
if (!((turn_on|turn_off) & ILLF_NOACCEPT))