Fixed typo in netlink parameter

Thanks to @Ph0rk0z for pointing it out.
This commit is contained in:
Gustavo Iñiguez Goia 2020-02-13 10:01:22 +01:00
parent 54bb5dcca5
commit d5b7c597ae

View file

@ -24,6 +24,7 @@ var (
ErrNotImplemented = errors.New("not implemented")
native = nl.NativeEndian()
networkOrder = binary.BigEndian
TCP_ALL = uint32(0xfff)
)
type SocketID struct {
@ -195,7 +196,7 @@ func SocketGet(family uint8, proto uint8, local, remote net.Addr) (*Socket, erro
req.AddData(&SocketRequest{
Family: family,
Protocol: proto,
States: TCP_ALL,
States: uint32(TCP_ALL),
ID: _Id,
})
msgs, err := req.Execute(syscall.NETLINK_INET_DIAG, 0)