OpenVAS Scanner 21.4.1
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
25int
26init_capture_device (struct in_addr, struct in_addr, char *);
27
28struct ip *
29capture_next_packet (int, int, int *);
30
31int
32init_v6_capture_device (struct in6_addr, struct in6_addr, char *);
33
34struct ip6_hdr *
35capture_next_v6_packet (int, int, int *);
36
37#endif
struct ip6_hdr * capture_next_v6_packet(int, int, int *)
Definition: capture_packet.c:212
int init_v6_capture_device(struct in6_addr, struct in6_addr, char *)
Definition: capture_packet.c:156
struct ip * capture_next_packet(int, int, int *)
Definition: capture_packet.c:99
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