LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   c++ default route (https://www.linuxquestions.org/questions/programming-9/c-default-route-286909/)

bassdemon 02-06-2005 10:08 AM

c++ default route
 
hey all. Is there an easy way to get the default route within a c/c++ program? I know that info is stored in /proc/net/route and I'd rather not have to parse it. Do any libraries exist for this? thanks.

bassdemon

gr33ndata 02-06-2005 10:29 AM

Try "man netlink", and "man rtnetlink"


All times are GMT -5. The time now is 06:12 AM.