Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for /proc/net/route #162

Merged
merged 1 commit into from Nov 20, 2021
Merged

Conversation

pymongo
Copy link
Contributor

@pymongo pymongo commented Nov 15, 2021

output example:

[w@ww ~]$ cat /proc/net/route 
Iface   Destination     Gateway         Flags   RefCnt  Use     Metric  Mask            MTU     Window  IRTT                                          
wlp4s0  00000000        0112A8C0        0003    0       0       600     00000000        0       0       0                                             
RouteEntry { iface: "wlp4s0", destination: 0.0.0.0, gateway: 192.168.18.1, flags: 3, refcnt: 0, use: 0, metrics: 600, mask: 0.0.0.0, mtu: 0, window: 0, irtt: 0 }

Copy link
Owner

@eminence eminence left a comment

Choose a reason for hiding this comment

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

Looks good, except for 1 minor thing. Thanks!

src/net.rs Outdated Show resolved Hide resolved
Copy link
Owner

@eminence eminence left a comment

Choose a reason for hiding this comment

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

Thanks!

@eminence eminence merged commit 7b70f1d into eminence:master Nov 20, 2021
@eminence eminence added this to the v0.12.0 milestone Nov 26, 2021
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.

None yet

2 participants