]> git.sesse.net Git - vlc/commitdiff
IP6 "MUST NOT" have a TTL.
authorRémi Denis-Courmont <rem@videolan.org>
Tue, 27 Feb 2007 20:17:31 +0000 (20:17 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Tue, 27 Feb 2007 20:17:31 +0000 (20:17 +0000)
This will be parsed as an address counter on the receiver,
with disastrous consequences

modules/stream_out/rtp.c

index c3717295bfbe75c002b8f3d4a6248add2ffb1ca7..22def1bf5b9380784571e21bd4fec4781b522228 100644 (file)
@@ -536,7 +536,8 @@ static int Open( vlc_object_t *p_this )
           a= source-filter: we need our source address
            a= x-plgroup: (missing)
            RTP packets need to get the correct src IP address  */
-        if( net_AddressIsMulticast( (vlc_object_t *)p_stream, p_sys->psz_destination ) )
+        if( (ipv == 4)
+        && net_AddressIsMulticast( (vlc_object_t *)p_stream, p_sys->psz_destination ) )
         {
             snprintf( psz_ttl, sizeof( psz_ttl ), "/%d", p_sys->i_ttl );
             psz_ttl[sizeof( psz_ttl ) - 1] = '\0';