dhcpmsg.c revision 2
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/Astatic int debug_level;
2N/Astatic const char *err_to_string(int);
2N/Astatic int err_to_syslog(int);
int level)
if (daemon) {
if (is_verbose) {
dhcpmsg_fini(void)
if (is_daemon) {
if (is_verbose) {
closelog();
switch (errlevel) {
case MSG_DEBUG:
case MSG_DEBUG2:
return (LOG_DEBUG);
case MSG_ERROR:
case MSG_ERR:
return (LOG_ERR);
case MSG_WARNING:
return (LOG_WARNING);
case MSG_NOTICE:
return (LOG_NOTICE);
case MSG_CRIT:
return (LOG_CRIT);
case MSG_VERBOSE:
case MSG_INFO:
return (LOG_INFO);
return (LOG_INFO);
switch (errlevel) {
case MSG_DEBUG:
case MSG_DEBUG2:
case MSG_ERR:
case MSG_ERROR:
case MSG_WARNING:
case MSG_NOTICE:
case MSG_CRIT:
case MSG_VERBOSE:
case MSG_INFO: