NOX: SVLAN - Separated protocol and widget as per new framework
This commit is contained in:
parent
a97a7d9511
commit
e1cfd39786
@ -49,6 +49,7 @@ HEADERS += \
|
||||
payload.h \
|
||||
dot3.h \
|
||||
vlan.h \
|
||||
svlan.h \
|
||||
eth2.h \
|
||||
ip6.h
|
||||
|
||||
@ -57,7 +58,6 @@ HEADERS1 += \
|
||||
snap.h \
|
||||
dot2llc.h \
|
||||
dot2snap.h \
|
||||
svlan.h \
|
||||
vlanstack.h \
|
||||
arp.h \
|
||||
ip4.h \
|
||||
@ -90,6 +90,7 @@ SOURCES += \
|
||||
mac.cpp \
|
||||
payload.cpp \
|
||||
vlan.cpp \
|
||||
svlan.cpp \
|
||||
dot3.cpp \
|
||||
eth2.cpp \
|
||||
ip6.cpp
|
||||
@ -97,7 +98,6 @@ SOURCES += \
|
||||
SOURCES1 += \
|
||||
llc.cpp \
|
||||
snap.cpp \
|
||||
svlan.cpp \
|
||||
arp.cpp \
|
||||
ip4.cpp \
|
||||
icmp.cpp \
|
||||
|
@ -49,6 +49,7 @@ HEADERS += \
|
||||
macconfig.h \
|
||||
payloadconfig.h \
|
||||
vlanconfig.h \
|
||||
svlanconfig.h \
|
||||
dot3config.h \
|
||||
eth2config.h \
|
||||
ip6config.h
|
||||
|
@ -46,7 +46,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
#include "mac.h"
|
||||
#include "payload.h"
|
||||
#include "dot3.h"
|
||||
#include "vlan.h"
|
||||
#include "vlan.h"
|
||||
#include "svlan.h"
|
||||
#include "eth2.h"
|
||||
#include "ip6.h"
|
||||
#endif
|
||||
@ -68,8 +69,6 @@ ProtocolManager::ProtocolManager()
|
||||
registerProtocol(OstProto::Protocol::kDot2SnapFieldNumber,
|
||||
(void*) Dot2SnapProtocol::createInstance);
|
||||
|
||||
registerProtocol(OstProto::Protocol::kSvlanFieldNumber,
|
||||
(void*) SVlanProtocol::createInstance);
|
||||
registerProtocol(OstProto::Protocol::kVlanStackFieldNumber,
|
||||
(void*) VlanStackProtocol::createInstance);
|
||||
|
||||
@ -117,6 +116,8 @@ ProtocolManager::ProtocolManager()
|
||||
|
||||
registerProtocol(OstProto::Protocol::kVlanFieldNumber,
|
||||
(void*) VlanProtocol::createInstance);
|
||||
registerProtocol(OstProto::Protocol::kSvlanFieldNumber,
|
||||
(void*) SVlanProtocol::createInstance);
|
||||
|
||||
registerProtocol(OstProto::Protocol::kEth2FieldNumber,
|
||||
(void*) Eth2Protocol::createInstance);
|
||||
|
@ -23,6 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
#include "payloadconfig.h"
|
||||
#include "dot3config.h"
|
||||
#include "vlanconfig.h"
|
||||
#include "svlanconfig.h"
|
||||
#include "eth2config.h"
|
||||
#include "ip6config.h"
|
||||
|
||||
@ -49,6 +50,9 @@ ProtocolWidgetFactory::ProtocolWidgetFactory()
|
||||
OstProtocolWidgetFactory->registerProtocolConfigWidget(
|
||||
OstProto::Protocol::kVlanFieldNumber,
|
||||
(void*) VlanConfigForm::createInstance);
|
||||
OstProtocolWidgetFactory->registerProtocolConfigWidget(
|
||||
OstProto::Protocol::kSvlanFieldNumber,
|
||||
(void*) SVlanConfigForm::createInstance);
|
||||
|
||||
OstProtocolWidgetFactory->registerProtocolConfigWidget(
|
||||
OstProto::Protocol::kEth2FieldNumber,
|
||||
|
@ -17,8 +17,6 @@ You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
*/
|
||||
|
||||
#include <qendian.h>
|
||||
|
||||
#include "svlan.h"
|
||||
#include "svlan.pb.h"
|
||||
|
||||
|
28
common/svlanconfig.h
Normal file
28
common/svlanconfig.h
Normal file
@ -0,0 +1,28 @@
|
||||
/*
|
||||
Copyright (C) 2014 Srivats P.
|
||||
|
||||
This file is part of "Ostinato"
|
||||
|
||||
This is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
*/
|
||||
|
||||
#ifndef _SVLAN_CONFIG_H
|
||||
#define _SVLAN_CONFIG_H
|
||||
|
||||
#include "vlanconfig.h"
|
||||
|
||||
typedef VlanConfigForm SVlanConfigForm;
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user