Merge pull request #65 from eyakubovich/neigh-list-filtered

Pass linkIndex filter into kernel for NeighList
This commit is contained in:
Vish Ishaya 2015-11-17 11:20:44 -08:00
commit c081f9bb20

View File

@ -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)