#581965 wireshark: unable to overwrite file even with ignoring selected packets

Package:
wireshark
Source:
wireshark
Description:
network traffic analyzer - meta-package
Submitter:
Nico Golde
Date:
2014-07-28 16:59:20 UTC
Severity:
wishlist
#581965#5
Date:
2010-05-17 12:12:47 UTC
From:
To:
Hi,
I've selectively ignored a couple of packets in my dump and
when trying to overwrite the original capture file wireshark
refuses to do this with: "Capture file:
"/home/nion/work/osmocom/rach_bursts.pcap" identical to
loaded file!

Please choose a different filename."

This is a bit annoying especially since the file is _not_
the same. I saved this to an alternative file name and
diffed it with the original file. They are indeed different
and the new file is missing the ignored packets. So I can't
really understand why wireshark is refusing to save the file
under the same name.

Steps to reproduce:
- open a pcap file
- ignore a few packets by right-click -> Ignore Paket
- File -> Save As -> chose same file name, click radio
  button "Remove Ignored packets" -> Save
=> Error

Cheers
Nico

#581965#10
Date:
2010-05-24 13:02:28 UTC
From:
To:
severity 581965 wishlist
thanks

Hi,

The files are the same in a sense that their filenames (and inodes)
are identical.

Wireshark can't save the packets to the file it opened, because it
does not store the whole file content in memory, thus it have to read
from the opened file while saving.

The problem could be solved by making a temporary copy.

Cheers,
Balint

2010/5/17 Nico Golde <nion@debian.org>:

#581965#17
Date:
2010-05-24 18:01:21 UTC
From:
To:
Hi,
* Bálint Réczey <balint@balintreczey.hu> [2010-05-24 18:41]:

Ok makes sense to me.

That would be nice. Thanks!

Cheers
Nico