This content has been marked as final. Show 4 replies
The "route get" command does what your looking for.
You can probably get access to the source for the "route" command from opensolaris and see what system calls its using.
Thank you for your response it was very helpful :).
I went to the OpenSolaris webpage because I would like to find the code of this command, but unfortunately I don't know where I should start my searches.
There is a page with source code of basic commands, but there is no "route" command: here .
Maybe you are better enlightened where I should start.
Thank you for answer.
Sorry, you're best bet is to ask on one of the opensolaris forums.
I just typed 'route' into the search box, and the first file called route.c appears to be correct.