Commit Graph

116 Commits

Author SHA1 Message Date
Rémi Denis-Courmont cc129a71d7 Remove old mail address from sources 2019-09-04 22:11:04 +03:00
Rémi Denis-Courmont 4cc4b8eb1f network: fix unused function warning 2019-04-14 10:15:47 +03:00
Rémi Denis-Courmont ee1da54daf network: do not assume socklen_t is unsigned
This is not guaranteed.
2019-04-14 10:15:47 +03:00
Steve Lhomme 5363279805 remove the $Id$ in the source code 2019-01-17 12:21:18 +01:00
Rémi Denis-Courmont 98c85830b2 network: privatize net_Subscribe() 2018-11-11 17:32:01 +02:00
Steve Lhomme 164b529e01 network: print ports as unsigned 2018-07-11 15:35:04 +02:00
Steve Lhomme a144225913 network: net_ConnectDgram() doesn't accept a negative port
vlc_getaddrinfo() takes an unsigned port anyway
2018-07-11 15:35:04 +02:00
Steve Lhomme 0294057b15 network: net_OpenDgram() doesn't accept a negative ports
vlc_getaddrinfo() takes an unsigned port anyway
2018-07-11 15:35:03 +02:00
Steve Lhomme 3d91aa3ff6 network: no need to declare net_Listen() locally 2018-06-22 13:09:09 +02:00
Justin Kim 5e6cb3f816 udp: fix a debug message
When it fails, it should show which parameters cause
the problem.

