[dvblast-devel] UDP port greater 9999 feature or bug?

Cpulinker cpulinker at yandex.ru
Tue Jan 5 10:02:14 CET 2010


Lately, I installed new (for me) version of dvblast 1.2.0svn in production.
And was surprised. Brodcasting was fine, but port number was wrong.
I used this config:
-------cut-------------
224.244.1.1:15567           1       4000
224.244.1.4:15567           1       3900
224.244.1.7:15567           1       3600
-------cut-------------
But netstat -anu gives me port number 1556.....
I've searched in sources and found this (my change)
-------cut-------------
--- old/dvblast.c       2010-01-03 17:46:00 +0300
+++ new/dvblast.c       2010-01-03 20:50:03 +0300
@@ -101,7 +101,7 @@
         char *psz_parser, *psz_token, *psz_token2, *psz_token3;
         struct addrinfo *p_addr;
         struct addrinfo ai_hints;
-        char sz_port[5];
+        char sz_port[6];
         char *psz_displayname;
         uint16_t i_sid = 0;
         uint16_t *pi_pids = NULL;
@@ -456,7 +456,7 @@
         case 'd':
         {
             char *psz_token, *psz_displayname;
-            char sz_port[5];
+            char sz_port[6];
             struct addrinfo *p_daddr;
             struct addrinfo ai_hints;
             int i_dup_config = 0;
-------cut-------------
With this changes it's work.
And i don't now if there are need more changes....
My question is : can be port number 5-digits?



More information about the dvblast-devel mailing list