On Sun, Oct 12, 2008 at 02:34:08PM +0300, Lars Nood??n wrote:
> OpenBSD's rarpd gets its configuration from /etc/ethers
> http://www.openbsd.org/cgi-bin/man.cgi?query=rarpd
>
> How can it be set to use another source for configuration data?
>
> (I'd like to leave / and /etc mounted read-only as well as have the
> choice of several different, separate configurations.)
>
> Regards
> -Lars
>
looks like you're interested in:
int ether_ntohost(char *hostname, struct ether_addr *e) which opens
_PATH_ETHERS for read. It's at lib/libc/net/ethers.c
Should be pretty easy to modify rarpd.c to match needed behavior.