Re: /etc/ethers not consulted by ether_hostton() ?
Re: /etc/ethers not consulted by ether_hostton() ?
- Subject: Re: /etc/ethers not consulted by ether_hostton() ?
- From: Terry Lambert <email@hidden>
- Date: Sun, 22 Mar 2009 00:13:57 -0700
On Mar 20, 2009, at 6:49 AM, Marc Balmer wrote:
While porting a piece of software from OpenBSD to Mac OS X 10.5.6, I
found
that /etc/ethers seems not to be read by ether_hostton(). I created
an /etc/ethers
file with a few entries, but neither my software nor e.g. tcpdump
finds those
entries.
Does anybody here have some information on this? If this is the wrong
mailing list to ask, pls tell me which one would be more appropriate.
This appears to be handled in SEL_NAME case in the file lookup.subproj/
file_module.c in the LibInfo project, which is part of libc/libSystem.
Maybe you are formatting the contents incorrectly for parsing, and
need to look at the source for the parse routine? Alternately, since
it's in the file-module of LibInfo, maybe you have to do some sort of
configuration dance to ensure that it's being consulted (I would have
no idea what).
I expect enumation by ether_line() would work in any case, assuming
your file format was correct, since there are no explicit comparison
items used in that case, as it's an iterator.
Good luck (and before you ask, I have no idea what sort of dance would
be necessary, you'll need to trace the code paths to find out).
-- Terry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden