This tag wiki does not currently have an excerpt. Help by creating one
Questions tagged [sharppcap]
125 questions
2
votes
0 answers
How to get SendBytes in SharpPcap OnPcapStatistics event?
I'am using the sample :
SharpPcap Example 11: statistics
the OnPcapStatistics event only gives me the received bytes, how could i get the uploaded ( send) bytes ?
total += (ulong)e.Statistics.RecievedBytes;

Ehsan Zargar Ershadi
- 24,115
- 17
- 65
- 95
1
vote
1 answer
tcp/ip packet listener
I've started to do some basic network programming.
I have read/written my own programs using TcpClient and TcpListener and that has worked fine.
However, the application I am working on now works a bit differently.
I want to set up a program that…

Rick
- 397
- 3
- 12
- 23
1
vote
1 answer
Wrapper for packets generation
Here's the task:
I need to generate packet sending by these protocols:
TCP
UDP
ICMP
IGMP
GGP
GRE
PUP
Raw IP
RSVP
Is there any library (or wrapper) to resolve this problem more easily?
Actually I want to find out is there any ready implementation…

kvantime
- 11
- 2
1
vote
1 answer
Send an IP packet with Packet.Net and SharpPcap but generate ethernet frame
I'm trying to send a raw UDP packet with Packet.Net but the device.SendPacket() function only seems to accept link level PDUs which means I have to figure out the source and destination MAC addresses myself. (Using ARP or something)
How can I create…

takteek
- 7,020
- 2
- 39
- 70
1
vote
2 answers
Tcp Session Reconstruction with Winpcap
I'm trying to reconstruct tcp sessions from my pcap files which have network packets captured using winpcap. I have a project which splits the packets to sessions. So far I can read from pcap files and group packets according to their sessions.
What…

varstas
- 335
- 10
- 19
1
vote
1 answer
Sharp Pcap and multiple ICaptureDevices in c#.NET
im having a nightmare of a time trying to get sharp Pcap to send packets happily via multiple instances of ICaptureDevice. The problem is that If i use more than one instance of ICaptureDevice any existing ones will just drop out and no error is…

Gelion
- 531
- 7
- 18
1
vote
0 answers
How do I use sharppcap to send packets on loopback devices
I tried to send packets to the local application, via loopback device,An error occurred when I sent packets on the loopback deviceenter image description here
SharpPcap.PcapException:“Can't send packet: send error: PacketSendPacket failed: The…

user21114773
- 11
- 2
1
vote
2 answers
How to send an ARP Packet through C# with WinPcap
I want to send ARP packet for "ARP Poison Routing" through C#. I am use SharpPcap(for use the winpcap). How to do this with SharpPcap or without SparpPcap (with other library) ?

Yasin Ozel
- 273
- 1
- 6
- 15
1
vote
1 answer
Can't Run C# SharpPcap Program Under User Account
I code a C# program to catch and resolve packets using SharpPcap and PacketDotNet. It performs well when I run it in Administrator Account, still it will popup a window as below:
The question means"Do you want to allow this app to make changes to…

Frank Zheng
- 23
- 4
1
vote
2 answers
How to Convert Packet to TcpPacket?
I'm using PacketDotNet to resolving captured packets. In PacketDotNet0.12.0, it provides a method called GetEncapsulated.
TcpPacket tcppacket = TcpPacket.GetEncapsulated(this.packet);
But now, I have to update PacketDotNet from version 0.12.0 to…

Frank Zheng
- 23
- 4
1
vote
0 answers
TCP Options in sharpcap C#
I'm trying to replicate the client of a program like a VPN/Game Lobby, for make some changes, but is my first time using WireShark and Sharppcap for things like this, I hope someone can help me.
I'm replicating the first package that the client…

Kuhaku
- 11
- 1
1
vote
0 answers
UDP Port Replication - SharpPCap BSOD
I wrote simple program using sharppcap to replicate incomming udp packets to another port. Lets say, I have incomming packets on port 25000, I will receive them using sharppcap, create new Ethernet packet identical to prevoius one and only change…

Vojtěch Mráz
- 1,116
- 1
- 9
- 19
1
vote
1 answer
How to tell if a PCAPNG file was captured with a limited snap length when parsing with SharpPCap in C#?
This seems like a stupid question, but I can't find any way to tell if a packet was only partially captured. All the data lengths I can find in the packet structures use the lengths from the header, and even the byte structures appear to fill out…

J. Lambert
- 11
- 1
1
vote
1 answer
Packet size more than 1500
I'm trying to send more than 2000 bytes of data using SharpPcap and PacketDotNet.
But, the MTU (1500 bytes) is less than the size of the data.
I tried to set MTU (to 5000) using…

Ritesh S
- 11
- 3
1
vote
1 answer
SharpPcap - Incoming packets are dropped
I am writing a C# application which communicates with an external device via ethernet. I am using SharpPcap Version 4.5.0 for this.
Unfortunately, I had to realize that some incoming packets are dropped. For testing, I also put a switch between the…

SomeBody
- 7,515
- 2
- 17
- 33