2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A#
pragma ident "%Z%%M% %I% %E% SMI" 2N/A * dhcpmsg(): logs a message to the console or to syslog 2N/A * input: int: the level to log the message at 2N/A * const char *: a printf-like format string 2N/A * ...: arguments to the format string 2N/A * either log to stderr, or log to syslog. print out unix 2N/A * error message if errlevel is MSG_ERR and errno is set 2N/A * dhcpmsg_init(): opens and initializes the DHCP messaging facility 2N/A * input: const char *: the name of the executable 2N/A * boolean_t: whether the executable is a daemon 2N/A * boolean_t: whether the executable is running "verbosely" 2N/A * int: the debugging level the executable is being run at 2N/A * dhcpmsg_fini(): closes the DHCP messaging facility. 2N/A * err_to_syslog(): converts a dhcpmsg log level into a syslog log level 2N/A * input: int: the dhcpmsg log level 2N/A * output: int: the syslog log level 2N/A * err_to_string(): converts a log level into a string 2N/A * input: int: the log level 2N/A * output: const char *: the stringified log level 2N/A return (
"CRITICAL");
2N/A return (
"<unknown>");