Create ARP request applicable for this interface
(self)
| 561 | raise CaptureTimeoutError(f"Packet didn't arrive within timeout ({timeout})") |
| 562 | |
| 563 | def create_arp_req(self): |
| 564 | """Create ARP request applicable for this interface""" |
| 565 | return Ether(dst="ff:ff:ff:ff:ff:ff", src=self.remote_mac) / ARP( |
| 566 | op=getattr(ARP, "who_has", 1), |
| 567 | pdst=self.local_ip4, |
| 568 | psrc=self.remote_ip4, |
| 569 | hwsrc=self.remote_mac, |
| 570 | ) |
| 571 | |
| 572 | def create_ndp_req(self, addr=None): |
| 573 | """Create NDP - NS applicable for this interface""" |