void capture_set_paused(int pause) { if (capture_is_online()) { capinfo.status = (pause) ? CAPTURE_ONLINE_PAUSED : CAPTURE_ONLINE; } }
void capture_thread(void *none) { // Parse available packets pcap_loop(capinfo.handle, -1, parse_packet, NULL); // In offline mode, set capture to fully loaded if (!capture_is_online()) capinfo.status = CAPTURE_OFFLINE; }
void capture_set_paused(int pause) { if (capture_is_online()) { if (pause) capinfo.status = CAPTURE_ONLINE_PAUSED; else capinfo.status = CAPTURE_ONLINE; } }
void capture_thread(void *info) { capture_info_t *capinfo = (capture_info_t *) info; // Parse available packets pcap_loop(capinfo->handle, -1, parse_packet, (u_char *) capinfo); if (!capture_is_online()) capture_cfg.status = CAPTURE_OFFLINE; }