mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00

- daemon: Allow to dump XDP sockets from kernel. - ui: Added options to filter by RAW protocol and AF_XDP family. - Bumped vishvananda/netlink version to v1.3.0. - Updated go.mod and go.sum
11 lines
239 B
Go
11 lines
239 B
Go
package netlink
|
|
|
|
import (
|
|
vnl "github.com/vishvananda/netlink"
|
|
)
|
|
|
|
// SocketGetXDP dumps all the opened XDP sockets from kernel
|
|
func SocketGetXDP() ([]*vnl.XDPDiagInfoResp, error) {
|
|
// TODO: enable filtering
|
|
return vnl.SocketDiagXDP()
|
|
}
|