Commit Graph

12 Commits

Author SHA1 Message Date
Dan Winship
8a610f1e24 Add LinkSetTxQLen 2017-09-05 23:13:55 -07:00
David Gee
d71ebad8a5 Mended LinkSetMaster signature mismatch
Signature mismatches when you try and compile on non-Linux machines. Instead of ErrNotImplemented, you get a message about wrongly using *Bridge.
2017-03-29 10:07:30 -07:00
David McClure
6c782366d2 Add LinkSetARPOff and LinkSetARPOn
Signed-off-by: Jay Dunkelberger <ldunkelberger@pivotal.io>
2017-03-21 02:39:47 -07:00
Sebastien Boving
a3f0be6352 Add support for tcp diags. 2017-02-04 16:48:17 -08:00
Ethan J. Jackson
90b9ee5358 Fix the RouteList() prototype on non-linux platforms
The RouteList() function prototype had become out of sync with its
Linux counterpart.  This patch updates it.
2017-01-10 14:32:23 -08:00
Ethan J. Jackson
9f67bd458b Update netlink_unspecified with new Addr function prototypes
At some point the function prototypes for the `AddrAdd` and `AddrDel`
functions got out of sync with addr_linix.go.  This patch fixes it.
2017-01-05 13:01:20 -08:00
Ethan J. Jackson
13fb20a978 Update link functions on non-Linux builds
The non-Linux stub implementation found in netlink_unspecified.go was
missing quite a few Link related functions.  Also, some of the
functions that were there took a `*Link` instead of a `Link`.
2016-12-19 10:14:57 -08:00
Roman Verchikov
482f7a52b7 Inconsistent AddrList() interface
The issue was noticed when building coreos/flannel on Mac. By default
the build would fail with:

    pkg/ip/iface.go:32: cannot use link (type *netlink.Device) as type
    *netlink.Link in argument to netlink.AddrList:
        *netlink.Link is pointer to interface, not interface

Resolved by making interfaces of AddList() implementations the same,
although the reason for having `netlink_unspecified.go` is not fully
clear to me and given that there's only one implementation available.
Perhaps a better idea would be to remove the "interface" altoghether.
2016-11-19 14:19:31 -08:00
Vish Ishaya
0bc457d244 fix darwin build by moving code (#138)
Fixes issue #135
2016-06-15 08:44:14 -07:00
Alexander Morozov
2e9d285a71 Change logic of setting protinfo attrs
Now interface is supposing that you setting protinfo attrs for link one
by one. But you can get all protinfo attrs with one call.

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-02-17 14:16:48 -08:00
Eugene Yakubovich
33e8718673 arp and vxlan support added 2014-10-13 11:04:09 -07:00
Vishvananda Ishaya
8dab8b7462 Initial commit of netlink package 2014-08-31 20:34:46 -07:00