File: sens_timeouts.h

package info (click to toggle)
arpalert 2.0.3-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,332 kB
  • ctags: 415
  • sloc: ansic: 4,185; sh: 447; makefile: 153; perl: 28
file content (30 lines) | stat: -rw-r--r-- 706 bytes parent folder | download
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: sens_timeouts.h 250 2006-10-09 16:25:21Z thierry $
 *
 */

#ifndef __SENS_TIMEOUTS_H__
#define __SENS_TIMEOUTS_H__

#include "data.h"

// initialize data structures
void sens_timeout_init(void);

// add new detection timour tracking
void sens_timeout_add(struct ether_addr *, struct in_addr,
                      struct capt *idcap);

// return TRUE if timeout is not expired
int  sens_timeout_exist(struct ether_addr *, struct in_addr,
                        struct capt *idcap);

// return the next timeout and the functionn to call
void *sens_timeout_next(struct timeval *tv);

// cleanup timeout expireds
void sens_timeout_clean(void);

#endif