From fb9552b7dec85442d13d570dd41e2015ecf9f635 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Fri, 15 Apr 2005 14:53:59 +0000 Subject: [PATCH] support for non-global statically defined SAP IPv4 multicast addresses (Trivial patch) --- modules/services_discovery/sap.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/modules/services_discovery/sap.c b/modules/services_discovery/sap.c index 818653f41f..193345182a 100644 --- a/modules/services_discovery/sap.c +++ b/modules/services_discovery/sap.c @@ -55,7 +55,14 @@ /* SAP is always on that port */ #define SAP_PORT 9875 -#define SAP_V4_ADDRESS "224.2.127.254" +/* Global-scope SAP address */ +#define SAP_V4_GLOBAL_ADDRESS "224.2.127.254" +/* Organization-local SAP address */ +#define SAP_V4_ORG_ADDRESS "239.195.255.255" +/* Local (smallest non-link-local scope) SAP address */ +#define SAP_V4_LOCAL_ADDRESS "239.255.255.255" +/* Link-local SAP address */ +#define SAP_V4_LINK_ADDRESS "224.0.0.255" #define ADD_SESSION 1 #define IPV6_ADDR_1 "FF0" /* Scope is inserted between them */ @@ -299,7 +306,10 @@ static int Open( vlc_object_t *p_this ) if( var_CreateGetInteger( p_sd, "sap-ipv4" ) ) { - InitSocket( p_sd, SAP_V4_ADDRESS, SAP_PORT ); + InitSocket( p_sd, SAP_V4_GLOBAL_ADDRESS, SAP_PORT ); + InitSocket( p_sd, SAP_V4_ORG_ADDRESS, SAP_PORT ); + InitSocket( p_sd, SAP_V4_LOCAL_ADDRESS, SAP_PORT ); + InitSocket( p_sd, SAP_V4_LINK_ADDRESS, SAP_PORT ); } if( var_CreateGetInteger( p_sd, "sap-ipv6" ) ) { -- 2.39.2