Versions in this module Expand all Collapse all v1 v1.0.1 Aug 3, 2022 v1.0.0 Sep 28, 2021 Changes in this version + const RTA_PREF + const SizeofHeader + func Create(c *nl.Client, r *Request) error + func NativeEndian() binary.ByteOrder + func Remove(c *nl.Client, r *Request) error + type Cacheinfo struct + Clntref uint32 + Error uint32 + Expires uint32 + ID uint32 + Lastuse uint32 + Ts uint32 + Tsage uint32 + Used uint32 + func DecodeCacheinfo(b []byte) (*Cacheinfo, error) + type Header struct + Dstlen uint8 + Family uint8 + Flags uint32 + Protocol uint8 + Scope uint8 + Srclen uint8 + Table uint8 + Tos uint8 + Type uint8 + func DecodeHeader(b []byte) (Header, error) + func (h Header) Encode(b []byte) (int, error) + func (h Header) Len() int + type Request struct + Attrs nl.AttrList + Header Header + func (r *Request) AddDst(dst *net.IPNet) error + func (r *Request) AddIfName(ifname string) error + type Route struct + Cache *Cacheinfo + Dst net.IP + Gw net.IP + Header Header + Oif uint32 + Pref uint8 + Prefsrc net.IP + Prio uint32 + Table uint32 + func DecodeRoute(b []byte) (*Route, error) + func GetAll(c *nl.Client, r *Request) ([]Route, error)