-
Notifications
You must be signed in to change notification settings - Fork 372
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
How to get gateway? #522
Comments
take alook at this code
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can get ipv4 address by NetworkInferface::ipv4_address(). But how to get gateway address on that interface?
Such like, 172.18.0.1/24 and 172.18.0.123 is the ipv4 address and 172.18.0.1 is the gateway address?
Then how to get 172.18.0.1?
The text was updated successfully, but these errors were encountered: