Changeset ed07de3e8469dd5ada15d8aa9700d807e43e999c
- Timestamp:
- 28/02/06 15:52:40
(3 years ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1141138360 +0000
- git-parent:
[af6036749949bc1932d2efe054ba7eb9772a8719]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1141138360 +0000
- Message:
Fail when trying to advertise a stream with an out-of-scope address
(avoids spamming the MBONE with incorrect private streams)
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rd02fbdb |
red07de3 |
|
| 318 | 318 | ipv4 = 0xefc3ffff; |
|---|
| 319 | 319 | else |
|---|
| | 320 | if ((ipv4 & 0xff000000) == 0xef000000) |
|---|
| | 321 | ipv4 = 0; |
|---|
| | 322 | else |
|---|
| 320 | 323 | /* other addresses => 224.2.127.254 */ |
|---|
| 321 | 324 | ipv4 = 0xe0027ffe; |
|---|
| | 325 | |
|---|
| | 326 | if( ipv4 == 0 ) |
|---|
| | 327 | { |
|---|
| | 328 | msg_Err( p_sap, "Out-of-scope multicast address " |
|---|
| | 329 | "not supported by SAP: %s", p_session->psz_uri ); |
|---|
| | 330 | vlc_mutex_unlock( &p_sap->object_lock ); |
|---|
| | 331 | vlc_freeaddrinfo( res ); |
|---|
| | 332 | return VLC_EGENERIC; |
|---|
| | 333 | } |
|---|
| 322 | 334 | |
|---|
| 323 | 335 | ((struct sockaddr_in *)&addr)->sin_addr.s_addr = htonl( ipv4 ); |
|---|