Przeglądaj źródła

udp_flood sctp portability fix

- compiles now wit -DUSE_SCTP on freebsd 7.0
Andrei Pelinescu-Onciul 17 lat temu
rodzic
commit
794923f1b2
1 zmienionych plików z 1 dodań i 1 usunięć
  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));
 			}