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"
)
{
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> ();
//-----------------------------------------------------------------------------
/**
- * @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
{