OpenVAS Libraries  8.0.3
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 v6_is_local_ip (struct in6_addr *);
32 int v6_get_mac_addr (struct in6_addr *, char **);
33 int islocalhost (struct in_addr *);
34 int v6_islocalhost (struct in6_addr *);
35 int get_datalink_size (int);
36 char *routethrough (struct in_addr *, struct in_addr *);
37 char *v6_routethrough (struct in6_addr *, struct in6_addr *);
38 int v6_getsourceip (struct in6_addr *, struct in6_addr *);
39 
40 #endif
int get_datalink_size(int)
Definition: pcap.c:442
int islocalhost(struct in_addr *)
Tests whether a packet sent to IP is LIKELY to route through the kernel localhost interface...
Definition: pcap.c:415
char * v6_routethrough(struct in6_addr *, struct in6_addr *)
An awesome function to determine what interface a packet to a given destination should be routed thro...
Definition: pcap.c:1060
int v6_is_local_ip(struct in6_addr *)
Definition: pcap.c:106
char * routethrough(struct in_addr *, struct in_addr *)
An awesome function to determine what interface a packet to a given destination should be routed thro...
Definition: pcap.c:1243
int v6_getsourceip(struct in6_addr *, struct in6_addr *)
Definition: pcap.c:691
int v6_get_mac_addr(struct in6_addr *, char **)
We send an empty UDP packet to the remote host, and read back its mac.
Definition: pcap.c:171
int v6_islocalhost(struct in6_addr *)
Tests whether a packet sent to IP is LIKELY to route through the kernel localhost interface...
Definition: pcap.c:378