/gateway

A library for discovering the address of a LAN gateway.

Primary LanguageGoBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

gateway

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

Implementation can be found in the example directory.

Build Status

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!