OpenVAS Libraries
9.0.3
nasl
capture_packet.h
Go to the documentation of this file.
1
/* Nessus Attack Scripting Language
2
*
3
* Copyright (C) 2002 - 2003 Michel Arboi and Renaud Deraison
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2,
7
* 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 Street, 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
init_capture_device
(
struct
in_addr,
struct
in_addr,
char
*);
26
struct
ip *
capture_next_packet
(
int
,
int
,
int
*);
27
28
int
init_v6_capture_device
(
struct
in6_addr,
struct
in6_addr,
char
*);
29
struct
ip6_hdr *
capture_next_v6_packet
(
int
,
int
,
int
*);
30
#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:41
init_v6_capture_device
int init_v6_capture_device(struct in6_addr, struct in6_addr, char *)
Definition:
capture_packet.c:144
capture_next_packet
struct ip * capture_next_packet(int, int, int *)
Definition:
capture_packet.c:85
capture_next_v6_packet
struct ip6_hdr * capture_next_v6_packet(int, int, int *)
Definition:
capture_packet.c:188
Generated on Tue Jan 14 2020 18:04:49 for OpenVAS Libraries by
1.8.17