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

T4952: add wrapper to getifaddrs for completion helper list_interfaces #11

Merged
merged 1 commit into from Feb 12, 2023

Conversation

jestabro
Copy link
Contributor

@jestabro jestabro commented Feb 5, 2023

Replacement for completion helper list_interface.py.

Copy link
Member

@dmbaturin dmbaturin left a comment

Choose a reason for hiding this comment

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

We have libffi in the image because libvyosconfig and Python vyos.configtree interaction goes through it, so we could also call getifaddrs() via ctypes without writing any C code.

I'll make a ctypes-based version because I'm really curious how big is the performance difference between the "true" way that you chose and the "easy" way (ctypes).

@jestabro jestabro marked this pull request as ready for review February 6, 2023 00:40
@dmbaturin dmbaturin merged commit 2caf68c into vyos:master Feb 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants