From d941526f437bbea4a8647aac1c46a0460a5e29d5 Mon Sep 17 00:00:00 2001 From: Guilherme Maciel Ferreira Date: Tue, 13 Mar 2012 20:54:49 -0300 Subject: [PATCH] Renamed the global "source-network-interface" to "default-source-network-interface". --- src/config/option/sourcenetworkinterfaceoption.cpp | 6 +++--- src/config/option/sourcenetworkinterfaceoption.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/config/option/sourcenetworkinterfaceoption.cpp b/src/config/option/sourcenetworkinterfaceoption.cpp index edfa292..96fbc57 100644 --- a/src/config/option/sourcenetworkinterfaceoption.cpp +++ b/src/config/option/sourcenetworkinterfaceoption.cpp @@ -33,8 +33,8 @@ using I2n::Logger::GlobalLogger; SourceNetworkInterfaceOption::SourceNetworkInterfaceOption() : ConfigurationOption( - "source-network-interface", - value(), + "default-source-network-interface", + value()->default_value( "" ), "The network interface from where the packets will be received and originated" ) { @@ -49,7 +49,7 @@ bool SourceNetworkInterfaceOption::parse( Configuration *configuration ) { - // source-network-interface + // default-source-network-interface if ( 1 <= vm.count( get_command_string() ) ) { string source_network_interface = vm[ get_command_string() ].as (); diff --git a/src/config/option/sourcenetworkinterfaceoption.h b/src/config/option/sourcenetworkinterfaceoption.h index 8a6e2af..f149751 100644 --- a/src/config/option/sourcenetworkinterfaceoption.h +++ b/src/config/option/sourcenetworkinterfaceoption.h @@ -30,8 +30,8 @@ //----------------------------------------------------------------------------- /** - * @brief This class represents the "source-network-interface" configuration - * option. + * @brief This class represents the "default-source-network-interface" + * configuration option. */ class SourceNetworkInterfaceOption : public ConfigurationOption { -- 1.7.1