mirror of
https://github.com/pavel-odintsov/fastnetmon
synced 2024-11-23 13:22:36 +01:00
Removed not used platform configuration parameter as we read it from configuraration file
This commit is contained in:
parent
7464c8dc94
commit
c43b438885
@ -190,7 +190,6 @@ set(FASTNETMON_ATTACK_DETAILS_FOLDER "/var/log/fastnetmon_attacks")
|
||||
set(FASTNETMON_NOTIFY_SCRIPT_PATH_DEFAULT "/usr/local/bin/notify_about_attack.sh")
|
||||
set(FASTNETMON_NETWORK_WHITELIST_PATH "/etc/networks_whitelist")
|
||||
set(FASTNETMON_NETWORKS_LIST_PATH "/etc/networks_list")
|
||||
set(FASTNETMON_COMMAND_PIPE_PATH "/var/run/exabgp.cmd")
|
||||
set(FASTNETMON_BACKTRACE_PATH "/var/log/fastnetmon_backtrace.dump")
|
||||
|
||||
# For FreeBSD based platforms we need to adjust them
|
||||
@ -204,7 +203,6 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" OR ${CMAKE_SYSTEM_NAME} STREQUAL "Dr
|
||||
set(FASTNETMON_NOTIFY_SCRIPT_PATH_DEFAULT "${FREEBSD_DEFAULT_PREFIX}/bin/notify_about_attack.sh")
|
||||
set(FASTNETMON_NETWORK_WHITELIST_PATH "${FREEBSD_DEFAULT_PREFIX}/etc/networks_whitelist")
|
||||
set(FASTNETMON_NETWORKS_LIST_PATH "${FREEBSD_DEFAULT_PREFIX}/etc/networks_list")
|
||||
set(FASTNETMON_COMMAND_PIPE_PATH "/var/run/fastnetmon/exabgp.cmd")
|
||||
set(FASTNETMON_BACKTRACE_PATH "/var/log/fastnetmon/fastnetmon_backtrace.dump")
|
||||
endif()
|
||||
|
||||
|
@ -22,9 +22,6 @@ class FastnetmonPlatformConfigurtion {
|
||||
// Default path to file with all networks listing
|
||||
std::string networks_list_path = "${FASTNETMON_NETWORKS_LIST_PATH}";
|
||||
|
||||
// Path to ExaBGP pipe
|
||||
std::string exabgp_command_pipe = "${FASTNETMON_COMMAND_PIPE_PATH}";
|
||||
|
||||
// Path to temporarily store backtrace when fatal failure happened
|
||||
std::string backtrace_path = "${FASTNETMON_BACKTRACE_PATH}";
|
||||
};
|
||||
|
@ -236,6 +236,8 @@ bool monitor_openvz_vps_ip_addresses = false;
|
||||
// We will announce whole subnet instead single IP with BGP if this flag enabled
|
||||
bool exabgp_announce_whole_subnet = false;
|
||||
|
||||
std::string exabgp_command_pipe = "";
|
||||
|
||||
// We will announce only /32 host
|
||||
bool exabgp_announce_host = false;
|
||||
|
||||
@ -1515,7 +1517,7 @@ void redirect_fds() {
|
||||
// Handles fatal failure of FastNetMon's daemon
|
||||
void fatal_signal_handler(int signum) {
|
||||
::signal(signum, SIG_DFL);
|
||||
boost::stacktrace::safe_dump_to(backtrace_path.c_str());
|
||||
boost::stacktrace::safe_dump_to(fastnetmon_platform_configuration.backtrace_path.c_str());
|
||||
::raise(SIGABRT);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user