Search the packet info list for the next packet info with same source and destination interface indexes :param src_index: source interface index to search for :param dst_index: destination interface index to search for :param info: packet info - where to sta
(self, src_index, dst_index, info)
| 419 | return info |
| 420 | |
| 421 | def get_next_packet_info_for_interface2(self, src_index, dst_index, info): |
| 422 | """ |
| 423 | Search the packet info list for the next packet info with same source |
| 424 | and destination interface indexes |
| 425 | |
| 426 | :param src_index: source interface index to search for |
| 427 | :param dst_index: destination interface index to search for |
| 428 | :param info: packet info - where to start the search |
| 429 | :returns: packet info or None |
| 430 | |
| 431 | """ |
| 432 | while True: |
| 433 | info = self.get_next_packet_info_for_interface(src_index, info) |
| 434 | if info is None: |
| 435 | return None |
| 436 | if info.dst == dst_index: |
| 437 | return info |
| 438 | |
| 439 | def assert_packet_checksums_valid(self, packet, ignore_zero_udp_checksums=True): |
| 440 | received = packet.__class__(scapy.compat.raw(packet)) |