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?