- removed dprintf forn configure.in
- added "uname -a" string to startup/accept debug copnnection
This commit is contained in:
parent
26fe550029
commit
8edac3c2b7
@ -15,9 +15,6 @@
|
|||||||
/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
|
/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
|
||||||
#undef HAVE_DOPRNT
|
#undef HAVE_DOPRNT
|
||||||
|
|
||||||
/* Define to 1 if you have the `dprintf' function. */
|
|
||||||
#undef HAVE_DPRINTF
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <errno.h> header file. */
|
/* Define to 1 if you have the <errno.h> header file. */
|
||||||
#undef HAVE_ERRNO_H
|
#undef HAVE_ERRNO_H
|
||||||
|
|
||||||
@ -180,9 +177,6 @@
|
|||||||
/* Define to 1 if you have the <varargs.h> header file. */
|
/* Define to 1 if you have the <varargs.h> header file. */
|
||||||
#undef HAVE_VARARGS_H
|
#undef HAVE_VARARGS_H
|
||||||
|
|
||||||
/* Define to 1 if you have the `vdprintf' function. */
|
|
||||||
#undef HAVE_VDPRINTF
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `vfprintf' function. */
|
/* Define to 1 if you have the `vfprintf' function. */
|
||||||
#undef HAVE_VFPRINTF
|
#undef HAVE_VFPRINTF
|
||||||
|
|
||||||
|
|||||||
@ -366,7 +366,7 @@ AC_CHECK_FUNCS(getopt_long setsid syslog)
|
|||||||
AC_CHECK_FUNCS(getuid setuid getgid setgid getpwnam chroot)
|
AC_CHECK_FUNCS(getuid setuid getgid setgid getpwnam chroot)
|
||||||
AC_CHECK_FUNCS(socket bind select read send sendto fcntl)
|
AC_CHECK_FUNCS(socket bind select read send sendto fcntl)
|
||||||
AC_CHECK_FUNCS(strncpy strchr strstr sprintf vfprintf vsnprintf)
|
AC_CHECK_FUNCS(strncpy strchr strstr sprintf vfprintf vsnprintf)
|
||||||
AC_CHECK_FUNCS(dprintf vdprintf listen accept)
|
AC_CHECK_FUNCS(listen accept)
|
||||||
AC_CHECK_FUNCS(fgets sscanf)
|
AC_CHECK_FUNCS(fgets sscanf)
|
||||||
AC_CHECK_FUNCS(hstrerror,,AC_CHECK_LIB(resolv,hstrerror,[
|
AC_CHECK_FUNCS(hstrerror,,AC_CHECK_LIB(resolv,hstrerror,[
|
||||||
AC_DEFINE_UNQUOTED(HAVE_HSTRERROR)
|
AC_DEFINE_UNQUOTED(HAVE_HSTRERROR)
|
||||||
|
|||||||
@ -19,7 +19,9 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
AM_CFLAGS = -Wall -DBUILDSTR=\"`cat .buildno`\" -D_GNU_SOURCE
|
AM_CFLAGS = -Wall -D_GNU_SOURCE \
|
||||||
|
-DBUILDSTR="\"`cat .buildno`\"" \
|
||||||
|
-DUNAME="\"`uname -a`\""
|
||||||
|
|
||||||
#
|
#
|
||||||
# Siproxd itself
|
# Siproxd itself
|
||||||
|
|||||||
@ -176,6 +176,7 @@ void log_tcp_connect(void) {
|
|||||||
} else {
|
} else {
|
||||||
debug_fd=accept(debug_listen_fd, NULL, NULL);
|
debug_fd=accept(debug_listen_fd, NULL, NULL);
|
||||||
INFO("Accepted DEBUG TCP connection [fd=%i]", debug_fd);
|
INFO("Accepted DEBUG TCP connection [fd=%i]", debug_fd);
|
||||||
|
DEBUGC(DBCLASS_ALL,UNAME);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -34,6 +34,7 @@
|
|||||||
#define DBCLASS_RTP 0x00000200 /* RTP proxy */
|
#define DBCLASS_RTP 0x00000200 /* RTP proxy */
|
||||||
#define DBCLASS_ACCESS 0x00000400 /* Access list evaluation */
|
#define DBCLASS_ACCESS 0x00000400 /* Access list evaluation */
|
||||||
#define DBCLASS_AUTH 0x00000800 /* Authentication */
|
#define DBCLASS_AUTH 0x00000800 /* Authentication */
|
||||||
|
#define DBCLASS_ALL 0xffffffff /* All classes */
|
||||||
|
|
||||||
|
|
||||||
void log_set_pattern(int pattern);
|
void log_set_pattern(int pattern);
|
||||||
|
|||||||
@ -178,7 +178,8 @@ int main (int argc, char *argv[])
|
|||||||
/*
|
/*
|
||||||
* Init stuff
|
* Init stuff
|
||||||
*/
|
*/
|
||||||
INFO(PACKAGE"-"VERSION"-"BUILDSTR" started");
|
INFO(PACKAGE"-"VERSION"-"BUILDSTR" starting up");
|
||||||
|
DEBUGC(DBCLASS_ALL,UNAME);
|
||||||
|
|
||||||
/* read the config file */
|
/* read the config file */
|
||||||
if (read_config(configfile, config_search) == STS_FAILURE) exit(1);
|
if (read_config(configfile, config_search) == STS_FAILURE) exit(1);
|
||||||
@ -251,6 +252,8 @@ int main (int argc, char *argv[])
|
|||||||
*/
|
*/
|
||||||
log_set_silence(configuration.silence_log);
|
log_set_silence(configuration.silence_log);
|
||||||
|
|
||||||
|
INFO(PACKAGE"-"VERSION"-"BUILDSTR" started");
|
||||||
|
DEBUGC(DBCLASS_ALL,UNAME);
|
||||||
/*
|
/*
|
||||||
* Main loop
|
* Main loop
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user