Versions in this module Expand all Collapse all v0 v0.0.1 Jul 8, 2023 Changes in this version + const AF_INET + const AF_INET6 + const AF_NETLINK + const AF_UNSPEC + const IFA_ADDRESS + const IFA_ANYCAST + const IFA_BROADCAST + const IFA_CACHEINFO + const IFA_LABEL + const IFA_LOCAL + const IFF_UP + const NETLINK_ROUTE + const NLMSG_HDRLEN + const NLM_F_ACK + const NLM_F_CREATE + const NLM_F_DUMP + const NLM_F_EXCL + const NLM_F_REPLACE + const NLM_F_REQUEST + const RTA_CACHEINFO + const RTA_DST + const RTA_FLOW + const RTA_GATEWAY + const RTA_IIF + const RTA_METRICS + const RTA_OIF + const RTA_PREFSRC + const RTA_PRIORITY + const RTA_SRC + const RTA_TABLE + const RTM_DELADDR + const RTM_DELROUTE + const RTM_GETADDR + const RTM_GETROUTE + const RTM_NEWADDR + const RTM_NEWLINK + const RTM_NEWROUTE + const RTNLGRP_ND_USEROPT + const RTN_UNICAST + const RTPROT_BOOT + const RT_SCOPE_UNIVERSE + const RT_TABLE_MAIN + const SOCK_CLOEXEC + const SOCK_RAW + const SOL_SOCKET + const SO_RCVTIMEO + const SizeofRtAttr + func DeserializeNlMsgerr(nlm *syscall.NetlinkMessage) error + func RtAttrToSliceByte(types uint16, ip net.IP, ips ...net.IP) []byte + func SerializeAddrs(a *Addrs, idx uint32) []byte + func SerializeRoutes(r *Routes, idx uint32) []byte + type Addrs struct + Anycast net.IP + Broadcast net.IP + Cache *cacheInfo + Local net.IP + type Interface struct + func InterfaceByName(ifname string) (*Interface, error) + func (ifi *Interface) AddIP(a Addrs) error + func (ifi *Interface) AddRoute(r Routes) error + func (ifi *Interface) Close() + func (ifi *Interface) Down() error + func (ifi *Interface) IPList() ([]*Addrs, error) + func (ifi *Interface) RemoveIP(a Addrs) error + func (ifi *Interface) RemoveRoute(r Routes) error + func (ifi *Interface) ReplaceIP(a *Addrs) error + func (ifi *Interface) ReplaceRoute(r *Routes) error + func (ifi *Interface) RouteList() ([]*Routes, error) + func (ifi *Interface) RtnetlinkConn() *rtnetlink.RtnetlinkConn + func (ifi *Interface) Up() error + type NetlinkMessage struct + Message []*syscall.NetlinkMessage + type Routes struct + Dst net.IP + Gw net.IP + Priority uint32 + Src net.IP