`DropRef` and its consumers should be safer

未关闭
#515 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
重构
描述清晰度
需要澄清
活跃度
停滞
技术栈
rust
领域
networking

调研方向

首先阅读 DropRef 机制及其在 next_hop 中的使用者,然后检查 ire_refrele wrapper 以及 Arg 值的清理方式。确定每个 Arg 应如何与其 reference-release function 匹配,以及 unsafe trait 或类似机制是否适用。当清理关联更加安全且受影响的使用者仍然正确时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

cleanup good first issue

We currently have a few 'safe' wrappers around reference release functions used by next_hop and the DropRef machinery:

fn ire_refrele(ire: *mut ip::ire_t) {
    unsafe { ip::ire_refrele(ire) }
}

We should revisit this by matching Arg to its cleanup function, using an unsafe trait or similar mechanism.

主要语言
Rust
星标
82
派生
16
平均合并
3 天 6 小时
30 天内合并 PR
11

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

oxidecomputer/opte 的其他 Issue

查看 oxidecomputer/opte 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。