udp_flood sctp portability fix
authorAndrei Pelinescu-Onciul <andrei@iptel.org>
Wed, 3 Sep 2008 20:17:04 +0000 (20:17 +0000)
committerAndrei Pelinescu-Onciul <andrei@iptel.org>
Wed, 3 Sep 2008 20:17:04 +0000 (20:17 +0000)
- compiles now wit -DUSE_SCTP on freebsd 7.0

test/udp_flood.c

index a25b26a..fa6ba4c 100644 (file)
@@ -317,7 +317,7 @@ int main (int argc, char** argv)
 #ifdef USE_SCTP
                else if (proto==PROTO_SCTP){
                        t=1;
-                       if (setsockopt(sock, SOL_SCTP, SCTP_NODELAY, &t, sizeof(t))<0){
+                       if (setsockopt(sock, IPPROTO_SCTP, SCTP_NODELAY, &t, sizeof(t))<0){
                                fprintf(stderr, "ERROR: could not disable Nagle: %s\n",
                                                                strerror(errno));
                        }