1

i'm trying to find a linux C function which should obtain interface name(or id) of ipv6 destination address using routing informating.

I want use this interface name to send my raw packet through pcap_inject()

Does something like this exist? or i have to popen ip -6 route and parse information from this output?

  • The post is short but might help: http://stackoverflow.com/questions/750006/how-to-programmatically-edit-the-routing-table/750056#750056 as entry, as it gives a hint how to read the routing table entries. – alk Nov 12 '11 at 11:05

1 Answers1

1

what you are looking for is ICMPv6 protocol, messages are NeighborAdvertisment and NeighborSolicitation

Erbureth
  • 3,378
  • 22
  • 39