Revert "Use netlink.SetPromiscOn instead of iproute2 command"

This commit is contained in:
Wojciech Tyczynski
2016-08-22 10:28:11 +02:00
committed by GitHub
parent 364d696fd5
commit 0459574450
47 changed files with 464 additions and 5653 deletions

View File

@@ -11,13 +11,11 @@ import (
type Addr struct {
*net.IPNet
Label string
Flags int
Scope int
}
// String returns $ip/$netmask $label
func (a Addr) String() string {
return strings.TrimSpace(fmt.Sprintf("%s %s", a.IPNet, a.Label))
return fmt.Sprintf("%s %s", a.IPNet, a.Label)
}
// ParseAddr parses the string representation of an address in the