1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Include netutil.h for IPPROTO_SCTP constant where necessary. Fixes #868

This commit is contained in:
dmiller
2017-04-26 18:55:16 +00:00
parent c324237cf0
commit ab5e247cee
9 changed files with 33 additions and 5 deletions

View File

@@ -173,6 +173,10 @@
#include <shlobj.h>
#endif
#ifndef IPPROTO_SCTP
#include "libnetutil/netutil.h"
#endif
#if HAVE_OPENSSL
#include <openssl/opensslv.h>
#endif

5
nmap.h
View File

@@ -166,11 +166,6 @@
#include <sys/param.h> /* Defines MAXHOSTNAMELEN on BSD*/
#endif
/* For systems without SCTP in netinet/in.h, such as MacOS X */
#ifndef IPPROTO_SCTP
#define IPPROTO_SCTP 132
#endif
/* Keep assert() defined for security reasons */
#undef NDEBUG

View File

@@ -8,6 +8,10 @@
#include "nse_main.h"
#include "nse_utility.h"
#ifndef IPPROTO_SCTP
#include "libnetutil/netutil.h"
#endif
int nseU_checkinteger (lua_State *L, int arg)
{
lua_Number n = luaL_checknumber(L, arg);

View File

@@ -139,6 +139,10 @@
#include <netdb.h>
#endif
#ifndef IPPROTO_SCTP
#include "libnetutil/netutil.h"
#endif
#define PROTOCOL_TABLE_SIZE 256
struct protocol_list {

View File

@@ -151,6 +151,10 @@
#include "struct_ip.h"
#ifndef IPPROTO_SCTP
#include "libnetutil/netutil.h"
#endif
#include <math.h>
#include <list>
#include <map>

View File

@@ -139,6 +139,11 @@
#include <dnet.h>
#include "timing.h"
#ifndef IPPROTO_SCTP
#include "libnetutil/netutil.h"
#endif
#include <pcap.h>
#include <list>
#include <vector>

View File

@@ -140,6 +140,10 @@
#include "utils.h"
#include <string>
#ifndef IPPROTO_SCTP
#include "libnetutil/netutil.h"
#endif
extern NmapOps o;
/* Pass an arp packet, including ethernet header. Must be 42bytes */

View File

@@ -168,6 +168,10 @@
# endif
#endif
#ifndef IPPROTO_SCTP
#include "libnetutil/netutil.h"
#endif
#include <algorithm>
#include <list>

View File

@@ -180,6 +180,10 @@ individually.
#include "struct_ip.h"
#ifndef IPPROTO_SCTP
#include "libnetutil/netutil.h"
#endif
#include <dnet.h>
#include <algorithm>