Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
94bdf708
Commit
94bdf708
authored
Jul 19, 2002
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* New --mtu option.
parent
b2da0544
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
13 deletions
+12
-13
plugins/network/ipv4.c
plugins/network/ipv4.c
+2
-6
plugins/network/ipv6.c
plugins/network/ipv6.c
+3
-6
src/libvlc.h
src/libvlc.h
+7
-1
No files found.
plugins/network/ipv4.c
View file @
94bdf708
...
...
@@ -2,7 +2,7 @@
* ipv4.c: IPv4 network abstraction layer
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: ipv4.c,v 1.1
3 2002/06/01 12:32:00 sam
Exp $
* $Id: ipv4.c,v 1.1
4 2002/07/19 21:14:13 massiot
Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Mathias Kretschmer <mathias@research.att.com>
...
...
@@ -57,10 +57,6 @@
#include "network.h"
/* Default MTU used for UDP socket. FIXME: we should issue some ioctl()
* call to get that value from the interface driver. */
#define DEFAULT_MTU 1500
/*****************************************************************************
* Local prototypes
*****************************************************************************/
...
...
@@ -305,7 +301,7 @@ static int OpenUDP( vlc_object_t * p_this, network_socket_t * p_socket )
}
p_socket
->
i_handle
=
i_handle
;
p_socket
->
i_mtu
=
DEFAULT_MTU
;
p_socket
->
i_mtu
=
config_GetInt
(
p_this
,
"mtu"
)
;
return
(
0
);
}
...
...
plugins/network/ipv6.c
View file @
94bdf708
...
...
@@ -2,7 +2,7 @@
* ipv6.c: IPv6 network abstraction layer
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: ipv6.c,v 1.1
2 2002/06/09 23:35:3
3 massiot Exp $
* $Id: ipv6.c,v 1.1
3 2002/07/19 21:14:1
3 massiot Exp $
*
* Authors: Alexis Guillard <alexis.guillard@bt.com>
* Christophe Massiot <massiot@via.ecp.fr>
...
...
@@ -55,10 +55,6 @@
#include "network.h"
/* Default MTU used for UDP socket. FIXME: we should issue some ioctl()
* call to get that value from the interface driver. */
#define DEFAULT_MTU 1500
#if defined(WIN32)
static
const
struct
in6_addr
in6addr_any
=
{{
IN6ADDR_ANY_INIT
}};
#endif
...
...
@@ -359,7 +355,8 @@ static int OpenUDP( vlc_object_t * p_this, network_socket_t * p_socket )
}
p_socket
->
i_handle
=
i_handle
;
p_socket
->
i_mtu
=
DEFAULT_MTU
;
p_socket
->
i_mtu
=
config_GetInt
(
p_this
,
"mtu"
);
return
(
0
);
}
...
...
src/libvlc.h
View file @
94bdf708
...
...
@@ -2,7 +2,7 @@
* libvlc.h: main libvlc header
*****************************************************************************
* Copyright (C) 1998-2002 VideoLAN
* $Id: libvlc.h,v 1.
5 2002/06/27 19:05:17 sam
Exp $
* $Id: libvlc.h,v 1.
6 2002/07/19 21:14:13 massiot
Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -162,6 +162,11 @@
#define SERVER_PORT_LONGTEXT N_( \
"This is the port used for UDP streams. By default, we chose 1234.")
#define MTU_TEXT N_("MTU of the interface")
#define MTU_LONGTEXT N_( \
"This is the typical size of UDP packets that we expect. On Ethernet " \
"it is usually 1500.")
#define NETCHANNEL_TEXT N_("enable network channel mode")
#define NETCHANNEL_LONGTEXT N_( \
"Activate this option if you want to use the VideoLAN Channel Server.")
...
...
@@ -354,6 +359,7 @@ ADD_INTEGER ( "server-port", 1234, NULL, SERVER_PORT_TEXT, SERVER_PORT_LONGTEXT
ADD_BOOL
(
"network-channel"
,
0
,
NULL
,
NETCHANNEL_TEXT
,
NETCHANNEL_LONGTEXT
)
ADD_STRING
(
"channel-server"
,
"localhost"
,
NULL
,
CHAN_SERV_TEXT
,
CHAN_SERV_LONGTEXT
)
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_INTEGER
(
"program"
,
0
,
NULL
,
INPUT_PROGRAM_TEXT
,
INPUT_PROGRAM_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