A simple library for discovering the IP address of the default gateway.
Implementation can be found in the example
directory.
Provides implementations for:
- FreeBSD
- Linux
- OS X (Darwin)
- Solaris
- Windows
Other platforms use an implementation that always returns an error.
Pull requests for other OSs happily considered!