Renamed the global "source-network-interface" to "default-source-network-interface".
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Tue, 13 Mar 2012 23:54:49 +0000 (20:54 -0300)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Tue, 13 Mar 2012 23:54:49 +0000 (20:54 -0300)
src/config/option/sourcenetworkinterfaceoption.cpp
src/config/option/sourcenetworkinterfaceoption.h

index edfa292..96fbc57 100644 (file)
@@ -33,8 +33,8 @@ using I2n::Logger::GlobalLogger;
 
 SourceNetworkInterfaceOption::SourceNetworkInterfaceOption() :
     ConfigurationOption(
-        "source-network-interface",
-        value<string>(),
+        "default-source-network-interface",
+        value<string>()->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<string> ();
index 8a6e2af..f149751 100644 (file)
@@ -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
 {