oxidecomputer / oxidecomputer/ingot

Want to unconditionally create `Valid{}` packets over given buffer

Open
#3 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
13
Forks
2
PR merge metrics
No merged PRs in 30d

Description

We have a few places in tests where we need to preset values in a buffer in order to successfully create a zero-copy view for a given packet type if the length computation of variable length elements depends on existing state -- for instance, Ipv6 packets. It would be useful in such cases to bypass nested subparsing, or to force a minimum-sized repr in a given buffer.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing tests that preset buffer values and the packet-construction entry points used for zero-copy views, especially for Ipv6. Compare the desired Valid{} behavior with the current nested subparsing and minimum-size handling. Done means tests can create the requested Valid packet over a supplied buffer without requiring preexisting variable-length state.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.