Explorar o código

udp_flood sctp portability fix

- compiles now wit -DUSE_SCTP on freebsd 7.0
Andrei Pelinescu-Onciul %!s(int64=17) %!d(string=hai) anos
pai
achega
794923f1b2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      test/udp_flood.c

+ 1 - 1
test/udp_flood.c

@@ -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));
 			}