1

Closed

creating a pcap file form another, udp layer not recognized by wireshark

description

Hi, I am copying the contents of a pcap file into another one, the idea is to change some values before copying to the destination file. I am not modifying anything yet, just copying the same content.
The problem that I have is that thet created file is shown in wireshark with the UDP layer not being recognized. I am attaching the code and the 2 pcap files ,

file attachments

Closed Feb 28, 2015 at 9:31 AM by Brickner
There's a bug in the code.

You do
ipV4Layer.Fragmentation = packet.IpV4.Fragmentation

While it should be
ipV4Layer.Fragmentation = packet.Ethernet.IpV4.Fragmentation

comments

fborot wrote Feb 27, 2015 at 8:34 PM

adding code,

wrote Feb 27, 2015 at 8:34 PM

fborot wrote Feb 27, 2015 at 8:35 PM

adding output.pcap

wrote Feb 27, 2015 at 8:35 PM

wrote Feb 28, 2015 at 9:31 AM

fborot wrote Mar 5, 2015 at 2:23 AM

thank you, it is working fine now