File: sens.h

package info (click to toggle)
arpalert 2.0.12-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 3,508 kB
  • sloc: ansic: 4,452; sh: 517; makefile: 116; perl: 35
file content (37 lines) | stat: -rw-r--r-- 732 bytes parent folder | download | duplicates (5)
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
31
32
33
34
35
36
37
/*
 * Copyright (c) 2005-2010 Thierry FOURNIER
 * $Id: sens.h 690 2008-03-31 18:36:43Z  $
 *
 */

#ifndef __SENS_H__
#define __SENS_H__

#include "data.h"

/* load data aor acls
 * @param status:
 *        SENS_TEST: test file
 *        SENS_LOAD: load file
 * @return:   0 if is ok
 *           -1 if is not ok
 */
#define SENS_TEST   0
#define SENS_LOAD   1
int sens_init(int status);

// free data memory
void sens_free(void);

// reload data
void sens_reload(void);

// add sens to hash
void sens_add(struct ether_addr *mac, struct in_addr ip,
              struct in_addr mask, struct capt *idcap);

// test if sens exists
int  sens_exist(struct ether_addr *mac, struct in_addr ip,
                struct capt *idcap);

#endif