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

n2n relies on deprecated ifconfig on Linux #177

Closed
pojntfx opened this issue Sep 16, 2019 · 3 comments
Closed

n2n relies on deprecated ifconfig on Linux #177

pojntfx opened this issue Sep 16, 2019 · 3 comments

Comments

@pojntfx
Copy link
Contributor

pojntfx commented Sep 16, 2019

First of all, thanks for developing this software! It has helped me tremendously with some Kubernetes-related things.

On modern Linux distros however, ifconfig has been replaced with iproute2 for the most part; usage of n2n on these distros fails due to this. It would be great if the ifconfig calls could be replaced with their ip counterparts.

@pojntfx pojntfx changed the title n2n relies on ifconfig n2n relies on deprecated ifconfig on Linux Sep 17, 2019
@fengdaolong
Copy link
Contributor

We want to use the system API calls instead of the command line.

@pojntfx
Copy link
Contributor Author

pojntfx commented Sep 17, 2019

@fengdaolong Sure, but isn't it already using the system function here for example? I'm sorry, I'm not a C developer by any means so I might be wrong here ...

@emanuele-f emanuele-f added this to the v.2.6-stable milestone Sep 17, 2019
@emanuele-f
Copy link
Contributor

I agree that using a system API (C api / linux api) to configure the interface is better, the system() call as it is now is a dirty way to invoke a system cli tool to do the job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants