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

@ -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 {