Commit fee133d6 authored by Marian Durkovic's avatar Marian Durkovic

forwardport [17646] (SDP source-filter fix)

parent 35316016
...@@ -292,8 +292,8 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap, ...@@ -292,8 +292,8 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap,
"\x00\x00\x00\x00\x00\x02\x7f\xfe", 14 ); "\x00\x00\x00\x00\x00\x02\x7f\xfe", 14 );
if( IN6_IS_ADDR_MULTICAST( a6 ) ) if( IN6_IS_ADDR_MULTICAST( a6 ) )
{ {
/* force flags to zero, preserve scope */ /* force reserved bits in flags to zero, preserve scope */
a6->s6_addr[1] &= 0xf; a6->s6_addr[1] &= 0x3f;
/* SSM <=> ff3x::/32 */ /* SSM <=> ff3x::/32 */
b_ssm = (GetDWLE (a6->s6_addr) & 0xfff0ffff) == 0xff300000; b_ssm = (GetDWLE (a6->s6_addr) & 0xfff0ffff) == 0xff300000;
...@@ -330,10 +330,9 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap, ...@@ -330,10 +330,9 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap,
else else
/* other addresses => 224.2.127.254 */ /* other addresses => 224.2.127.254 */
{ {
ipv4 = 0xe0027ffe;
/* SSM: 232.0.0.0/8 */ /* SSM: 232.0.0.0/8 */
b_ssm = (ipv4 >> 24) == 232; b_ssm = (ipv4 >> 24) == 232;
ipv4 = 0xe0027ffe;
} }
if( ipv4 == 0 ) if( ipv4 == 0 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment