fix addradd docs

This commit is contained in:
xuzhaokui 2014-12-01 11:31:00 +08:00
parent 178d3a43f5
commit c3cc0540f8

View File

@ -10,7 +10,7 @@ import (
)
// AddrAdd will add an IP address to a link device.
// Equivalent to: `ip addr del $addr dev $link`
// Equivalent to: `ip addr add $addr dev $link`
func AddrAdd(link Link, addr *Addr) error {
req := nl.NewNetlinkRequest(syscall.RTM_NEWADDR, syscall.NLM_F_CREATE|syscall.NLM_F_EXCL|syscall.NLM_F_ACK)