OpenVAS Scanner
7.0.1~git
capture_packet.h
Go to the documentation of this file.
1
/* Copyright (C) 2002 - 2003 Michel Arboi and Renaud Deraison
2
*
3
* SPDX-License-Identifier: GPL-2.0-only
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* version 2 as published by the Free Software Foundation.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17
*/
18
19
#ifndef CAPTURE_PACKET_H
20
#define CAPTURE_PACKET_H
21
22
#include <netinet/in.h>
23
#include <netinet/ip6.h>
24
25
int
26
init_capture_device
(
struct
in_addr,
struct
in_addr,
char
*);
27
28
struct
ip *
29
capture_next_packet
(
int
,
int
,
int
*);
30
31
int
32
init_v6_capture_device
(
struct
in6_addr,
struct
in6_addr,
char
*);
33
34
struct
ip6_hdr *
35
capture_next_v6_packet
(
int
,
int
,
int
*);
36
37
#endif
init_capture_device
int init_capture_device(struct in_addr, struct in_addr, char *)
Set up the pcap filter, and select the correct interface.
Definition:
capture_packet.c:44
init_v6_capture_device
int init_v6_capture_device(struct in6_addr, struct in6_addr, char *)
Definition:
capture_packet.c:143
capture_next_packet
struct ip * capture_next_packet(int, int, int *)
Definition:
capture_packet.c:86
capture_next_v6_packet
struct ip6_hdr * capture_next_v6_packet(int, int, int *)
Definition:
capture_packet.c:186
nasl
capture_packet.h
Generated on Sat May 23 2020 00:00:00 for OpenVAS Scanner by
1.8.17