Commit de14672a authored by Marian Durkovic's avatar Marian Durkovic

Fix endianes bug in automatic SDP source-filter

parent 865b8f0d
...@@ -293,7 +293,7 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap, ...@@ -293,7 +293,7 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap,
if( IN6_IS_ADDR_MULTICAST( a6 ) ) if( IN6_IS_ADDR_MULTICAST( a6 ) )
{ {
/* SSM <=> ff3x::/32 */ /* SSM <=> ff3x::/32 */
b_ssm = (GetDWLE (a6->s6_addr) & 0xfff0ffff) == 0xff300000; b_ssm = (U32_AT (a6->s6_addr) & 0xfff0ffff) == 0xff300000;
/* force flags to zero, preserve scope */ /* force flags to zero, preserve scope */
a6->s6_addr[1] &= 0xf; a6->s6_addr[1] &= 0xf;
......
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