Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8650837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:55:04+00:00 2026-06-12T13:55:04+00:00

i have a pcap file captured using wireshark. suppose the pcap has 6 packets

  • 0

i have a pcap file captured using wireshark. suppose the pcap has 6 packets numbered from 1 to 6 as shown below. now i want to edit this pcap file so that i get the packets in some different order. For eg, if original pcap packets are

1,2,3,4,5,6

i want a new pcap after editing, where now packets are in the order (say for example) as :

2,3,1,4,5,6

similarly i can have some other order for eg, 2,4,5,6,1,3 or any other order.

Can anyone let me know how can i do that ? (may be using wireshark or any other method).
any help will be greatly appreciated. thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T13:55:05+00:00Added an answer on June 12, 2026 at 1:55 pm

    You can use combination of editcap and mergecap

    To solve your problem:

    editcap -r in.pcap tmp1 2-3
    editcap -r in.pcap tmp2 1
    editcap -r in.pcap tmp3 4-6
    mergecap -w out.pcap -a tmp1 tmp2 tmp3 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some network traffic captured pcap file and want to send its packets
I want to parse only RTP packets from a .pcap file generated from WireShark
I have a program which generates its own Wireshark pcap-file (sort of a network
I'm making a program to calculate latency from a tcpdump/pcap file and I want
I have a pcap captured with Wireshark. Is there any function in Wireshark that
I have a pcap file as input and I want to get particular strings
i am using pcap to create a packet sniffer. i have this tcp structure:
Does pcap_t *pcap_open_offline(const char *fname, char *errbuf) from libpcap read the whole pcap file
When using pcap_open_live to sniff from an interface, I have seen a lot of
I have a Lua script to read a PCAP file. For a packet, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.