(self)
| 30 | self.l4_dport = l4_dport |
| 31 | |
| 32 | def reverse(self): |
| 33 | return Packet( |
| 34 | ip_src=self.ip_dst, |
| 35 | l4_sport=self.l4_dport, |
| 36 | ip_dst=self.ip_src, |
| 37 | l4_dport=self.l4_sport, |
| 38 | ) |
| 39 | |
| 40 | def hash_data(self, use_l4_port: bool = False) -> bytes: |
| 41 | data = self.ip_src.packed + self.ip_dst.packed |
no test coverage detected