if (iface->state == IFS_UP)
interface_event(iface, IFEV_DOWN);
interface_flush_state(iface);
+ interface_ip_flush(&iface->config_ip);
+ interface_ip_flush(&iface->proto_ip);
iface->state = IFS_DOWN;
}
if (iface->state == IFS_UP)
interface_event(iface, IFEV_DOWN);
iface->state = IFS_TEARDOWN;
- interface_ip_flush(&iface->config_ip);
- interface_ip_flush(&iface->proto_ip);
interface_proto_event(iface->proto, PROTO_CMD_TEARDOWN, force);
if (force)
interface_flush_state(iface);