[netperf-dev] netperf2 commit notice r51 - trunk/src

raj at netperf.org raj at netperf.org
Wed Feb 1 14:24:13 PST 2006


Author: raj
Date: 2006-02-01 14:24:12 -0800 (Wed, 01 Feb 2006)
New Revision: 51

Modified:
   trunk/src/nettest_sctp.c
Log:
In nettest_sctp.c, Use MSG_FIN if MSG_EOF is not defined.


Modified: trunk/src/nettest_sctp.c
===================================================================
--- trunk/src/nettest_sctp.c	2006-02-01 22:18:52 UTC (rev 50)
+++ trunk/src/nettest_sctp.c	2006-02-01 22:24:12 UTC (rev 51)
@@ -59,6 +59,17 @@
 #include <arpa/inet.h>
 #include <netdb.h>
 
+/* would seem that not all sctp.h files define a MSG_EOF, but that
+   MSG_EOF can be the same as MSG_FIN so lets work with that
+   assumption.  initial find by Jon Pedersen. raj 2006-02-01 */
+#ifndef MSG_EOF
+#ifdef MSG_FIN
+#define MSG_EOF MSG_FIN
+#else
+#error Must have either MSG_EOF or MSG_FIN defined
+#endif
+#endif 
+
 #include "netlib.h"
 #include "netsh.h"
 /* get some of the functions from nettest_bsd.c */



More information about the netperf-dev mailing list