title: Resolving MAC address for IP address using C++ on Linux
body: <p>I need to generate an Ethernet header that includes the destination MAC address, (since libnfnetlink gives only the IP header before prerouting takes place), the outgoing interface number is also known, so the lookup can be made in the correct network.</p>
  
  <p>What's the library/function to resolve the MAC address from an IP address?</p>