From: Guilherme Maciel Ferreira Date: Tue, 13 Mar 2012 23:54:49 +0000 (-0300) Subject: Renamed the global "source-network-interface" to "default-source-network-interface". X-Git-Tag: v1.4~7 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=d941526f437bbea4a8647aac1c46a0460a5e29d5;p=pingcheck Renamed the global "source-network-interface" to "default-source-network-interface". --- 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 {