1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-23 19:57:21 +01:00

fixed #1838 "function configure_interfaces() does not manage ip

addresses of vlan interfaces". This function used to take into
account only interfaces that were direct children objects of the
firewall. Since vlan interfaces are children of the corresponding
physical interface, they were not included.
This commit is contained in:
Vadim Kurland 2010-11-10 17:13:32 -08:00
parent c76531c8df
commit 75566656a2
2 changed files with 11 additions and 3 deletions

View File

@ -1,5 +1,12 @@
2010-11-10 Vadim Kurland <vadim@vk.crocodile.org>
* OSConfigurator_linux24_interfaces.cpp (printDynamicAddressesConfigurationCommands):
fixed #1838 "function configure_interfaces() does not manage ip
addresses of vlan interfaces". This function used to take into
account only interfaces that were direct children objects of the
firewall. Since vlan interfaces are children of the corresponding
physical interface, they were not included.
* FirewallInstaller.cpp (getGeneratedFileFullPath): fixed #1837
"generated script gets .fw suffix even when user set output file
name". Suffix .fw should not be appended to the name entered by

View File

@ -489,10 +489,11 @@ string OSConfigurator_linux24::printDynamicAddressesConfigurationCommands()
/*
* get addresses of dynamic interfaces
*/
FWObjectTypedChildIterator j=fw->findByType(Interface::TYPENAME);
for ( ; j!=j.end(); ++j )
list<FWObject*> interfaces = fw->getByTypeDeep(Interface::TYPENAME);
list<FWObject*>::iterator j;
for (j=interfaces.begin(); j!=interfaces.end(); ++j )
{
Interface *iface=Interface::cast(*j);
Interface *iface = Interface::cast(*j);
if ( iface->isDyn() )
{