Hi, together,
I am currently developing a Signaling Protocol instance, which will
signal along a IP "Flow".
Thus I have addressing information the like
"Flow Source IP"/"Flow Destination IP"
Now I want to query the Linux kernel, how it woul route Pakets with that
source and destination. (This is essential to me, as I must not use
other interfaces than these, which are used for the flow, and a router
would have many of them *ggg*)
I found that the program "ip" is able to do such queries
("ip route get 10.10.0.1 from 10.10.0.6"),
but I found still no way to query the kernel programmatically from a C++
program.
Has anyone some hints to as where to look for information or even a
solution?
"man 7 ip" and referenced manpages did not help thus far...
Many thanks,
Thomas