Jason C
Jason C

Reputation: 40335

Parsing /etc/network/interfaces

Is there a C or C++ library available for parsing, editing, and writing /etc/network/interfaces on Linux (in the form described at http://manpages.ubuntu.com/manpages/hardy/man5/interfaces.5.html)?

Upvotes: 6

Views: 3550

Answers (1)

Jayen
Jayen

Reputation: 6069

http://augeas.net/

Augeas is a configuration editing tool. It parses configuration files in their native formats and transforms them into a tree. Configuration changes are made by manipulating this tree and saving it back into native config files.

Upvotes: 7

Related Questions