Documentation ¶
Overview ¶
Package getifaddrs does getifaddrs(3) for Go.
Index ¶
- func IfaDropsOut(ifadata unsafe.Pointer) *uint
- type IfAddr
- func (ia IfAddr) BytesIn() uint
- func (ia IfAddr) BytesOut() uint
- func (ia IfAddr) DropsIn() uint
- func (ia IfAddr) DropsOut() *uint
- func (ia IfAddr) ErrorsIn() uint
- func (ia IfAddr) ErrorsOut() uint
- func (ia IfAddr) IP() string
- func (ia IfAddr) Name() string
- func (ia IfAddr) PacketsIn() uint
- func (ia IfAddr) PacketsOut() uint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IfaDropsOut ¶
Types ¶
type IfAddr ¶
type IfAddr struct { IfaIP string IfaName string IfaBytesIn uint IfaBytesOut uint IfaPacketsIn uint IfaPacketsOut uint IfaDropsIn uint IfaDropsOut *uint // nil in darwin IfaErrorsIn uint IfaErrorsOut uint }
IfAddr is a struct with interface info.
func Getifaddrs ¶
Getifaddrs returns a list of IfAddr. Unlike with getifaddrs(3) the IfAddr has merged link level and interface address data.
func (IfAddr) PacketsOut ¶
Click to show internal directories.
Click to hide internal directories.