Skip to content

Make packet tests more configurable - #423

Draft
cfzimmerman wants to merge 4 commits into
mainfrom
cory/test-tlc
Draft

cfzimmerman wants to merge 4 commits into
mainfrom
cory/test-tlc

Conversation

@cfzimmerman

@cfzimmerman cfzimmerman commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

This is a loosely focused blob of test changes mostly in preparation for testing other PRs currently in the oven.

The swadm fix is totally unrelated and was inspired by a network channel question yesterday.

Comment on lines +643 to +649
let Ok(packet) = packet::Packet::parse(&data).inspect_err(|e| {
eprintln!(
"Test harness drop, packet could not be parsed: {e:?}"
)
}) else {
continue;
};

@cfzimmerman cfzimmerman Nov 10, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We previously panicked on irrational packets. For example, with an IPv4 IHL < 5. But the harness should support testing such packets because we need to verify how sidecar handles them.

Should be backward compatible with no change in product behavior.
Just an extra parsing feature.
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