Skip to content

Commit

Permalink
Add kernel network L3 tab menu, wfp part features
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackINT3 committed Jul 18, 2020
1 parent 01d508f commit d80f3a7
Show file tree
Hide file tree
Showing 12 changed files with 6,753 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/OpenArk/OpenArk.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@
<DynamicSource Condition="'$(Configuration)|$(Platform)'=='Release|x64'">input</DynamicSource>
<IncludePath Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\GeneratedFiles;.;$(QTDIR)\include;.\GeneratedFiles\$(ConfigurationName);$(QTDIR)\include\QtCore;$(QTDIR)\include\QtGui;$(QTDIR)\include\QtANGLE;$(QTDIR)\include\QtWidgets;$(QTDIR)\include\QtNetwork</IncludePath>
</ClCompile>
<ClCompile Include="kernel\network\network.cpp" />
<ClCompile Include="kernel\notify\notify.cpp" />
<ClCompile Include="kernel\wingui\wingui.cpp" />
<ClCompile Include="main.cpp" />
Expand Down Expand Up @@ -362,6 +363,12 @@
<ClInclude Include="GeneratedFiles\ui_reverse.h" />
<ClInclude Include="GeneratedFiles\ui_utilities.h" />
<ClInclude Include="kernel\driver\driver.h" />
<QtMoc Include="kernel\network\network.h">
<IncludePath Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\GeneratedFiles;.;$(QTDIR)\include;.\GeneratedFiles\$(ConfigurationName);$(QTDIR)\include\QtCore;$(QTDIR)\include\QtGui;$(QTDIR)\include\QtANGLE;$(QTDIR)\include\QtNetwork;$(QTDIR)\include\QtWidgets</IncludePath>
<IncludePath Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\GeneratedFiles;.;$(QTDIR)\include;.\GeneratedFiles\$(ConfigurationName);$(QTDIR)\include\QtCore;$(QTDIR)\include\QtGui;$(QTDIR)\include\QtANGLE;$(QTDIR)\include\QtNetwork;$(QTDIR)\include\QtWidgets</IncludePath>
<IncludePath Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\GeneratedFiles;.;$(QTDIR)\include;.\GeneratedFiles\$(ConfigurationName);$(QTDIR)\include\QtCore;$(QTDIR)\include\QtGui;$(QTDIR)\include\QtANGLE;$(QTDIR)\include\QtNetwork;$(QTDIR)\include\QtWidgets</IncludePath>
<IncludePath Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\GeneratedFiles;.;$(QTDIR)\include;.\GeneratedFiles\$(ConfigurationName);$(QTDIR)\include\QtCore;$(QTDIR)\include\QtGui;$(QTDIR)\include\QtANGLE;$(QTDIR)\include\QtNetwork;$(QTDIR)\include\QtWidgets</IncludePath>
</QtMoc>
<ClInclude Include="kernel\notify\notify.h" />
<ClInclude Include="kernel\wingui\wingui.h" />
<ClInclude Include="res\resource.h" />
Expand Down
9 changes: 9 additions & 0 deletions src/OpenArk/OpenArk.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@
<Filter Include="kernel\wingui">
<UniqueIdentifier>{c53add09-42a1-4b50-8969-58d66167baa4}</UniqueIdentifier>
</Filter>
<Filter Include="kernel\network">
<UniqueIdentifier>{ddbf08af-ae77-4de2-8538-830f00e18b7c}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="openark\openark.cpp">
Expand Down Expand Up @@ -249,6 +252,9 @@
<ClCompile Include="kernel\wingui\wingui.cpp">
<Filter>kernel\wingui</Filter>
</ClCompile>
<ClCompile Include="kernel\network\network.cpp">
<Filter>kernel\network</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<QtMoc Include="openark\openark.h">
Expand Down Expand Up @@ -293,6 +299,9 @@
<QtMoc Include="reverse\reverse.h">
<Filter>reverse</Filter>
</QtMoc>
<QtMoc Include="kernel\network\network.h">
<Filter>kernel\network</Filter>
</QtMoc>
</ItemGroup>
<ItemGroup>
<QtUic Include="ui\process-mgr.ui">
Expand Down
5 changes: 5 additions & 0 deletions src/OpenArk/kernel/kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ Kernel::Kernel(QWidget *parent) :
setAcceptDrops(true);
connect(ui.tabWidget, SIGNAL(currentChanged(int)), this, SLOT(onTabChanged(int)));

netowrk_ = new KernelNetwork();
netowrk_->ModuleInit(&ui, this);

InitKernelEntryView();
InitDriversView();
InitDriverKitView();
Expand Down Expand Up @@ -123,6 +126,8 @@ bool Kernel::eventFilter(QObject *obj, QEvent *e)
}
}

netowrk_->EventFilter();

if (filtered) {
dynamic_cast<QKeyEvent*>(e)->ignore();
return true;
Expand Down
4 changes: 4 additions & 0 deletions src/OpenArk/kernel/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
#include <Windows.h>
#include "ui_kernel.h"
#include "../common/qt-wrapper/qt-wrapper.h"
#include "network/network.h"

class KernelNetwork;

class OpenArk;
class Ui::Kernel;
Expand Down Expand Up @@ -75,6 +78,7 @@ private slots:

private:
bool arkdrv_conn_;
KernelNetwork *netowrk_;

private:
Ui::Kernel ui;
Expand Down
Loading

0 comments on commit d80f3a7

Please sign in to comment.