Callback function, called by apply_on_packets Args: packet
(packet)
| 182 | base_dir_path = os.path.join(sys.path[0], "pcapfiles") |
| 183 | |
| 184 | def packet_callback(packet): |
| 185 | """ |
| 186 | Callback function, called by apply_on_packets |
| 187 | Args: |
| 188 | packet |
| 189 | """ |
| 190 | process_packet( |
| 191 | packet, |
| 192 | honeypot_events_queue, |
| 193 | network_events_queue |
| 194 | ) |
| 195 | |
| 196 | # Run infinite loop and split the capture in multiple files using the timeout set |
| 197 | # in the network configuration |
nothing calls this directly
no test coverage detected