Lines Matching refs:addr

83       addr = self._RouterAddress(netid, 6)
85 self.iproute.UpdateNeighbour(6, addr, None, ifindex, NUD_FAILED)
134 def GetNeighbour(self, addr, ifindex): argument
135 version = csocket.AddressVersion(addr)
137 if args["NDA_DST"] == addr:
140 def GetNdEntry(self, addr): argument
141 return self.GetNeighbour(addr, self.ifindex)
146 def assertNeighbourState(self, state, addr): argument
147 self.assertEqual(state, self.GetNdEntry(addr)[0].state)
149 def assertNeighbourAttr(self, addr, name, value): argument
150 self.assertEqual(value, self.GetNdEntry(addr)[1][name])
152 def ExpectNeighbourNotification(self, addr, state, attrs=None): argument
155 self.assertEqual(addr, actual_attrs["NDA_DST"])
161 def ExpectProbe(self, is_unicast, addr): argument
162 version = csocket.AddressVersion(addr)
167 dst = addr
169 solicited = inet_pton(AF_INET6, addr)
175 scapy.ICMPv6ND_NS(tgt=addr) /
183 dst = addr
190 def ExpectUnicastProbe(self, addr): argument
191 self.ExpectProbe(True, addr)
193 def ExpectMulticastNS(self, addr): argument
194 self.ExpectProbe(False, addr)
196 def ReceiveUnicastAdvertisement(self, addr, mac, srcaddr=None, dstaddr=None, argument
198 version = csocket.AddressVersion(addr)
200 srcaddr = addr
207 scapy.ICMPv6ND_NA(tgt=addr, S=S, O=O, R=R) /
214 def SendDnsRequest(self, addr): argument
215 version = csocket.AddressVersion(addr)
218 s.connect((addr, 53))
222 def MonitorSleepMs(self, interval, addr): argument
228 print(self.GetNdEntry(addr))
230 def MonitorSleep(self, intervalseconds, addr): argument
231 self.MonitorSleepMs(intervalseconds * 1000, addr)
311 def ForceProbe(addr, mac): argument
312 self.iproute.UpdateNeighbour(6, addr, None, self.ifindex, NUD_PROBE)
313 self.assertNeighbourState(NUD_PROBE, addr)
314 self.ExpectNeighbourNotification(addr, NUD_PROBE)
316 self.assertNeighbourState(NUD_PROBE, addr)
317 self.ExpectUnicastProbe(addr)
318 self.ReceiveUnicastAdvertisement(addr, mac)
319 self.assertNeighbourState(NUD_REACHABLE, addr)
320 self.ExpectNeighbourNotification(addr, NUD_REACHABLE)