bugfix 2590

This commit is contained in:
2008-05-19 02:15:48 +00:00
parent 425087d21d
commit 7da0a53389
2 changed files with 26 additions and 0 deletions
+25
View File
@@ -964,6 +964,8 @@ QAction *movID;
{ {
newID1=popup->addAction( tr("Add IP Address"), this , newID1=popup->addAction( tr("Add IP Address"), this ,
SLOT( newInterfaceAddress() ) ); SLOT( newInterfaceAddress() ) );
newID1=popup->addAction( tr("Add IPv6 Address"), this ,
SLOT( newInterfaceAddressIPv6() ) );
newID2=popup->addAction( tr("Add MAC Address"), this , newID2=popup->addAction( tr("Add MAC Address"), this ,
SLOT( newPhysicalAddress() ) ); SLOT( newPhysicalAddress() ) );
} }
@@ -2795,6 +2797,29 @@ void ObjectManipulator::newInterfaceAddress()
} }
} }
void ObjectManipulator::newInterfaceAddressIPv6()
{
if ( currentObj->isReadOnly() ) return;
if (Interface::isA(currentObj))
{
Interface *intf = Interface::cast(currentObj);
if (intf &&
(intf->isDyn() || intf->isUnnumbered() || intf->isBridgePort())
) return;
QString iname=QString("%1:%2:ipv6")
.arg(QString::fromUtf8(currentObj->getParent()->getName().c_str()))
.arg(QString::fromUtf8(currentObj->getName().c_str()));
FWObject *o=createObject(currentObj, IPv6::TYPENAME, iname);
if (o!=NULL)
{
openObject(o);
editObject(o);
updateLastModifiedTimestampForAllFirewalls(o);
}
}
}
void ObjectManipulator::newTagService() void ObjectManipulator::newTagService()
{ {
FWObject *o; FWObject *o;
+1
View File
@@ -179,6 +179,7 @@ public slots:
void newAddress(); void newAddress();
void newAddressIPv6(); void newAddressIPv6();
void newInterfaceAddress(); void newInterfaceAddress();
void newInterfaceAddressIPv6();
void newPhysicalAddress(); void newPhysicalAddress();
void newAddressRange(); void newAddressRange();
void newObjectGroup(); void newObjectGroup();