I'm working on a C++ application on Solaris 11 that needs to read the network routes (similar to the output of "route" on Linux or "netstat -r" on Solaris).
What is the best way to do on Solaris ? Solaris doesn't support getting it via sysctl() on an AF_ROUTE socket, like FreeBSD does.
I don't want to fork netstat and parse the output.