/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
#ifndef UTIL_H
#define UTIL_H
#include <libinetutil.h>
#include <dhcpagent_ipc.h>
#include "common.h"
/*
* general utility functions which have no better home. see util.c
* for documentation on how to use the exported functions.
*/
#ifdef __cplusplus
extern "C" {
#endif
struct dhcp_timer_s {
};
/* conversion functions */
const char *monosec_to_string(monosec_t);
/* shutdown handlers */
void graceful_shutdown(int);
void inactivity_shutdown(iu_tq_t *, void *);
/* timer functions */
/* miscellaneous */
int daemonize(void);
const char *iffile_to_hostname(const char *);
const char **, const char **, uint_t *);
void write_lease_to_hostconf(dhcp_smach_t *);
#ifdef __cplusplus
}
#endif
#endif /* UTIL_H */