From ffbd58b3b5c625802ee581d32faaeeecc6fb83c5 Mon Sep 17 00:00:00 2001 From: Michael Tuexen <tuexen@fh-muenster.de> Date: Fri, 4 May 2018 14:04:06 +0200 Subject: [PATCH] Add Solaris support (currently without SCTP support). --- gtests/net/packetdrill/platforms.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/gtests/net/packetdrill/platforms.h b/gtests/net/packetdrill/platforms.h index 2ecacab8..cd988aac 100644 --- a/gtests/net/packetdrill/platforms.h +++ b/gtests/net/packetdrill/platforms.h @@ -125,5 +125,21 @@ #endif /* __APPLE__ */ +/* ------------------------- Solaris --------------------- */ + +#if defined(__SunOS_5_11) + +#define IPPROTO_IPIP IPPROTO_ENCAP +#define IPPROTO_GRE 47 +#include <sys/types.h> +#include <sys/socket.h> +//#include <netinet/sctp.h> +#define USE_LIBPCAP 1 +#define HAVE_TCP_INFO 1 +#define HAVE_FMEMOPEN 1 +#define HAVE_OPEN_MEMSTREAM 1 + +#endif /* __SunOS_5_11 */ + #endif /* __PLATFORMS_H__ */ -- GitLab