Hello,
I 'm using Pcap.Net to filter over UDP, then recover all data incoming on a specific udp Port.
The problem is that udp payload are always the same size and my decoded packet never exceed 368 Bytes.
so when th epacket is fragmented, i get only the first part of the payload, rest is missing.
Do i need build a tracking tool of fragmented frame, the concat the payload from same ip.identification to recover the whole data ?
Is there any option to correctly reassemble i unfortunately missed ?
code i use from your help in fact:
if (udp.DestinationPort == _listenUdpPort)
{
lock (thisLock)
{
UdpPktQueue.Add(udp.Payload.Decode(Encoding.ASCII).Remove(0, 6).Replace("\0", string.Empty));
}
}
the i simply concat the list<string> UdpPktQueue to write to a file.
I get for exemple:
bCEM 2 l2telecom_cell0 429: 10E 0 07:47:17.125097480 520 user data length 872 bytes, logged 872 bytes:
00840044 0000034C 00000000 0085FFFF ...D...L........
00000001 00000000 FFFFFFFF 03E80001 ................
00000000 00000000 00000000 00000000 ................
00000001 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
0000016E 005F0000 00000000 00000000 ...n._..........
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
where i should have (from wireshark):

bCEM 2 l2telecom_cell0 429: 10E 0 07:47:17.125097480 520 user data length 872 bytes, logged 872 bytes:
00840044 0000034C 00000000 0085FFFF ...D...L........
00000001 00000000 FFFFFFFF 03E80001 ................
00000000 00000000 00000000 00000000 ................
00000001 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
0000016E 005F0000 00000000 00000000 ...n._..........
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
D5963C4F BE744E04 3C3091A8 E299CAB4 ..<O.tN.<0......
25AA5A00 00000001 F528D2A6 4F780471 %.Z......(..Ox.q
AAAAAAAA BBBBBBBB 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
01000000 02010000 00000000 00000000 ................
00000000 00000000 00000000 00000000 ................
18D4F532 5C8D0AA9 D1914BC5 D54946E4 ...2\.....K..IF.
CB373CBF EB1AB1DA 5D317B8C A3431A1D .7<.....]1{..C..
8B5BFD44 EAB5488F .[.D..H.
Any help would be appreciated.
Best regards
Patrick