OpenVAS Scanner 23.23.1
capture_packet.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Greenbone AG
2 * SPDX-FileCopyrightText: 2002-2003 Michel Arboi
3 * SPDX-FileCopyrightText: 2002-2003 Renaud Deraison
4 *
5 * SPDX-License-Identifier: GPL-2.0-only
6 */
7
8#ifndef NASL_CAPTURE_PACKET_H
9#define NASL_CAPTURE_PACKET_H
10
11#include <netinet/in.h>
12#include <netinet/ip6.h>
13
14int
15init_capture_device (struct in_addr, struct in_addr, char *);
16
17struct ip *
18capture_next_packet (int, int, int *);
19
20char *
21capture_next_frame (int, int, int *, int);
22
23int
24init_v6_capture_device (struct in6_addr, struct in6_addr, char *);
25
26struct ip6_hdr *
27capture_next_v6_packet (int, int, int *);
28
29#endif
struct ip6_hdr * capture_next_v6_packet(int, int, int *)
Definition capture_packet.c:271
int init_v6_capture_device(struct in6_addr, struct in6_addr, char *)
Definition capture_packet.c:215
struct ip * capture_next_packet(int, int, int *)
Definition capture_packet.c:157
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:31
char * capture_next_frame(int, int, int *, int)
Capture a link layer frame.
Definition capture_packet.c:96