OpenVAS Scanner  22.7.9
nasl_raw.h
Go to the documentation of this file.
1 /* SPDX-FileCopyrightText: 2023 Greenbone AG
2  * SPDX-FileCopyrightText: 2002-2004 Tenable Network Security
3  *
4  * SPDX-License-Identifier: GPL-2.0-only
5  */
6 
7 #ifndef NASL_NASL_RAW_H
8 #define NASL_NASL_RAW_H
9 
10 #ifdef __linux__
11 #ifndef __BSD_SOURCE
12 #define __BSD_SOURCE
13 #endif
14 
15 /* legacy feature macros */
16 #ifndef _BSD_SOURCE
17 #define _BSD_SOURCE
18 #endif
19 
20 /* New feature macro that provides everything _BSD_SOURCE provided and
21  possibly more. */
22 #ifndef _DEFAULT_SOURCE
23 #define _DEFAULT_SOURCE 1
24 #endif
25 
26 #ifndef __FAVOR_BSD
27 #define __FAVOR_BSD
28 #endif
29 #endif // __linux__
30 
31 #include <netinet/tcp.h>
32 #include <netinet/udp.h>
33 #include <sys/param.h>
34 #ifdef __FreeBSD__
35 #include <netinet/in.h>
36 #include <netinet/ip.h>
37 #endif
38 
39 #include <netinet/ip_icmp.h>
40 
41 #endif