OpenVAS Scanner 21.4.1
pcap_openvas.h
Go to the documentation of this file.
1/* Portions Copyright (C) 2009-2021 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
36int
37v6_is_local_ip (struct in6_addr *);
38
39int
40islocalhost (struct in_addr *);
41
42int
43v6_islocalhost (struct in6_addr *);
44
45int
47
48char *
49routethrough (struct in_addr *, struct in_addr *);
50
51char *
52v6_routethrough (struct in6_addr *, struct in6_addr *);
53
54int
55v6_getsourceip (struct in6_addr *, struct in6_addr *);
56
57#endif
int get_datalink_size(int)
Definition: pcap.c:303
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:239
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:856
int islocalhost(struct in_addr *)
Tests whether a packet sent to IP is LIKELY to route through the kernel localhost interface.
Definition: pcap.c:276
int v6_is_local_ip(struct in6_addr *)
Definition: pcap.c:121
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:1075
int v6_getsourceip(struct in6_addr *, struct in6_addr *)
Definition: pcap.c:492