Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-users: Re: [Wireshark-users] How to filter out last 1000 frames in a quick way

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: "Abhik Sarkar" <sarkar.abhik@xxxxxxxxx>
Date: Mon, 7 Jul 2008 16:36:56 +0400

Or, if you are in a *nix environment (or have Cygwin on Windows), with
a bit of scripting, you can do the following:
use capinfos to get the number of packets in the file:
$ capinfos -c test.cap
File name: test.cap
Number of packets: 8802

Then use something like:
$ editcap -r test.cap extract.cap 7803-8802

Then, extract.cap will have the last 1000 packets!

This method is longer than what Hansang suggested, but will result in
exactly one file which is of interest to you ;-)

HTH
Abhik.

On Sun, Jul 6, 2008 at 7:11 AM, Hansang Bae <hbae@xxxxxxxxxx> wrote:
> Bin Zhou wrote:
>> Sometime, I capture a big size of file, but I may need to do voip calls
>> analysis for a snapshot. For example, it is good enough for me to see
>> flows of last one thousand packets.
>> If there is a quick way to filter out last 1000 frames without going to
>> the frame or packet detail level, it will be very helpful.
>> Thanks for your help in advance.
>
> The only thing you could try would be to use "editcap -c xxx" to specify
> how many packets you want per trace file (where xxx = how many packets
> you want)
>
> Or you could try -A option to specify when you want to start seeing the
> "interesting" packets.
>
> --
>
> Thanks,
> Hansang
> _______________________________________________
> Wireshark-users mailing list
> Wireshark-users@xxxxxxxxxxxxx
> https://wireshark.org/mailman/listinfo/wireshark-users
>

  • Follow-Ups:
    • Re: [Wireshark-users] How to filter out last 1000 frames in a quick way
      • From: Hansang Bae
  • References:
    • Re: [Wireshark-users] How to filter out last 1000 frames in a quick way
      • From: Hansang Bae
  • Prev by Date: Re: [Wireshark-users] 64-bit Vista
  • Next by Date: [Wireshark-users] PPI header capture through rpcap not working
  • Previous by thread: Re: [Wireshark-users] How to filter out last 1000 frames in a quick way
  • Next by thread: Re: [Wireshark-users] How to filter out last 1000 frames in a quick way
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation