Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
fb9552b7
Commit
fb9552b7
authored
Apr 15, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support for non-global statically defined SAP IPv4 multicast addresses
(Trivial patch)
parent
f30f3c45
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
modules/services_discovery/sap.c
modules/services_discovery/sap.c
+12
-2
No files found.
modules/services_discovery/sap.c
View file @
fb9552b7
...
...
@@ -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"
)
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment