Displaying 2 results from an estimated 2 matches for "logmode".
Did you mean:
longmode
2006 May 06
1
IPsec with racoon2
...spmd {
unix "/var/run/racoon/spmif";
};
spmd_password "/usr/local/etc/racoon2/spmd.pwd";
};
# resolver info
resolver
{
resolver off;
};
#
# default section
#
default
{
remote {
ikev2 {
logmode normal;
kmp_sa_lifetime_time infinite;
kmp_sa_lifetime_byte infinite;
max_retry_to_send 3;
interval_to_send 10 sec;
times_per_send 1;
kmp_sa_nego_time_limi...
2010 Sep 20
0
No subject
...ogger.c
+++ b/src/logger.c
@@ -69,14 +69,23 @@
=20
va_start(ap, format);
=20
+ time_t t =3D time(NULL);
+ char time[32];
+ char* time1 =3D asctime(localtime(&t));
+ strncpy(time, time1, 26);
+ char* newline =3D strchr(time, '\n');
+ if(newline)
+ *newline =3D '\0';
+
switch(logmode) {
case LOGMODE_STDERR:
+ fprintf(stderr, "%s%s ", time, ":");
vfprintf(stderr, format, ap);
fprintf(stderr, "\n");
fflush(stderr);
break;
case LOGMODE_FILE:
- fprintf(logfile, "%ld %s[%ld]: ", time(NULL), logident, =
(long)logpid);...