1

How to read parameters on linux network interfaces file (/etc/network/interfaces) c

view story
linux-howto

http://stackoverflow.com – I'd like to read and set all parameters in /etc/network/interfaces using c++. This is my interfaces file # /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.1.6 network 192.168.1.0 netmask 255.255.255.0 broadcast 192.168.1.255 gateway 192.168.1.1 hwaddress ether 50:76:A6:04:00:01 auto eth0:0 iface eth0:0 inet static address 100.100.100.251 netmask 255.255.255.0 Is there anyway to do it easier ? Thanks (HowTos)