Programmatic way to find interface

Neal Becker ndbecker2 at gmail.com
Sun Nov 12 11:09:03 UTC 2006


What is a programmatic way to find out what interface is associated with the
default route?

I know this could be done by parsing /proc/sys/net/route, but is there a
more elegant solution?




More information about the users mailing list