yellowman / nsh

OpenBSD networking configuration shell
http://www.nmedia.net/nsh/
Other
175 stars 27 forks source link

Update externs.h #18

Closed jcpierri closed 8 years ago

jcpierri commented 8 years ago

I made a router using OpenBSD+flashrd+NSH and found the command "SHOW DHCP LEASES" complaining about the file /var/db/dhcpd.leases wasn't on their place. I built with -DDHCPLEASES=\"/flash/dhcpd.leases\" and dhcpd was working as expected. After some digging I found the above path hardcoded in externs.h so I edited it making its definition conditional and the issue is gone. If you feel it worth merging, please go ahead.

yellowman commented 8 years ago

I just got rid of DHCPDB and migrated it to DHCPLEASES. Thanks.