Skip to content

Commit

Permalink
Update to latest netlink
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdee committed Jun 15, 2016
1 parent 5a2db92 commit 18bb551
Show file tree
Hide file tree
Showing 58 changed files with 5,729 additions and 737 deletions.
2 changes: 1 addition & 1 deletion backend/udp/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func configureIface(ifname string, ipn ip.IP4Net, mtu int) error {
return fmt.Errorf("failed to lookup interface %v", ifname)
}

err = netlink.AddrAdd(iface, &netlink.Addr{ipn.ToIPNet(), ""})
err = netlink.AddrAdd(iface, &netlink.Addr{IPNet: ipn.ToIPNet(), Label: ""})
if err != nil {
return fmt.Errorf("failed to add IP address %v to %v: %v", ipn.String(), ifname, err)
}
Expand Down
2 changes: 1 addition & 1 deletion backend/vxlan/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ func setAddr4(link *netlink.Vxlan, ipn *net.IPNet) error {
}
}

addr := netlink.Addr{ipn, ""}
addr := netlink.Addr{IPNet: ipn, Label: ""}
if err = netlink.AddrAdd(link, &addr); err != nil {
return fmt.Errorf("failed to add IP address %s to %s: %s", ipn.String(), link.Attrs().Name, err)
}
Expand Down
8 changes: 5 additions & 3 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import:
- package: github.com/vaughan0/go-ini
version: a98ad7ee00ec53921f08832bc06ecf7fd600e6a1
- package: github.com/vishvananda/netlink
version: a57a12c1b1d8aa37cf2f9da4fa7657b1f1fed88c
version: 293adec04146bfb07bf34f75921ebc9c1ee2cd74
subpackages:
- nl
- package: golang.org/x/net
Expand Down
7 changes: 6 additions & 1 deletion vendor/github.com/vishvananda/netlink/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vendor/github.com/vishvananda/netlink/Makefile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/vishvananda/netlink/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions vendor/github.com/vishvananda/netlink/addr.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

182 changes: 143 additions & 39 deletions vendor/github.com/vishvananda/netlink/addr_linux.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 18bb551

Please sign in to comment.