joincap icon indicating copy to clipboard operation
joincap copied to clipboard

Limit on merged file

Open AfakTolgi opened this issue 1 year ago • 3 comments

There can also be a limit of number of packets that can be merged or limit on size of merged file i.e merged file should not be greater then specified limit

AfakTolgi avatar Feb 26 '24 04:02 AfakTolgi

What do you mean, that you want to add a feature to limit the number of files and the number of packets per file?

assafmo avatar Feb 26 '24 05:02 assafmo

By limit i mean eg: file1.pcap -> 5 packets file2.pcap -> 5 packets joincap file1.pcap file2.pcap -o merged.pcap -limit 7 merged.pcap should have 7 packets instead of 10 packets

AfakTolgi avatar Apr 03 '24 12:04 AfakTolgi

I think this should work:

joincap -w - file1.pcap file2.pcap | editcap -r /dev/stdin out.pcap 1-7

assafmo avatar Apr 03 '24 12:04 assafmo

I was thinking of something inbuilt in joincap

AfakTolgi avatar Jul 01 '24 19:07 AfakTolgi

Raised a pr for this https://github.com/assafmo/joincap/pull/9

AfakTolgi avatar Jul 03 '24 19:07 AfakTolgi