6
6
* Part: Dynamic data structure definition.
8
* Version: $Id: global_data.c,v 1.1.15 2007/09/15 04:07:41 acassen Exp $
8
* Version: $Id: global_data.c,v 1.1.17 2009/03/05 01:31:12 acassen Exp $
10
10
* Author: Alexandre Cassen, <acassen@linux-vs.org>
19
19
* as published by the Free Software Foundation; either version
20
20
* 2 of the License, or (at your option) any later version.
22
* Copyright (C) 2001-2007 Alexandre Cassen, <acassen@freebox.fr>
22
* Copyright (C) 2001-2009 Alexandre Cassen, <acassen@freebox.fr>
25
25
#include <syslog.h>
109
110
dump_email(void *data_obj)
111
112
char *addr = data_obj;
112
syslog(LOG_INFO, " Email notification = %s", addr);
113
log_message(LOG_INFO, " Email notification = %s", addr);
156
157
if (data->router_id ||
157
158
data->smtp_server || data->smtp_connection_to || data->email_from) {
158
syslog(LOG_INFO, "------< Global definitions >------");
159
log_message(LOG_INFO, "------< Global definitions >------");
160
161
if (data->router_id)
161
syslog(LOG_INFO, " Router ID = %s", data->router_id);
162
log_message(LOG_INFO, " Router ID = %s", data->router_id);
162
163
if (data->plugin_dir)
163
syslog(LOG_INFO, " Plugin dir = %s", data->plugin_dir);
164
log_message(LOG_INFO, " Plugin dir = %s", data->plugin_dir);
164
165
if (data->smtp_server)
165
syslog(LOG_INFO, " Smtp server = %s",
166
log_message(LOG_INFO, " Smtp server = %s",
166
167
inet_ntop2(data->smtp_server));
167
168
if (data->smtp_connection_to)
168
syslog(LOG_INFO, " Smtp server connection timeout = %lu",
169
log_message(LOG_INFO, " Smtp server connection timeout = %lu",
169
170
data->smtp_connection_to / TIMER_HZ);
170
171
if (data->email_from) {
171
syslog(LOG_INFO, " Email notification from = %s",
172
log_message(LOG_INFO, " Email notification from = %s",
172
173
data->email_from);
173
174
dump_list(data->email);