[netperf-dev] netperf2 commit notice r291 - trunk/src
raj at netperf.org
raj at netperf.org
Tue Oct 21 14:54:30 PDT 2008
Author: raj
Date: 2008-10-21 14:54:29 -0700 (Tue, 21 Oct 2008)
New Revision: 291
Modified:
trunk/src/nettest_bsd.c
Log:
fedora rawhide does not seem to have SOL_DCCP
Modified: trunk/src/nettest_bsd.c
===================================================================
--- trunk/src/nettest_bsd.c 2008-10-21 00:43:53 UTC (rev 290)
+++ trunk/src/nettest_bsd.c 2008-10-21 21:54:29 UTC (rev 291)
@@ -1301,7 +1301,18 @@
/* it is REALLY SILLY THAT THIS SHOULD BE NEEDED!! I
should be able to use SOL_SOCKET for this just
like TCP and SCTP */
+ /* IT IS EVEN SILLIER THAT THERE COULD BE SYSTEMS
+ WITH IPPROTO_DCCP and no SOL_DCCP */
+#ifndef SOL_DCCP
+#define SOL_DCCP SOL_SOCKET
+#define NETPERF_NEED_CLEANUP 1
+#endif
(res->ai_protocol == IPPROTO_DCCP) ? SOL_DCCP : SOL_SOCKET,
+#ifdef NETPERF_NEED_CLEANUP
+#undef SOL_DCCP
+#undef NETPERF_NEED_CLEANUP
+#endif
+
#else
SOL_SOCKET,
#endif
More information about the netperf-dev
mailing list