OpenVAS Scanner  7.0.0~git
nasl_raw.h
Go to the documentation of this file.
1 /* Based on work Copyright (C) 2002 - 2004 Tenable Network Security
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 OPENVAS_RAW_H
20 #define OPENVAS_RAW_H
21 
22 #ifdef __linux__
23 #ifndef __BSD_SOURCE
24 #define __BSD_SOURCE
25 #endif
26 
27 /* legacy feature macros */
28 #ifndef _BSD_SOURCE
29 #define _BSD_SOURCE
30 #endif
31 
32 /* New feature macro that provides everything _BSD_SOURCE provided and
33  possibly more. */
34 #ifndef _DEFAULT_SOURCE
35 #define _DEFAULT_SOURCE 1
36 #endif
37 
38 #ifndef __FAVOR_BSD
39 #define __FAVOR_BSD
40 #endif
41 #endif // __linux__
42 
43 #include <netinet/tcp.h>
44 #include <netinet/udp.h>
45 #include <sys/param.h>
46 #ifdef __FreeBSD__
47 #include <netinet/in.h>
48 #include <netinet/ip.h>
49 #endif
50 
51 #include <netinet/ip_icmp.h>
52 
53 #endif