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 \
|
payload.h \
|
||||||
dot3.h \
|
dot3.h \
|
||||||
vlan.h \
|
vlan.h \
|
||||||
|
svlan.h \
|
||||||
eth2.h \
|
eth2.h \
|
||||||
ip6.h
|
ip6.h
|
||||||
|
|
||||||
@ -57,7 +58,6 @@ HEADERS1 += \
|
|||||||
snap.h \
|
snap.h \
|
||||||
dot2llc.h \
|
dot2llc.h \
|
||||||
dot2snap.h \
|
dot2snap.h \
|
||||||
svlan.h \
|
|
||||||
vlanstack.h \
|
vlanstack.h \
|
||||||
arp.h \
|
arp.h \
|
||||||
ip4.h \
|
ip4.h \
|
||||||
@ -90,6 +90,7 @@ SOURCES += \
|
|||||||
mac.cpp \
|
mac.cpp \
|
||||||
payload.cpp \
|
payload.cpp \
|
||||||
vlan.cpp \
|
vlan.cpp \
|
||||||
|
svlan.cpp \
|
||||||
dot3.cpp \
|
dot3.cpp \
|
||||||
eth2.cpp \
|
eth2.cpp \
|
||||||
ip6.cpp
|
ip6.cpp
|
||||||
@ -97,7 +98,6 @@ SOURCES += \
|
|||||||
SOURCES1 += \
|
SOURCES1 += \
|
||||||
llc.cpp \
|
llc.cpp \
|
||||||
snap.cpp \
|
snap.cpp \
|
||||||
svlan.cpp \
|
|
||||||
arp.cpp \
|
arp.cpp \
|
||||||
ip4.cpp \
|
ip4.cpp \
|
||||||
icmp.cpp \
|
icmp.cpp \
|
||||||
|
@ -49,6 +49,7 @@ HEADERS += \
|
|||||||
macconfig.h \
|
macconfig.h \
|
||||||
payloadconfig.h \
|
payloadconfig.h \
|
||||||
vlanconfig.h \
|
vlanconfig.h \
|
||||||
|
svlanconfig.h \
|
||||||
dot3config.h \
|
dot3config.h \
|
||||||
eth2config.h \
|
eth2config.h \
|
||||||
ip6config.h
|
ip6config.h
|
||||||
|
@ -46,7 +46,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
|||||||
#include "mac.h"
|
#include "mac.h"
|
||||||
#include "payload.h"
|
#include "payload.h"
|
||||||
#include "dot3.h"
|
#include "dot3.h"
|
||||||
#include "vlan.h"
|
#include "vlan.h"
|
||||||
|
#include "svlan.h"
|
||||||
#include "eth2.h"
|
#include "eth2.h"
|
||||||
#include "ip6.h"
|
#include "ip6.h"
|
||||||
#endif
|
#endif
|
||||||
@ -68,8 +69,6 @@ ProtocolManager::ProtocolManager()
|
|||||||
registerProtocol(OstProto::Protocol::kDot2SnapFieldNumber,
|
registerProtocol(OstProto::Protocol::kDot2SnapFieldNumber,
|
||||||
(void*) Dot2SnapProtocol::createInstance);
|
(void*) Dot2SnapProtocol::createInstance);
|
||||||
|
|
||||||
registerProtocol(OstProto::Protocol::kSvlanFieldNumber,
|
|
||||||
(void*) SVlanProtocol::createInstance);
|
|
||||||
registerProtocol(OstProto::Protocol::kVlanStackFieldNumber,
|
registerProtocol(OstProto::Protocol::kVlanStackFieldNumber,
|
||||||
(void*) VlanStackProtocol::createInstance);
|
(void*) VlanStackProtocol::createInstance);
|
||||||
|
|
||||||
@ -117,6 +116,8 @@ ProtocolManager::ProtocolManager()
|
|||||||
|
|
||||||
registerProtocol(OstProto::Protocol::kVlanFieldNumber,
|
registerProtocol(OstProto::Protocol::kVlanFieldNumber,
|
||||||
(void*) VlanProtocol::createInstance);
|
(void*) VlanProtocol::createInstance);
|
||||||
|
registerProtocol(OstProto::Protocol::kSvlanFieldNumber,
|
||||||
|
(void*) SVlanProtocol::createInstance);
|
||||||
|
|
||||||
registerProtocol(OstProto::Protocol::kEth2FieldNumber,
|
registerProtocol(OstProto::Protocol::kEth2FieldNumber,
|
||||||
(void*) Eth2Protocol::createInstance);
|
(void*) Eth2Protocol::createInstance);
|
||||||
|
@ -23,6 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
|||||||
#include "payloadconfig.h"
|
#include "payloadconfig.h"
|
||||||
#include "dot3config.h"
|
#include "dot3config.h"
|
||||||
#include "vlanconfig.h"
|
#include "vlanconfig.h"
|
||||||
|
#include "svlanconfig.h"
|
||||||
#include "eth2config.h"
|
#include "eth2config.h"
|
||||||
#include "ip6config.h"
|
#include "ip6config.h"
|
||||||
|
|
||||||
@ -49,6 +50,9 @@ ProtocolWidgetFactory::ProtocolWidgetFactory()
|
|||||||
OstProtocolWidgetFactory->registerProtocolConfigWidget(
|
OstProtocolWidgetFactory->registerProtocolConfigWidget(
|
||||||
OstProto::Protocol::kVlanFieldNumber,
|
OstProto::Protocol::kVlanFieldNumber,
|
||||||
(void*) VlanConfigForm::createInstance);
|
(void*) VlanConfigForm::createInstance);
|
||||||
|
OstProtocolWidgetFactory->registerProtocolConfigWidget(
|
||||||
|
OstProto::Protocol::kSvlanFieldNumber,
|
||||||
|
(void*) SVlanConfigForm::createInstance);
|
||||||
|
|
||||||
OstProtocolWidgetFactory->registerProtocolConfigWidget(
|
OstProtocolWidgetFactory->registerProtocolConfigWidget(
|
||||||
OstProto::Protocol::kEth2FieldNumber,
|
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/>
|
along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <qendian.h>
|
|
||||||
|
|
||||||
#include "svlan.h"
|
#include "svlan.h"
|
||||||
#include "svlan.pb.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