Commit 1adf7c7e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Err, IPv4 multicast starts at 224.0.0.0 not 225.0.0.0

parent 1155c2df
...@@ -497,7 +497,7 @@ static inline vlc_bool_t net_AddressIsMulticast( vlc_object_t *p_object, char *p ...@@ -497,7 +497,7 @@ static inline vlc_bool_t net_AddressIsMulticast( vlc_object_t *p_object, char *p
{ {
#if !defined( SYS_BEOS ) #if !defined( SYS_BEOS )
struct sockaddr_in *v4 = (struct sockaddr_in *) res->ai_addr; struct sockaddr_in *v4 = (struct sockaddr_in *) res->ai_addr;
b_multicast = ( ntohl( v4->sin_addr.s_addr ) >= 0xe1000000 && ntohl( v4->sin_addr.s_addr ) <= 0xEFFFFFFF ); b_multicast = ( ntohl( v4->sin_addr.s_addr ) >= 0xe0000000 && ntohl( v4->sin_addr.s_addr ) <= 0xefffffff );
#endif #endif
} }
else if( res->ai_family == AF_INET6 ) else if( res->ai_family == AF_INET6 )
......
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