eminence / eminence/procfs

In the UnixNetEntry structure there are missing fields

Open
#312 3 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
Rust
Stars
445
Forks
134
PR merge metrics
No merged PRs in 30d

Description

In procfs on Linux - Num RefCount Protocol Flags Type St Inode Path

The docs say
#[non_exhaustive]
pub struct UnixNetEntry {
pub ref_count: [u32](https://doc.rust-lang.org/nightly/std/primitive.u32.html),
pub socket_type: [u16](https://doc.rust-lang.org/nightly/std/primitive.u16.html),
pub state: [UnixState](https://docs.rs/procfs/latest/procfs/net/enum.UnixState.html),
pub inode: [u64](https://doc.rust-lang.org/nightly/std/primitive.u64.html),
pub path: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html)<[PathBuf](https://doc.rust-lang.org/nightly/std/path/struct.PathBuf.html)>,
}

What is the best way to get the additional fields added? I'm mainly interested in Flags. Happy to do some legwork but am not an experienced rust developer so might need a bit of help :)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.