$ rm -f d $ cp dhcpd.conf d $ $VALGRIND ../src/confctl -Sa d > authoritative= > subnet.192.168.0.0.netmask.255.255.255.0.option=broadcast-address 255.255.255.0 > subnet.192.168.0.0.netmask.255.255.255.0.option=routers 192.168.0.1 > subnet.192.168.0.0.netmask.255.255.255.0.host.p2p.hardware=ethernet 00:AA:BB:CC:DD:EE > subnet.192.168.0.0.netmask.255.255.255.0.host.p2p.fixed-address=192.168.0.13 # Note that the additional backslashes are discarded by the run script. $ $VALGRIND ../src/confctl -Sw 'subnet.192\\.168\\.0\\.0.netmask.255\\.255\\.255\\.0.host\\ foo.bar=baz' d $ $VALGRIND ../src/confctl -Sa d > authoritative= > subnet.192.168.0.0.netmask.255.255.255.0.option=broadcast-address 255.255.255.0 > subnet.192.168.0.0.netmask.255.255.255.0.option=routers 192.168.0.1 > subnet.192.168.0.0.netmask.255.255.255.0.host.p2p.hardware=ethernet 00:AA:BB:CC:DD:EE > subnet.192.168.0.0.netmask.255.255.255.0.host.p2p.fixed-address=192.168.0.13 > subnet.192.168.0.0.netmask.255.255.255.0.host.foo.bar=baz $ cat d > authoritative; > subnet 192.168.0.0 netmask 255.255.255.0 { > option broadcast-address 255.255.255.0; > option routers 192.168.0.1; > > host p2p { > hardware ethernet 00:AA:BB:CC:DD:EE; > fixed-address 192.168.0.13; > } > host foo { > bar baz; > } > } $ $VALGRIND ../src/confctl -Sx 'subnet.192\\.168\\.0\\.0.netmask.255\\.255\\.255\\.0.host.p2p' d $ cat d > authoritative; > subnet 192.168.0.0 netmask 255.255.255.0 { > option broadcast-address 255.255.255.0; > option routers 192.168.0.1; > host foo { > bar baz; > } > } # XXX: The 'bar baz;' above has wrong indent (tab instead of only spaces); it should be: # > bar baz; $ rm -f d