[Sumover-dev] [svn commit] r3845 - rat/trunk

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Tue Sep 12 17:32:00 BST 2006


Author: piers
Date: Tue Sep 12 17:32:12 2006
New Revision: 3845

Modified:
   rat/trunk/main_control.c

Log:
Modified port range check so that it allows space for RTCP port number (i.e. 65535-1).

Modified: rat/trunk/main_control.c
==============================================================================
--- rat/trunk/main_control.c	(original)
+++ rat/trunk/main_control.c	Tue Sep 12 17:32:12 2006
@@ -91,8 +91,8 @@
 		p = strtok(NULL, "/");
 		if (p != NULL) {
 			port = atoi(p);
-			if (port < 1023 || port > 65536) {
-				usage("Port must be > 1023 and <= 65536\n");
+			if (port < 1024 || port > 65534) {
+				usage("Port must be > 1023 and <= 65534 (need one more for RTCP)\n");
 				okay = FALSE;
 			}
 		}



More information about the Sumover-dev mailing list