func (n netlinkNIC) Addresses() ([]ConfigSourceAddr, error) {
	rawAddrs, err := n.getAddrs(n.nic)
	if err != nil {
		return nil, errors.Trace(err)
	}

	addrs := make([]ConfigSourceAddr, len(rawAddrs))
	for i := range rawAddrs {
		addrs[i] = &netlinkAddr{addr: &rawAddrs[i]}
	}
	return addrs, nil
}
// Addresses returns all IP addresses associated with the device.
Addresses returns all IP addresses associated with the device.
// Addresses returns all IP addresses associated with the device .
func (n netlinkNIC) Addresses() ([]ConfigSourceAddr, error) {
	rawAddrs, err := n.getAddrs(n.nic)
	if err != nil {
		return nil, errors.Trace(err)
	}
	addrs := make([]ConfigSourceAddr, len(rawAddrs))
	for i := range rawAddrs {
		addrs[i] = &netlinkAddr{addr: &rawAddrs[i]}
	}
	return addrs, nil
}
func ( n netlinkNIC ) Addresses ( ) ( [ ] ConfigSourceAddr , error ) { rawAddrs , err := n . getAddrs ( n . nic ) if err != nil { return nil , errors . Trace ( err ) } addrs := make ( [ ] ConfigSourceAddr , len ( rawAddrs ) ) for i := range rawAddrs { addrs [ i ] = & netlinkAddr { addr : & rawAddrs [ i ] } } return addrs , nil }
Addresses returns all IP addresses associated with the device.
Addresses returns all IP addresses associated with the device .