mirror of
https://github.com/vishvananda/netlink
synced 2025-03-04 12:27:49 +00:00
Merge pull request #65 from eyakubovich/neigh-list-filtered
Pass linkIndex filter into kernel for NeighList
This commit is contained in:
commit
c081f9bb20
@ -133,6 +133,7 @@ func NeighList(linkIndex, family int) ([]Neigh, error) {
|
||||
req := nl.NewNetlinkRequest(syscall.RTM_GETNEIGH, syscall.NLM_F_DUMP)
|
||||
msg := Ndmsg{
|
||||
Family: uint8(family),
|
||||
Index: uint32(linkIndex),
|
||||
}
|
||||
req.AddData(&msg)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user