Skip to content

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

Merged
fklassen merged 1 commit intoappneta:Bug_#911_continue_on_get_l2len_protcol_is_zerofrom
GabrielGanne:no-exit-if-zero-l2len
Jul 4, 2025
Merged

do not exit in get_l2len_protocol() if l2len==0#911
fklassen merged 1 commit intoappneta:Bug_#911_continue_on_get_l2len_protcol_is_zerofrom
GabrielGanne:no-exit-if-zero-l2len

Conversation

@GabrielGanne
Copy link
Copy Markdown
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.
@fklassen fklassen added the bug label Jul 4, 2025
@fklassen fklassen changed the base branch from master to Bug_#911_continue_on_get_l2len_protcol_is_zero July 4, 2025 22:22
@fklassen fklassen merged commit 4c395b2 into appneta:Bug_#911_continue_on_get_l2len_protcol_is_zero Jul 4, 2025
fklassen added a commit that referenced this pull request Jul 4, 2025
…rotcol_is_zero

Bug #911 continue on get l2len protcol is zero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants