Update netlink vendoring (#1471)

* github.com/ema/qdisc
* github.com/mdlayher/genetlink
* github.com/mdlayher/wifi

Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
Ben Kochie 2019-09-05 15:35:13 +02:00 committed by GitHub
commit 0e77317955
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
245 changed files with 6515 additions and 1699 deletions

View file

@ -5,7 +5,7 @@ os:
- linux
sudo: required
before_install:
- go get github.com/golang/lint/golint
- go get golang.org/x/lint/golint
- go get honnef.co/go/tools/cmd/staticcheck
- go get -d -t ./...
script:

View file

@ -76,7 +76,7 @@ func (c *client) Interfaces() ([]*Interface, error) {
},
}
flags := netlink.HeaderFlagsRequest | netlink.HeaderFlagsDump
flags := netlink.Request | netlink.Dump
msgs, err := c.c.Execute(req, c.familyID, flags)
if err != nil {
return nil, err
@ -106,7 +106,7 @@ func (c *client) BSS(ifi *Interface) (*BSS, error) {
Data: b,
}
flags := netlink.HeaderFlagsRequest | netlink.HeaderFlagsDump
flags := netlink.Request | netlink.Dump
msgs, err := c.c.Execute(req, c.familyID, flags)
if err != nil {
return nil, err
@ -140,7 +140,7 @@ func (c *client) StationInfo(ifi *Interface) ([]*StationInfo, error) {
Data: b,
}
flags := netlink.HeaderFlagsRequest | netlink.HeaderFlagsDump
flags := netlink.Request | netlink.Dump
msgs, err := c.c.Execute(req, c.familyID, flags)
if err != nil {
return nil, err
@ -164,7 +164,6 @@ func (c *client) StationInfo(ifi *Interface) ([]*StationInfo, error) {
return stations, nil
}
// checkMessages verifies that response messages from generic netlink contain
// the command and family version we expect.
func (c *client) checkMessages(msgs []genetlink.Message, command uint8) error {

View file

@ -1,6 +1,8 @@
// WARNING: This file has automatically been generated on Thu, 29 Dec 2016 08:53:57 EST.
// By https://git.io/cgogen. DO NOT EDIT.
//lint:file-ignore U1000 Ignore all unused code, it's generated.
package nl80211
const (