oxidecomputer / oxidecomputer/opte

xde: error on add_unicast should reflect underlying error

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

Nobody has claimed this yet.

Dominant language
Rust
Stars
77
Forks
11
Avg merge
9d 20h
Merged PRs (30d)
8

Description

In this code we just set errno to EFAULT, which is confusing for debugging. The errno should be the underlying error code from e.

https://github.com/oxidecomputer/opte/blob/f2614ac9ba40df08edddffe8ceaa91d5c3e73803/xde/src/xde.rs#L947-L950

Contributor guide

Open the contributing guide

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

Open xde/src/xde.rs at lines 947-950 and inspect the add_unicast error path. Replace the confusing EFAULT result with the underlying error code from e, then verify that the reported errno reflects that underlying error.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
networking
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.