Skip to content

Captured Packet.Data.Length and udpPacket.PayloadData.Length threshold? #280

@charleslales

Description

@charleslales

Hi,

I'm currently facing an issue when capturing packet..
It does happen with a first app using
_sendSocket = new Socket(_ep.AddressFamily, SocketType.Dgram, ProtocolType.Udp);
_sendSocket.SendTo(message, msgLen, SocketFlags.None, ep);
but not with another test app using
_UdpClient = new UdpClient(port);
_UdpClient.Send(data, data.Length, ipe);

Capture code is samples one to get UDP info:
Device_OnPacketArrival(object o, CaptureEventArgs e)
var packet = PacketDotNet.Packet.ParsePacket(e.Packet.LinkLayerType, e.Packet.Data);
var udpPacket = packet.Extract<PacketDotNet.UdpPacket>();

first app:
114 obj -> 1472 bytes KO why???
113 obj -> 1472 bytes KO why???
112 obj -> 1463 bytes OK

test app:
114 obj -> 1489 bytes OK
113 obj -> 1476 bytes OK
112 obj -> 1463 bytes OK

Sorry if it is basic question..
Is there any other option / param I missed smwhere?

Kind regards,
Charles

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions