OpenVAS Scanner  22.7.9
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 
14 int
15 init_capture_device (struct in_addr, struct in_addr, char *);
16 
17 struct ip *
18 capture_next_packet (int, int, int *);
19 
20 char *
21 capture_next_frame (int, int, int *, int);
22 
23 int
24 init_v6_capture_device (struct in6_addr, struct in6_addr, char *);
25 
26 struct ip6_hdr *
27 capture_next_v6_packet (int, int, int *);
28 
29 #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:31
init_v6_capture_device
int init_v6_capture_device(struct in6_addr, struct in6_addr, char *)
Definition: capture_packet.c:215
capture_next_frame
char * capture_next_frame(int, int, int *, int)
Capture a link layer frame.
Definition: capture_packet.c:96
capture_next_packet
struct ip * capture_next_packet(int, int, int *)
Definition: capture_packet.c:157
capture_next_v6_packet
struct ip6_hdr * capture_next_v6_packet(int, int, int *)
Definition: capture_packet.c:271