Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
103e0016
Commit
103e0016
authored
Oct 24, 2002
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* plugins/network/ipv4.c: fixed a crash with multicast addresses when no
interface address is given.
parent
5aa03402
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
ChangeLog
ChangeLog
+6
-0
plugins/network/ipv4.c
plugins/network/ipv4.c
+4
-3
src/interface/main.c
src/interface/main.c
+2
-2
No files found.
ChangeLog
View file @
103e0016
...
...
@@ -2,6 +2,12 @@
#
ChangeLog
for
vlc
#
#===================#
0.4.6
Not
released
yet
.
*
plugins
/
network
/
ipv4
.
c
:
fixed
a
crash
with
multicast
addresses
when
no
interface
address
is
given
.
0.4.5
Fri
,
11
Oct
2002
15
:
37
:
41
+
0200
...
...
plugins/network/ipv4.c
View file @
103e0016
...
...
@@ -2,7 +2,7 @@
* ipv4.c: IPv4 network abstraction layer
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: ipv4.c,v 1.12.2.
2 2002/10/01 22:26:39
massiot Exp $
* $Id: ipv4.c,v 1.12.2.
3 2002/10/24 21:08:28
massiot Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Mathias Kretschmer <mathias@research.att.com>
...
...
@@ -273,7 +273,8 @@ static int OpenUDP( network_socket_t * p_socket )
char
*
psz_if_addr
=
config_GetPszVariable
(
"iface-addr"
);
imr
.
imr_multiaddr
.
s_addr
=
inet_addr
(
psz_bind_addr
);
#endif
if
(
*
psz_if_addr
&&
inet_addr
(
psz_if_addr
)
!=
-
1
)
if
(
psz_if_addr
!=
NULL
&&
*
psz_if_addr
&&
inet_addr
(
psz_if_addr
)
!=
-
1
)
{
imr
.
imr_interface
.
s_addr
=
inet_addr
(
psz_if_addr
);
}
...
...
@@ -281,7 +282,7 @@ static int OpenUDP( network_socket_t * p_socket )
{
imr
.
imr_interface
.
s_addr
=
INADDR_ANY
;
}
free
(
psz_if_addr
);
if
(
psz_if_addr
!=
NULL
)
free
(
psz_if_addr
);
if
(
setsockopt
(
i_handle
,
IPPROTO_IP
,
IP_ADD_MEMBERSHIP
,
(
char
*
)
&
imr
,
sizeof
(
struct
ip_mreq
)
)
==
-
1
)
...
...
src/interface/main.c
View file @
103e0016
...
...
@@ -4,7 +4,7 @@
* and spawn threads.
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* $Id: main.c,v 1.195.2.
9 2002/10/11 09:01:18 gbazin
Exp $
* $Id: main.c,v 1.195.2.
10 2002/10/24 21:08:28 massiot
Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -422,7 +422,7 @@ ADD_STRING ( "channel-server", "localhost", NULL, CHAN_SERV_TEXT, CHAN_SERV_LON
ADD_INTEGER
(
"channel-port"
,
6010
,
NULL
,
CHAN_PORT_TEXT
,
CHAN_PORT_LONGTEXT
)
ADD_INTEGER
(
"mtu"
,
1500
,
NULL
,
MTU_TEXT
,
MTU_LONGTEXT
)
ADD_STRING
(
"iface"
,
"eth0"
,
NULL
,
IFACE_TEXT
,
IFACE_LONGTEXT
)
ADD_STRING
(
"iface-addr"
,
""
,
NULL
,
IFACE_ADDR_TEXT
,
IFACE_ADDR_LONGTEXT
)
ADD_STRING
(
"iface-addr"
,
NULL
,
NULL
,
IFACE_ADDR_TEXT
,
IFACE_ADDR_LONGTEXT
)
ADD_INTEGER
(
"program"
,
0
,
NULL
,
INPUT_PROGRAM_TEXT
,
INPUT_PROGRAM_LONGTEXT
)
ADD_INTEGER
(
"audio-type"
,
-
1
,
NULL
,
INPUT_AUDIO_TEXT
,
INPUT_AUDIO_LONGTEXT
)
...
...
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