1$ rm -f d 2$ cp dhcpd.conf d 3 4$ $VALGRIND ../src/confctl -Sa d 5> authoritative= 6> subnet.192.168.0.0.netmask.255.255.255.0.option=broadcast-address 255.255.255.0 7> subnet.192.168.0.0.netmask.255.255.255.0.option=routers 192.168.0.1 8> subnet.192.168.0.0.netmask.255.255.255.0.host.p2p.hardware=ethernet 00:AA:BB:CC:DD:EE 9> subnet.192.168.0.0.netmask.255.255.255.0.host.p2p.fixed-address=192.168.0.13 10 11# Note that the additional backslashes are discarded by the run script. 12$ $VALGRIND ../src/confctl -Sw 'subnet.192\\.168\\.0\\.0.netmask.255\\.255\\.255\\.0.host\\ foo.bar=baz' d 13 14$ $VALGRIND ../src/confctl -Sa d 15> authoritative= 16> subnet.192.168.0.0.netmask.255.255.255.0.option=broadcast-address 255.255.255.0 17> subnet.192.168.0.0.netmask.255.255.255.0.option=routers 192.168.0.1 18> subnet.192.168.0.0.netmask.255.255.255.0.host.p2p.hardware=ethernet 00:AA:BB:CC:DD:EE 19> subnet.192.168.0.0.netmask.255.255.255.0.host.p2p.fixed-address=192.168.0.13 20> subnet.192.168.0.0.netmask.255.255.255.0.host.foo.bar=baz 21 22$ cat d 23> authoritative; 24> subnet 192.168.0.0 netmask 255.255.255.0 { 25> option broadcast-address 255.255.255.0; 26> option routers 192.168.0.1; 27> 28> host p2p { 29> hardware ethernet 00:AA:BB:CC:DD:EE; 30> fixed-address 192.168.0.13; 31> } 32> host foo { 33> bar baz; 34> } 35> } 36 37$ $VALGRIND ../src/confctl -Sx 'subnet.192\\.168\\.0\\.0.netmask.255\\.255\\.255\\.0.host.p2p' d 38 39$ cat d 40> authoritative; 41> subnet 192.168.0.0 netmask 255.255.255.0 { 42> option broadcast-address 255.255.255.0; 43> option routers 192.168.0.1; 44> host foo { 45> bar baz; 46> } 47> } 48 49# XXX: The 'bar baz;' above has wrong indent (tab instead of only spaces); it should be: 50# > bar baz; 51 52$ rm -f d 53