[FFmpeg-devel] [PATCH] UDP IGMPv3 source specific multicast and source blocking

Stephen D'Angelo SDAngelo
Mon Sep 13 16:49:15 CEST 2010


Hello all,

Attached is a patch to add support for IGMPv3 source specific multicast
and multicast source blocking.

It currently uses a URL format of:

udp://232.0.0.1:1234?include=1&sources=192.168.0.1,192.168.0.2,192.168.0
.3

Where "include" specifies whether we allow (1) or block (0) the
comma-separated list of IP addresses.  I'm completely open to formatting
this in some other way.

Also, I am currently storing an array of 32 char * within the UDPContext
for the list of sources.  Does FFMPEG have any utility functions for
dynamically creating lists?  Though some z/OS documentation provided by
IBM
(http://publib.boulder.ibm.com/infocenter/zos/v1r10/topic/com.ibm.zos.r1
0.hala001/f1a1d47031.htm#wq94) states that the maximum number of sources
is 20 for UDP sockets anyway, so maybe an array of 20 will do.

I have only tested this in Linux.

This is my first patch, so please let me know if there's anything I
should be doing differently.

Thanks,

Stephen D'Angelo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: udp_igmpv3.patch
Type: application/octet-stream
Size: 4966 bytes
Desc: udp_igmpv3.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100913/abc976b9/attachment.obj>



More information about the ffmpeg-devel mailing list