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

default route's interface discovery code has stopped working #12

Closed
karlkleinpaste opened this issue May 24, 2020 · 0 comments
Closed

Comments

@karlkleinpaste
Copy link
Owner

i don't know when it happened, much less how, but the code that discovers the default route and its interface address no longer works. i've had this code in place since 2014, so i'm mystified as to what underlying interface changed.

solution will be to eliminate the entire rtnetlink-driven nightmare. just read /proc/net/route directly, and find destination "00000000". use that interface, compare that interface against the set of interfaces returned by getifaddrs(3) (as before).

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

No branches or pull requests

1 participant