gateway
A simple library for discovering the IP address of the default gateway.

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!