Signed-off-by: Justin Kim <justin.kim@collabora.com>
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2018-04-05 18:36:37 +03:00
Hugo Beauzée-Luyssen 685f792ff5 win32: Work around an issue in mingw-w64 5.0.x headers
wincrypt.h needs to be included before iphlpapi.h
2017-12-14 17:53:41 +01:00
Hugo Beauzée-Luyssen c0bf5aeefc configure: Assume if_nametoindex to be present 2017-12-05 18:39:42 +01:00
Hugo Beauzée-Luyssen 834c0a0b87 Revert "configure: Fix if_nametoindex detection"
This reverts commit 34d979557e.
This only works for win64 since win32's stdcall will mangle the symbols
2017-12-05 15:53:59 +01:00
Hugo Beauzée-Luyssen 34d979557e configure: Fix if_nametoindex detection
This fixes win32 builds
2017-12-05 10:25:11 +01:00
Rémi Denis-Courmont 3bf60326e5 win32: use LoadLibrary() instead of LoadLibraryW() 2016-11-23 23:58:10 +02:00
Rémi Denis-Courmont 5f774003c4 udp: fix comments 2016-10-27 23:57:12 +03:00
Jean-Baptiste Kempf 448290d535 Win32: don't call setsockopt if compiling for Windows 8.0 2015-03-20 15:47:04 +01:00
Ilkka Ollakka ca1e15692c udp: adjust receive buffer for windows 7 and earlier
Try to detect runtime what windows version it is running to see if
receive buffers should be increased or leave to OS handling.
Fixes #14200
2015-03-20 16:10:22 +02:00
Felix Paul Kühne afee3b6775 src: correctly honour source specific IP addresses in IGMPv3 requests on OS X (close #6524) 2014-07-12 12:46:06 +02:00
Rémi Denis-Courmont 9ff28119bc src: use vlc_strerror_c() for log messages 2013-12-29 15:36:02 +02:00
Felix Abecassis a580223d2c network: undef EAFNOSUPPORT before overriding it.
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2013-11-30 15:27:40 +02:00
Ilkka Ollakka 1fb1731824 udp: don't set receive/send buffers for socket
Current OS should be able to set those buffers to be reasonable, and
this buffer size caused drops with HD udp/ts inputs.
2013-11-20 17:36:01 +02:00
Rémi Denis-Courmont 5389383707 udp: missing break's 2013-08-09 18:41:52 +03:00
Rémi Duraffort 2b8ee7da21 FIx socket leak (cid #1049574) 2013-07-19 21:24:50 +02:00
Rafaël Carré 6d53362001 Use _WIN32 rather than WIN32 (same for WIN64)
http://msdn.microsoft.com/en-us/library/b0084kay(v=vs.80).aspx only
mentions the _ prefixed variable.

gcc will always define the _ prefixed variable, like Visual Studio.
The prefixless one is defined in some language standards, e.g. gnu99
but not c99.
2013-06-05 16:06:10 +02:00
Rémi Denis-Courmont a7b2dcf0ee Remove WinCE 2012-09-02 12:22:01 +03:00
Rémi Denis-Courmont a5b8b24f21 Remove redundant UNDER_CE checks
WIN32 is defined also on WinCE anyway.
2012-09-02 10:57:35 +03:00
Rémi Denis-Courmont 7b9e62c257 vlc_getaddrinfo: pass AI_IDN explicitly where applicable 2012-08-19 16:47:01 +03:00
Rémi Denis-Courmont b0b8f4c49d vlc_getaddrinfo: pass AI_NUMERICSERV explicitly where applicable 2012-08-19 16:47:01 +03:00
Rémi Denis-Courmont 16d8d7b790 vlc_getaddrinfo: remove useless parameter 2012-08-19 16:46:57 +03:00
Florian Roeske f19700eac7 Fix ipv6 multicast socket option
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2012-08-10 17:02:17 +02:00
Rémi Denis-Courmont 8cecb7ac15 Remove bogus VLC_UNUSED
Please don't hide bugs.
2012-03-29 17:58:39 +03:00
Felix Paul Kühne 84dc949e13 src: fixed multicast reception on OS X when using the 10.7 SDK (close #6104) 2012-03-04 12:42:00 +01:00
Jean-Baptiste Kempf 36ab287e77 LGPL
Re-license almost all of libVLC and libVLCcore to LGPLv2.1+

This move was authorized by the developers, either:
 - by e-mail,
 - by vote at the VideoLAN Dev Days 2011,
 - on the license website,
 - in a contract, oral or written.
No objection was raised, so far.

The developers agreeing are:
  Justus Piater
  Alexis Ballier
  Alexander Bethke
  Mohammed Adnène Trojette
  Alex Converse
  Alexey Sokolov
  Alexis de Lattre
  Andre Pang
  Anthony Loiseau
  Cyril Deguet
  André Weber
  Boris Dorès
  Brieuc Jeunhomme
  Benjamin Drung
  Hugo Beauzée-Luyssen
  Benoit Steiner
  Benjamin Pracht
  Bernie Purcell
  Przemyslaw Fiala
  Arnaud de Bossoreille de Ribou
  Brad Smith
  Nick Briggs
  Christopher Rath
  Christophe Courtaut
  Christopher Mueller
  Clement Chesnin
  Andres Krapf
  Damien Fouilleul
  David Flynn
  Sebastien Zwickert
  Antoine Cellerier
  Jérôme Decoodt
  Jérome Decoodt
  Dylan Yudaken
  Eduard Babayan
  Eugenio Jarosiewicz
  Elliot Murphy
  Eric Petit
  Erwan Tulou
  Etienne Membrives
  Ludovic Fauvet
  Fabio Ritrovato
  Tobias Güntner
  Jakub Wieczorek
  Frédéric Crozat
  Francois Cartegnie
  Laurent Aimar
  Florian G. Pflug
  Felix Paul Kühne
  Frank Enderle
  Rafaël Carré
  Simon Latapie
  Gildas Bazin
  Geoffroy Couprie
  Julien / Gellule
  Gildas Bazin
  Arnaud Schauly
  Toralf Niebuhr
  Vicente Jimenez Aguilar
  Derk-Jan Hartman
  Henri Fallon
  Ilkka Ollakka
  Olivier Teulière
  Rémi Duraffort
  Jakob Leben
  Jean-Baptiste Kempf
  Jean-Paul Saman
  Jean-Philippe Grimaldi
  Jean-François Massol
  Gaël Hendryckx
  Jakob Leben
  Jean-Marc Dressler
  Jai Menon
  Johan Bilien
  Johann Ransay
  Joris van Rooij
  JP Dinger
  Jean-Philippe André
  Adrien Grand
  Juha Jeronen
  Juho Vähä-Herttua
  Kaarlo Raiha
  Kaarlo Raiha
  Kamil Baldyga
  Keary Griffin
  Ken Self
  KO Myung-Hun
  Pierre Ynard
  Filippo Carone
  Loïc Minier
  Luca Barbato
  Lucas C. Villa Real
  Lukas Durfina
  Adrien Maglo
  Marc Ariberti
  Mark Lee
  Mark Moriarty
  Martin Storsjö
  Christophe Massiot
  Michel Kaempf
  Marian Ďurkovič
  Mirsal Ennaime
  Carlo Calabrò
  Damien Lucas
  Naohiro Koriyama
  Basos G
  Pierre Baillet
  Vincent Penquerc'h
  Olivier Aubert
  Pankaj Yadav
  Paul Corke
  Pierre d'Herbemont
  Philippe Morin
  Antoine Lejeune
  Michael Ploujnikov
  Jean-Marc Dressler
  Michael Hanselmann
  Rafaël Carré
  Ramiro Polla
  Rémi Denis-Courmont
  Renaud Dartus
  Richard Shepherd
  Faustino Osuna
  Arnaud Vallat
  Rob Jonson
  Robert Jedrzejczyk
  Steve Lhomme
  Rocky Bernstein
  Romain Goyet
  Rov Juvano
  Sam Hocevar
  Martin T. H. Sandsmark
  Sebastian Birk
  Sébastien Escudier
  Vincent Seguin
  Fabio Ritrovato
  Sigmund Augdal Helberg
  Casian Andrei
  Srikanth Raju
  Hannes Domani
  Stéphane Borel
  Stephan Krempel
  Stephan Assmus
  Tony Castley
  Pavlov Konstantin
  Eric Petit
  Tanguy Krotoff
  Dennis van Amerongen
  Michel Lespinasse
  Can Wu
  Xavier Marchesini
  Sébastien Toque
  Christophe Mutricy
  Yoann Peronneau
  Yohann Martineau
  Yuval Tze
  Scott Caudle
  Clément Stenac

It is possible, that some minor piece of code was badly tracked, for
some reasons (SVN, mainly) or that some small developers did not answer.
However, as an "œuvre collective", defined as in "CPI 113-2 alinéa 3",
and seeing "Cour. Cass. 17 Mai 1978", and seeing that the editor and
the very vast majority of developers have agreed (> 99.99% of the code,
> 99% of developers), we are fine here.
2011-11-27 22:54:33 +01:00
Rémi Denis-Courmont c0c8d4e2fe Obsolete confusing --miface-addr option and rework net_SetMcastOut()
--miface-addr mostly did not work as --miface was supposed to be used
instead.
2011-08-22 18:02:08 +03:00
Rémi Denis-Courmont da773a8ec1 Rework multicast join
* Do not force definitions on Windows so that compilation works with
   all variants of MingW (this may break IPv6 SSM with old compilers).
 * Do not fall back to legacy IPv4-specific ioctls if RFC3678 is
   supported. This avoids compiling dead code and works around issues
   with Linux kernel headers (especially Android).
 * Do not attempt to set multicast interface with legacy IPv4 ioctls.
   It is not very clear whether this is the address or the index.
   Also, "--miface-addr" was very confusing as it was mostly ignored in
   favor of "--miface".
2011-08-22 18:02:08 +03:00
Rémi Denis-Courmont e2138e80ee Remove redumdant family parameter to net_OpenDgram() 2011-08-22 17:32:00 +03:00
Rémi Denis-Courmont 5cf832c997 Do not redefine stuff from <ws2ipdef.h>
This fixes compilation with newer Mingw-w64.
2011-08-20 14:10:47 +03:00
Rémi Denis-Courmont bfdbe15570 Stub for if_nameindex() 2011-06-13 17:45:58 +03:00
Jean-Baptiste Kempf ff99793a00 Android: Fix src/network/udp.c compilation.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2011-06-02 21:37:31 +02:00
KO Myung-Hun 8ead43aa4a Define if_nametoindex() for OS/2
Signed-off-by: Rémi Duraffort <ivoire@videolan.org>
2011-04-03 16:05:42 +02:00
Rémi Denis-Courmont c56951687d use var_Inherit 2010-11-10 18:41:38 +02:00
Rémi Denis-Courmont 41e5bcdaf1 Remove unmaintained BeOS support 2010-10-31 13:42:58 +02:00
Sébastien Escudier ffd3fce0a4 net_OpenDgram don't return 0 in case of failure 2010-10-21 08:48:49 +02:00
Rémi Denis-Courmont 8abe30826a Remove useless freeaddrinfo wrapper 2010-04-28 23:50:08 +03:00
Rémi Denis-Courmont 95a84cda1e Remove getnameinfo and getaddrinfo wrappers
They weren't thread-safe (and did not support IPv6).
2010-04-28 23:48:30 +03:00
Rémi Denis-Courmont 62cc24a877 Print error when setting TTL fails 2010-04-11 22:42:11 +03:00
Rémi Denis-Courmont 0707e3ff6d getaddrinfo() may list IPv6 even if not supported
This fixes the RTP input failing completely.
2010-03-28 20:41:43 +03:00
Rémi Denis-Courmont 9242bbe164 net: remove leading underscores 2010-02-07 13:33:50 +02:00
Rémi Denis-Courmont 3adb049b4b Remove the getaddrinfo transport protocol and socket type hacks
That was meant for DCCP and UDP-Lite but it shouldn't be needed.
2010-02-01 23:13:26 +02:00