Based on my neped-libnet source, just figures out what boxens in your lan run IP stack and are in the same subnet with you.