2014-01-17 21:12:08 +00:00
|
|
|
// Packet netlink provide access to low level Netlink sockets and messages.
|
|
|
|
//
|
|
|
|
// Actual implementations are in:
|
|
|
|
// netlink_linux.go
|
|
|
|
// netlink_darwin.go
|
|
|
|
package netlink
|
|
|
|
|
2014-02-12 17:29:06 +00:00
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
"net"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
ErrWrongSockType = errors.New("Wrong socket type")
|
|
|
|
ErrShortResponse = errors.New("Got short response from netlink")
|
|
|
|
)
|
2014-01-17 21:12:08 +00:00
|
|
|
|
|
|
|
// A Route is a subnet associated with the interface to reach it.
|
|
|
|
type Route struct {
|
|
|
|
*net.IPNet
|
|
|
|
Iface *net.Interface
|
|
|
|
Default bool
|
|
|
|
}
|