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
af901f28
Commit
af901f28
authored
Aug 17, 2012
by
Brickner_cp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add packet length to the error message when failing writing packet to a device in SendPacket().
parent
df6b8094
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
PacketCommunicator.cpp
PcapDotNet/src/PcapDotNet.Core/PacketCommunicator.cpp
+1
-1
No files found.
PcapDotNet/src/PcapDotNet.Core/PacketCommunicator.cpp
View file @
af901f28
...
...
@@ -243,7 +243,7 @@ void PacketCommunicator::SendPacket(Packet^ packet)
return
;
pin_ptr
<
Byte
>
unamangedPacketBytes
=
&
packet
->
Buffer
[
0
];
if
(
pcap_sendpacket
(
_pcapDescriptor
,
unamangedPacketBytes
,
packet
->
Length
)
!=
0
)
throw
BuildInvalidOperation
(
"Failed writing to device
"
);
throw
BuildInvalidOperation
(
"Failed writing to device
. Packet length: "
+
packet
->
Length
);
}
BerkeleyPacketFilter
^
PacketCommunicator
::
CreateFilter
(
String
^
filterValue
)
...
...
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