Skip to content

do not exit in get_l2len_protocol() if l2len==0 #911

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GabrielGanne
Copy link
Contributor

When fussing with tcpreplay-edit --fuzz-seed option , it's possible to simulate the drop of a packet which causes get_l2len_protocol to see a packet with a l2_len=0.

This does not remove the asserts because I think that those are useful in most cases where debugging the core of tcpreplay. This is just an edge case, and we won't have the asserts when using the released binary anyway.

Instead of aborting the whole process, let's just skip the packet.
You'll still have lots of warnings but I believe this is OK in such a scenario.

When fussing, it's possible to simulate the drop of a packet which
causes get_l2len_protocol to see a packet with a l2_len=0

Instead of aborting the whole process, let's just skip the packet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant