OpenVAS Libraries
6.0+beta5
Main Page
Related Pages
Data Structures
Files
File List
Globals
misc
pcap_openvas.h
Go to the documentation of this file.
1
/* OpenVAS
2
* $Id$
3
* Description: Header file for module pcap.
4
*
5
* Authors:
6
* Renaud Deraison <deraison@nessus.org> (Original pre-fork development)
7
*
8
* Copyright:
9
* Based on work Copyright (C) 1998 - 2007 Tenable Network Security, Inc.
10
*
11
* This library is free software; you can redistribute it and/or
12
* modify it under the terms of the GNU Library General Public
13
* License as published by the Free Software Foundation; either
14
* version 2 of the License, or (at your option) any later version.
15
*
16
* This library is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
* Library General Public License for more details.
20
*
21
* You should have received a copy of the GNU General Public License
22
* along with this program; if not, write to the Free Software
23
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
24
*/
25
26
#ifndef OPENVAS_PCAP_H
27
#define OPENVAS_PCAP_H
28
29
#include <pcap.h>
30
31
int
is_local_ip
(
struct
in_addr);
32
int
v6_is_local_ip
(
struct
in6_addr *);
33
int
get_mac_addr
(
struct
in_addr,
char
**);
34
int
v6_get_mac_addr
(
struct
in6_addr *,
char
**);
35
int
islocalhost
(
struct
in_addr *);
36
int
v6_islocalhost
(
struct
in6_addr *);
37
int
get_datalink_size
(
int
);
38
char
*
routethrough
(
struct
in_addr *,
struct
in_addr *);
39
char
*
v6_routethrough
(
struct
in6_addr *,
struct
in6_addr *);
40
41
#endif
Generated by
1.8.3.1