Add initial wifi collector, bump netlink to fix 32-bit builds
This commit is contained in:
parent
8ee7f5bad2
commit
efa25665ec
9 changed files with 337 additions and 7 deletions
5
vendor/github.com/mdlayher/netlink/conn.go
generated
vendored
5
vendor/github.com/mdlayher/netlink/conn.go
generated
vendored
|
|
@ -2,7 +2,6 @@ package netlink
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"math"
|
||||
"os"
|
||||
"sync/atomic"
|
||||
)
|
||||
|
|
@ -102,8 +101,8 @@ func (c *Conn) Execute(m Message) ([]Message, error) {
|
|||
func (c *Conn) Send(m Message) (Message, error) {
|
||||
ml := nlmsgLength(len(m.Data))
|
||||
|
||||
// TODO(mdlayher): fine-tune this limit. ~4GiB is a huge message.
|
||||
if ml > math.MaxUint32 {
|
||||
// TODO(mdlayher): fine-tune this limit.
|
||||
if ml > (1024 * 32) {
|
||||
return Message{}, errors.New("netlink message data too large")
|
||||
}
|
||||
|
||||
|
|
|
|||
2
vendor/github.com/mdlayher/netlink/sockopt_linux_386.go
generated
vendored
2
vendor/github.com/mdlayher/netlink/sockopt_linux_386.go
generated
vendored
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
// +build linux,386
|
||||
|
||||
package raw
|
||||
package netlink
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue