OpenVAS Scanner  6.0.0~git
pcap_openvas.h
Go to the documentation of this file.
1 /* Portions Copyright (C) 2009-2019 Greenbone Networks GmbH
2  * Based on work Copyright (C) 1998 - 2007 Tenable Network Security, Inc.
3  *
4  * SPDX-License-Identifier: GPL-2.0-or-later
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19  */
20 
26 #ifndef OPENVAS_PCAP_H
27 #define OPENVAS_PCAP_H
28 
29 #include <arpa/inet.h>
30 #include <pcap.h>
31 #include <sys/param.h>
32 #ifdef __FreeBSD__
33 #include <netinet/in.h>
34 #endif
35 
36 int
37 v6_is_local_ip (struct in6_addr *);
38 
39 int
40 islocalhost (struct in_addr *);
41 
42 int
43 v6_islocalhost (struct in6_addr *);
44 
45 int
46 get_datalink_size (int);
47 
48 char *
49 routethrough (struct in_addr *, struct in_addr *);
50 
51 char *
52 v6_routethrough (struct in6_addr *, struct in6_addr *);
53 
54 int
55 v6_getsourceip (struct in6_addr *, struct in6_addr *);
56 
57 #endif
int get_datalink_size(int)
Definition: pcap.c:295
int islocalhost(struct in_addr *)
Tests whether a packet sent to IP is LIKELY to route through the kernel localhost interface...
Definition: pcap.c:268
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:789
int v6_is_local_ip(struct in6_addr *)
Definition: pcap.c:117
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:975
int v6_getsourceip(struct in6_addr *, struct in6_addr *)
Definition: pcap.c:478
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:231