[polypaudio-commits] r721 - /trunk/src/modules/rtp/module-rtp-monitor.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sun Apr 16 02:14:56 PDT 2006


Author: lennart
Date: Sun Apr 16 11:14:55 2006
New Revision: 721

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=721&root=polypaudio&view=rev
Log:
* increase default MTU
* change default mcast address to 224.0.1.3
* randomize RTP ports by default

Modified:
    trunk/src/modules/rtp/module-rtp-monitor.c

Modified: trunk/src/modules/rtp/module-rtp-monitor.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/rtp/module-rtp-monitor.c?rev=721&root=polypaudio&r1=720&r2=721&view=diff
==============================================================================
--- trunk/src/modules/rtp/module-rtp-monitor.c (original)
+++ trunk/src/modules/rtp/module-rtp-monitor.c Sun Apr 16 11:14:55 2006
@@ -63,11 +63,11 @@
         "loop=<loopback to local host?>"
 )
 
-#define DEFAULT_PORT 5004
+#define DEFAULT_PORT 46000
 #define SAP_PORT 9875
-#define DEFAULT_DESTINATION "224.0.1.2"
+#define DEFAULT_DESTINATION "224.0.1.3"
 #define MEMBLOCKQ_MAXLENGTH (1024*170)
-#define DEFAULT_MTU 1024
+#define DEFAULT_MTU 1280
 #define SAP_INTERVAL 5000000
 
 static const char* const valid_modargs[] = {
@@ -207,7 +207,8 @@
         pa_log(__FILE__": invalid mtu.");
         goto fail;
     }
-    
+
+    port = DEFAULT_PORT + (rand() % 512);
     if (pa_modargs_get_value_u32(ma, "port", &port) < 0 || port < 1 || port > 0xFFFF) {
         pa_log(__FILE__": port= expects a numerical argument between 1 and 65535.");
         goto fail;




More information about the pulseaudio-commits mailing list