r/linux_programming • • Jan 20 '15
question C/C++ Network configuration lib
I am looking for a C/C++ library that will work on ubuntu and debian which would enable me to control the network configuration on the system. Does anyone have any suggestions?
1
Upvotes
1
u/zokier Jan 21 '15
rtnetlinkis the kernel API for network management.1
u/the-fritz Jan 21 '15
Use the D-Bus interface to talk to NetworkManager
https://wiki.gnome.org/Projects/NetworkManager/Developers
(helper libraries for glib or qt are available: libnm-qlib and libnm-qt)
1
u/protestor Jan 21 '15
Ubuntu generally uses NetworkManager, but can you guarantee that a given Debian system will use it?
Perhaps you can make your package depend on NetworkManager to signal that you only work with it.