Some changes
This commit is contained in:
parent
f5c4648bb1
commit
5a51e13ad9
@ -38,11 +38,23 @@ extern ProtocolWidgetFactory *OstProtocolWidgetFactory;
|
|||||||
QSettings *appSettings;
|
QSettings *appSettings;
|
||||||
QMainWindow *mainWindow;
|
QMainWindow *mainWindow;
|
||||||
|
|
||||||
|
#if defined(Q_OS_WIN32)
|
||||||
|
QString kGzipPathDefaultValue;
|
||||||
|
QString kDiffPathDefaultValue;
|
||||||
|
QString kAwkPathDefaultValue;
|
||||||
|
#endif
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
int exitCode;
|
int exitCode;
|
||||||
|
|
||||||
|
#if defined(Q_OS_WIN32)
|
||||||
|
kGzipPathDefaultValue = app.applicationDirPath() + "/gzip.exe";
|
||||||
|
kDiffPathDefaultValue = app.applicationDirPath() + "/diff.exe";
|
||||||
|
kAwkPathDefaultValue = app.applicationDirPath() + "/gawk.exe";
|
||||||
|
#endif
|
||||||
|
|
||||||
app.setApplicationName("Ostinato");
|
app.setApplicationName("Ostinato");
|
||||||
app.setOrganizationName("Ostinato");
|
app.setOrganizationName("Ostinato");
|
||||||
app.setProperty("version", version);
|
app.setProperty("version", version);
|
||||||
|
@ -18,6 +18,7 @@ PROTOS = \
|
|||||||
vlan.proto \
|
vlan.proto \
|
||||||
svlan.proto \
|
svlan.proto \
|
||||||
vlanstack.proto \
|
vlanstack.proto \
|
||||||
|
stp.proto \
|
||||||
arp.proto \
|
arp.proto \
|
||||||
ip4.proto \
|
ip4.proto \
|
||||||
ip6.proto \
|
ip6.proto \
|
||||||
@ -90,6 +91,7 @@ SOURCES += \
|
|||||||
dot3.cpp \
|
dot3.cpp \
|
||||||
llc.cpp \
|
llc.cpp \
|
||||||
snap.cpp \
|
snap.cpp \
|
||||||
|
stp.cpp \
|
||||||
arp.cpp \
|
arp.cpp \
|
||||||
ip4.cpp \
|
ip4.cpp \
|
||||||
ip6.cpp \
|
ip6.cpp \
|
||||||
|
@ -15,6 +15,7 @@ FORMS += \
|
|||||||
dot3.ui \
|
dot3.ui \
|
||||||
llc.ui \
|
llc.ui \
|
||||||
snap.ui \
|
snap.ui \
|
||||||
|
stp.ui \
|
||||||
arp.ui \
|
arp.ui \
|
||||||
ip4.ui \
|
ip4.ui \
|
||||||
ip6.ui \
|
ip6.ui \
|
||||||
@ -59,6 +60,7 @@ HEADERS += \
|
|||||||
dot2llcconfig.h \
|
dot2llcconfig.h \
|
||||||
snapconfig.h \
|
snapconfig.h \
|
||||||
dot2snapconfig.h \
|
dot2snapconfig.h \
|
||||||
|
stpconfig.h \
|
||||||
arpconfig.h \
|
arpconfig.h \
|
||||||
ip4config.h \
|
ip4config.h \
|
||||||
ip6config.h \
|
ip6config.h \
|
||||||
@ -94,6 +96,7 @@ SOURCES += \
|
|||||||
dot3config.cpp \
|
dot3config.cpp \
|
||||||
llcconfig.cpp \
|
llcconfig.cpp \
|
||||||
snapconfig.cpp \
|
snapconfig.cpp \
|
||||||
|
stpconfig.cpp \
|
||||||
arpconfig.cpp \
|
arpconfig.cpp \
|
||||||
ip4config.cpp \
|
ip4config.cpp \
|
||||||
ip6config.cpp \
|
ip6config.cpp \
|
||||||
@ -112,6 +115,7 @@ SOURCES += \
|
|||||||
SOURCES += \
|
SOURCES += \
|
||||||
vlanpdml.cpp \
|
vlanpdml.cpp \
|
||||||
svlanpdml.cpp \
|
svlanpdml.cpp \
|
||||||
|
stppdml.cpp \
|
||||||
eth2pdml.cpp \
|
eth2pdml.cpp \
|
||||||
llcpdml.cpp \
|
llcpdml.cpp \
|
||||||
arppdml.cpp \
|
arppdml.cpp \
|
||||||
|
@ -35,6 +35,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
|||||||
#include "ip4pdml.h"
|
#include "ip4pdml.h"
|
||||||
#include "ip6pdml.h"
|
#include "ip6pdml.h"
|
||||||
#include "mldpdml.h"
|
#include "mldpdml.h"
|
||||||
|
#include "stppdml.h"
|
||||||
#include "svlanpdml.h"
|
#include "svlanpdml.h"
|
||||||
#include "tcppdml.h"
|
#include "tcppdml.h"
|
||||||
#include "textprotopdml.h"
|
#include "textprotopdml.h"
|
||||||
@ -77,6 +78,7 @@ PdmlReader::PdmlReader(OstProto::StreamConfigList *streams)
|
|||||||
factory_.insert("udp", PdmlUdpProtocol::createInstance);
|
factory_.insert("udp", PdmlUdpProtocol::createInstance);
|
||||||
factory_.insert("udplite", PdmlUdpProtocol::createInstance);
|
factory_.insert("udplite", PdmlUdpProtocol::createInstance);
|
||||||
factory_.insert("vlan", PdmlVlanProtocol::createInstance);
|
factory_.insert("vlan", PdmlVlanProtocol::createInstance);
|
||||||
|
factory_.insert("stp", PdmlStpProtocol::createInstance);
|
||||||
}
|
}
|
||||||
|
|
||||||
PdmlReader::~PdmlReader()
|
PdmlReader::~PdmlReader()
|
||||||
|
@ -140,6 +140,7 @@ message Protocol {
|
|||||||
kDot2LlcFieldNumber = 206;
|
kDot2LlcFieldNumber = 206;
|
||||||
kDot2SnapFieldNumber = 207;
|
kDot2SnapFieldNumber = 207;
|
||||||
kVlanStackFieldNumber = 208;
|
kVlanStackFieldNumber = 208;
|
||||||
|
kStpFieldNumber = 210;
|
||||||
|
|
||||||
kArpFieldNumber = 300;
|
kArpFieldNumber = 300;
|
||||||
kIp4FieldNumber = 301;
|
kIp4FieldNumber = 301;
|
||||||
|
@ -34,6 +34,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
|||||||
#include "snap.h"
|
#include "snap.h"
|
||||||
#include "dot2snap.h"
|
#include "dot2snap.h"
|
||||||
#include "eth2.h"
|
#include "eth2.h"
|
||||||
|
#include "stp.h"
|
||||||
|
|
||||||
// L3 Protos
|
// L3 Protos
|
||||||
#include "arp.h"
|
#include "arp.h"
|
||||||
@ -89,6 +90,8 @@ ProtocolManager::ProtocolManager()
|
|||||||
(void*) SnapProtocol::createInstance);
|
(void*) SnapProtocol::createInstance);
|
||||||
registerProtocol(OstProto::Protocol::kDot2SnapFieldNumber,
|
registerProtocol(OstProto::Protocol::kDot2SnapFieldNumber,
|
||||||
(void*) Dot2SnapProtocol::createInstance);
|
(void*) Dot2SnapProtocol::createInstance);
|
||||||
|
registerProtocol(OstProto::Protocol::kStpFieldNumber,
|
||||||
|
(void*) StpProtocol::createInstance);
|
||||||
|
|
||||||
// Layer 3 Protocols
|
// Layer 3 Protocols
|
||||||
registerProtocol(OstProto::Protocol::kArpFieldNumber,
|
registerProtocol(OstProto::Protocol::kArpFieldNumber,
|
||||||
|
@ -30,6 +30,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
|||||||
#include "dot2llcconfig.h"
|
#include "dot2llcconfig.h"
|
||||||
#include "snapconfig.h"
|
#include "snapconfig.h"
|
||||||
#include "dot2snapconfig.h"
|
#include "dot2snapconfig.h"
|
||||||
|
#include "stpconfig.h"
|
||||||
// L3 Protocol Widgets
|
// L3 Protocol Widgets
|
||||||
#include "arpconfig.h"
|
#include "arpconfig.h"
|
||||||
#include "ip4config.h"
|
#include "ip4config.h"
|
||||||
@ -93,6 +94,9 @@ ProtocolWidgetFactory::ProtocolWidgetFactory()
|
|||||||
OstProtocolWidgetFactory->registerProtocolConfigWidget(
|
OstProtocolWidgetFactory->registerProtocolConfigWidget(
|
||||||
OstProto::Protocol::kDot2SnapFieldNumber,
|
OstProto::Protocol::kDot2SnapFieldNumber,
|
||||||
(void*) Dot2SnapConfigForm::createInstance);
|
(void*) Dot2SnapConfigForm::createInstance);
|
||||||
|
OstProtocolWidgetFactory->registerProtocolConfigWidget(
|
||||||
|
OstProto::Protocol::kStpFieldNumber,
|
||||||
|
(void*) StpConfigForm::createInstance);
|
||||||
|
|
||||||
// Layer 3 Protocols
|
// Layer 3 Protocols
|
||||||
OstProtocolWidgetFactory->registerProtocolConfigWidget(
|
OstProtocolWidgetFactory->registerProtocolConfigWidget(
|
||||||
|
Loading…
Reference in New Issue
Block a user