Lines Matching refs:src
107 src = packet.getlayer(scapy.IP).src
109 scapy.IP(src=self.INTERMEDIATE_IPV4, dst=src) /
113 src = packet.getlayer(scapy.IPv6).src
115 scapy.IPv6(src=self.INTERMEDIATE_IPV6, dst=src) /
120 src = packet.getlayer(scapy.IPv6).src
123 scapy.IPv6(src=self.INTERMEDIATE_IPV6, dst=src) /
163 ipv6.dst = ipv6.src
164 for src in [self._routeraddr]:
165 ipv6.src = src
180 src = packet.src
181 packet.src = packet.dst
182 packet.dst = src
185 packet = scapy.Ether(src=self._routermac, dst=self._mymac) / packet
268 rcvd, src = s.recvfrom(32768)
273 if src[0].startswith("::ffff:"):
275 src = (src[0].replace("::ffff:", ""), src[1:])
288 addr, unused_port = src
292 addr, unused_port, flowlabel, scope_id = src # pylint: disable=unbalanced-tuple-unpacking
395 return (scapy.IP(src="192.0.2.1", dst="127.0.0.1") /
397 scapy.IP(src="127.0.0.1", dst="127.0.0.1") /
401 return (scapy.IPv6(src="::1", dst="::1") /
403 scapy.IPv6(src="::1", dst="::1") /
704 _, src = s.recvfrom(32768)
705 _, _, flowlabel, _ = src
858 src = self.reply_threads[self.netid].INTERMEDIATE_IPV6
863 csocket.Sockaddr((src, 0))))