diff options
Diffstat (limited to 'net/test/neighbour_test.py')
-rwxr-xr-x | net/test/neighbour_test.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/test/neighbour_test.py b/net/test/neighbour_test.py index 2caba44..caf2e6e 100755 --- a/net/test/neighbour_test.py +++ b/net/test/neighbour_test.py @@ -87,14 +87,14 @@ class NeighbourTest(multinetwork_base.MultiNetworkBaseTest): self.netid = random.choice(self.tuns.keys()) self.ifindex = self.ifindices[self.netid] - def GetNeighbour(self, addr): + def GetNeighbour(self, addr, ifindex): version = csocket.AddressVersion(addr) - for msg, args in self.iproute.DumpNeighbours(version): + for msg, args in self.iproute.DumpNeighbours(version, ifindex): if args["NDA_DST"] == addr: return msg, args def GetNdEntry(self, addr): - return self.GetNeighbour(addr) + return self.GetNeighbour(addr, self.ifindex) def CheckNoNdEvents(self): self.assertRaisesErrno(errno.EAGAIN, self.sock.recvfrom, 4096, MSG_PEEK) |