mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
Fixed typo in netlink parameter
Thanks to @Ph0rk0z for pointing it out.
This commit is contained in:
parent
54bb5dcca5
commit
d5b7c597ae
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue