File: capture.h

package info (click to toggle)
arpalert 2.0.11-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 2,408 kB
  • ctags: 517
  • sloc: ansic: 4,372; sh: 500; makefile: 160; perl: 35
file content (30 lines) | stat: -rw-r--r-- 580 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Copyright (c) 2005-2010 Thierry FOURNIER
 * $Id: capture.h 690 2008-03-31 18:36:43Z  $
 *
 */

#ifndef __CAPTURE_H__
#define __CAPTURE_H__

#include <pcap.h>

// init capture system
void cap_init(void);

// get device name and return pointeur to her struct capt
struct capt *cap_get_interface(char *device);
		  
// set bitfield with the capture descriptors
int cap_gen_bitfield(fd_set *bf);

// launch capture system
void cap_sniff(fd_set *bf);

// reset global flood detection
void cap_abus(void);

// return the next timeout
void *cap_next(struct timeval *tv);
		
#endif