File: sens_timeouts.h

package info (click to toggle)
arpalert 2.0.12-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,560 kB
  • sloc: ansic: 4,456; sh: 517; makefile: 116; perl: 35
file content (30 lines) | stat: -rw-r--r-- 699 bytes parent folder | download | duplicates (7)
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 690 2008-03-31 18:36:43Z  $
 *
 */

#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