# /etc/ethers -- the RARP map rarpd answers from, and the ethers(5) database # glibc's ether_ntohost(3)/ether_hostton(3) read through NSS. # # THIS FILE REPLACES UPSTREAM'S, WHICH IS ONE COMMENT LINE AND NOTHING ELSE. # meta-oe installs `ethers.sample' -- "# see man ethers for syntax" -- as # /etc/ethers. rarpd loads no database of its own (load_db() is an empty # function; the README says so), so with an empty map rarp_lookup() finds # nothing for any client and the daemon answers nobody. On a stock image the # package is therefore inert, and there is no subject to assert the ethers # lookup against. # # Every address below is from a range reserved for documentation, so nothing # here can collide with a real host if this image is ever put on a real link: # * 00-00-5E-00-53-00 .. 00-00-5E-00-53-FF -- unicast MACs reserved for # documentation by RFC 7042 section 2.1.2. # * 192.0.2.0/24 -- TEST-NET-1, RFC 5737 section 3. # # The two forms in the second field are BOTH exercised, because rarpd treats # them differently. rarp_lookup() calls ether_ntohost() and then feeds whatever # it got to gethostbyname(3): a dotted quad comes back from gethostbyname # unresolved, which is the "Sun mode" the README describes and the only form # that works on a machine with no name service; a NAME goes through NSS # `hosts: files dns', and on this image that reaches /etc/hosts and stops, # because dns has no resolver to talk to. 00:00:5e:00:53:01 192.0.2.11 00:00:5e:00:53:02 192.0.2.12 00:00:5e:00:53:03 localhost