Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PcapSplitter: Max. Bytes per File limited to 1.9 Gbyte #40

Closed
pjattke opened this issue Oct 31, 2016 · 3 comments
Closed

PcapSplitter: Max. Bytes per File limited to 1.9 Gbyte #40

pjattke opened this issue Oct 31, 2016 · 3 comments

Comments

@pjattke
Copy link

pjattke commented Oct 31, 2016

The total size per files uses an int to store the given parameter value. As the maximum value of an int is limited to 2,147,483,647, the largest max. bytes per file is 1.99 Gbyte. I know that this is just an example, but as the latest release contains the PcapSplitter as binary it also does a great job as an standalone utility. Therefore I would suggest adapting the PcapSplitter to support splitting into larger files.

I am looking into this because I need a splitting by file size and tcpdump, editcap and other tools, have the same limitation or do not provide splitting by file size at all. Would someone be so kind to tell me which customization is required to make this work? Thanks a lot!

@seladb
Copy link
Owner

seladb commented Nov 1, 2016

I can do that fix for you, it shouldn't be too difficult. How urgent is it for you? Do you also want me to create a new build (depends on the operating system you need to use it on)?

@pjattke
Copy link
Author

pjattke commented Nov 1, 2016

@seladb Thanks a lot for your offered help! It looks like tcpdump suffers by a similar issue. However, someone posted the required changes such that I could apply them to my cloned repo, I recompiled it and now I finally could split my large (~14 GB) PCAP files.

seladb added a commit that referenced this issue Nov 1, 2016
@seladb
Copy link
Owner

seladb commented Nov 1, 2016

Issue was fixed, you can pull the latest code, compile PcapSplitter and use it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants