Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pcap-Net
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Pcap-Net
Commits
1553a334
Commit
1553a334
authored
May 19, 2010
by
Brickner_cp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code Analysis
parent
8e7ca0a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
LivePacketDeviceExtensions.cs
.../PcapDotNet.Core.Extensions/LivePacketDeviceExtensions.cs
+3
-0
PcapDotNet.Core.Extensions.csproj
...pDotNet.Core.Extensions/PcapDotNet.Core.Extensions.csproj
+2
-2
No files found.
PcapDotNet/src/PcapDotNet.Core.Extensions/LivePacketDeviceExtensions.cs
View file @
1553a334
...
...
@@ -20,6 +20,9 @@ namespace PcapDotNet.Core.Extensions
/// <returns>The network interface found according to the given device or null if none is found.</returns>
public
static
NetworkInterface
GetNetworkInterface
(
this
LivePacketDevice
livePacketDevice
)
{
if
(
livePacketDevice
==
null
)
throw
new
ArgumentNullException
(
"livePacketDevice"
);
foreach
(
NetworkInterface
networkInterface
in
NetworkInterface
.
GetAllNetworkInterfaces
())
{
if
(
@"rpcap://\Device\NPF_"
+
networkInterface
.
Id
==
livePacketDevice
.
Name
)
...
...
PcapDotNet/src/PcapDotNet.Core.Extensions/PcapDotNet.Core.Extensions.csproj
View file @
1553a334
...
...
@@ -48,7 +48,7 @@
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<DocumentationFile>
..\..\bin\Debug\PcapDotNet.Core.Extensions.XML
</DocumentationFile>
<RunCodeAnalysis>
fals
e
</RunCodeAnalysis>
<RunCodeAnalysis>
tru
e
</RunCodeAnalysis>
<CodeAnalysisRuleSet>
..\PcapDotNet.ruleset
</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
...
...
@@ -59,7 +59,7 @@
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<DocumentationFile>
..\..\bin\Release\PcapDotNet.Core.Extensions.XML
</DocumentationFile>
<RunCodeAnalysis>
fals
e
</RunCodeAnalysis>
<RunCodeAnalysis>
tru
e
</RunCodeAnalysis>
<CodeAnalysisRuleSet>
..\PcapDotNet.ruleset
</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment