Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
c5695168
Commit
c5695168
authored
Nov 10, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use var_Inherit
parent
ab61a033
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
src/network/getaddrinfo.c
src/network/getaddrinfo.c
+2
-2
src/network/io.c
src/network/io.c
+1
-1
src/network/tcp.c
src/network/tcp.c
+3
-3
src/network/udp.c
src/network/udp.c
+6
-6
No files found.
src/network/getaddrinfo.c
View file @
c5695168
...
...
@@ -137,11 +137,11 @@ int vlc_getaddrinfo( vlc_object_t *p_this, const char *node,
if
(
hints
.
ai_family
==
AF_UNSPEC
)
{
#ifdef AF_INET6
if
(
var_
CreateGe
tBool
(
p_this
,
"ipv6"
))
if
(
var_
Inheri
tBool
(
p_this
,
"ipv6"
))
hints
.
ai_family
=
AF_INET6
;
else
#endif
if
(
var_
CreateGe
tBool
(
p_this
,
"ipv4"
))
if
(
var_
Inheri
tBool
(
p_this
,
"ipv4"
))
hints
.
ai_family
=
AF_INET
;
}
...
...
src/network/io.c
View file @
c5695168
...
...
@@ -112,7 +112,7 @@ int net_Socket (vlc_object_t *p_this, int family, int socktype,
#ifdef DCCP_SOCKOPT_SERVICE
if
(
socktype
==
SOL_DCCP
)
{
char
*
dccps
=
var_
CreateGetNonEmpty
String
(
p_this
,
"dccp-service"
);
char
*
dccps
=
var_
Inherit
String
(
p_this
,
"dccp-service"
);
if
(
dccps
!=
NULL
)
{
setsockopt
(
fd
,
SOL_DCCP
,
DCCP_SOCKOPT_SERVICE
,
dccps
,
...
...
src/network/tcp.c
View file @
c5695168
...
...
@@ -88,7 +88,7 @@ int net_Connect( vlc_object_t *p_this, const char *psz_host, int i_port,
hints
.
ai_socktype
=
type
;
hints
.
ai_protocol
=
proto
;
psz_socks
=
var_
CreateGetNonEmpty
String
(
p_this
,
"socks"
);
psz_socks
=
var_
Inherit
String
(
p_this
,
"socks"
);
if
(
psz_socks
!=
NULL
)
{
char
*
psz
=
strchr
(
psz_socks
,
':'
);
...
...
@@ -224,8 +224,8 @@ next_ai: /* failure */
if
(
psz_socks
!=
NULL
)
{
/* NOTE: psz_socks already free'd! */
char
*
psz_user
=
var_
CreateGetNonEmpty
String
(
p_this
,
"socks-user"
);
char
*
psz_pwd
=
var_
CreateGetNonEmpty
String
(
p_this
,
"socks-pwd"
);
char
*
psz_user
=
var_
Inherit
String
(
p_this
,
"socks-user"
);
char
*
psz_pwd
=
var_
Inherit
String
(
p_this
,
"socks-pwd"
);
if
(
SocksHandshakeTCP
(
p_this
,
i_handle
,
5
,
psz_user
,
psz_pwd
,
psz_host
,
i_port
)
)
...
...
src/network/udp.c
View file @
c5695168
...
...
@@ -356,7 +356,7 @@ net_IPv4Join (vlc_object_t *obj, int fd,
socklen_t
optlen
;
/* Multicast interface IPv4 address */
char
*
iface
=
var_
CreateGetNonEmpty
String
(
obj
,
"miface-addr"
);
char
*
iface
=
var_
Inherit
String
(
obj
,
"miface-addr"
);
if
((
iface
!=
NULL
)
&&
(
inet_pton
(
AF_INET
,
iface
,
&
id
)
<=
0
))
{
...
...
@@ -459,7 +459,7 @@ net_SourceSubscribe (vlc_object_t *obj, int fd,
{
int
level
,
iid
=
0
;
char
*
iface
=
var_
CreateGetNonEmpty
String
(
obj
,
"miface"
);
char
*
iface
=
var_
Inherit
String
(
obj
,
"miface"
);
if
(
iface
!=
NULL
)
{
iid
=
if_nametoindex
(
iface
);
...
...
@@ -649,7 +649,7 @@ int net_ConnectDgram( vlc_object_t *p_this, const char *psz_host, int i_port,
bool
b_unreach
=
false
;
if
(
i_hlim
<
0
)
i_hlim
=
var_
CreateGe
tInteger
(
p_this
,
"ttl"
);
i_hlim
=
var_
Inheri
tInteger
(
p_this
,
"ttl"
);
memset
(
&
hints
,
0
,
sizeof
(
hints
)
);
hints
.
ai_socktype
=
SOCK_DGRAM
;
...
...
@@ -684,21 +684,21 @@ int net_ConnectDgram( vlc_object_t *p_this, const char *psz_host, int i_port,
if
(
i_hlim
>=
0
)
net_SetMcastHopLimit
(
p_this
,
fd
,
ptr
->
ai_family
,
i_hlim
);
str
=
var_
CreateGetNonEmpty
String
(
p_this
,
"miface"
);
str
=
var_
Inherit
String
(
p_this
,
"miface"
);
if
(
str
!=
NULL
)
{
net_SetMcastOut
(
p_this
,
fd
,
ptr
->
ai_family
,
str
,
NULL
);
free
(
str
);
}
str
=
var_
CreateGetNonEmpty
String
(
p_this
,
"miface-addr"
);
str
=
var_
Inherit
String
(
p_this
,
"miface-addr"
);
if
(
str
!=
NULL
)
{
net_SetMcastOut
(
p_this
,
fd
,
ptr
->
ai_family
,
NULL
,
str
);
free
(
str
);
}
net_SetDSCP
(
fd
,
var_
CreateGe
tInteger
(
p_this
,
"dscp"
));
net_SetDSCP
(
fd
,
var_
Inheri
tInteger
(
p_this
,
"dscp"
));
if
(
connect
(
fd
,
ptr
->
ai_addr
,
ptr
->
ai_addrlen
)
==
0
)
{
...
...
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