[vlc-commits] contribs: live555: disable multicast intf lookups on android

Francois Cartegnie git at videolan.org
Thu Mar 4 13:47:36 UTC 2021


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Feb  9 10:33:10 2021 +0100| [f49cf7066e5e7e9966629f94a264dad785aa51d2] | committer: Francois Cartegnie

contribs: live555: disable multicast intf lookups on android

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f49cf7066e5e7e9966629f94a264dad785aa51d2
---

 .../live555/DISABLE_LOOPBACK_IP_ADDRESS_CHECK.patch   | 19 +++++++++++++++++++
 contrib/src/live555/rules.mak                         |  5 +++++
 2 files changed, 24 insertions(+)

diff --git a/contrib/src/live555/DISABLE_LOOPBACK_IP_ADDRESS_CHECK.patch b/contrib/src/live555/DISABLE_LOOPBACK_IP_ADDRESS_CHECK.patch
new file mode 100644
index 0000000000..8a2a5e7220
--- /dev/null
+++ b/contrib/src/live555/DISABLE_LOOPBACK_IP_ADDRESS_CHECK.patch
@@ -0,0 +1,19 @@
+--- live.orig/groupsock/GroupsockHelper.cpp	2016-11-28 22:42:18.000000000 +0100
++++ live/groupsock/GroupsockHelper.cpp	2021-02-09 10:27:15.669908139 +0100
+@@ -616,7 +616,7 @@
+     // that other nodes will think our address is the same as we do.)
+     do {
+       loopbackWorks = 0; // until we learn otherwise
+-
++#ifndef DISABLE_LOOPBACK_IP_ADDRESS_CHECK
+       testAddr.s_addr = our_inet_addr("228.67.43.91"); // arbitrary
+       Port testPort(15947); // ditto
+ 
+@@ -653,6 +653,7 @@
+ 
+       // We use this packet's source address, if it's good:
+       loopbackWorks = !badAddressForUs(fromAddr.sin_addr.s_addr);
++#endif
+     } while (0);
+ 
+     if (sock >= 0) {
diff --git a/contrib/src/live555/rules.mak b/contrib/src/live555/rules.mak
index 01aefacef8..e62dd1f325 100644
--- a/contrib/src/live555/rules.mak
+++ b/contrib/src/live555/rules.mak
@@ -26,6 +26,9 @@ ifdef HAVE_LINUX
 LIVE_TARGET := linux
 LIVE_EXTRA_CFLAGS += -DXLOCALE_NOT_USED
 endif
+ifdef HAVE_ANDROID
+LIVE_EXTRA_CFLAGS += -DDISABLE_LOOPBACK_IP_ADDRESS_CHECK=1
+endif
 ifdef HAVE_WIN32
 LIVE_TARGET := mingw
 endif
@@ -83,6 +86,8 @@ endif
 	$(APPLY) $(SRC)/live555/mingw-static-libs.patch
 	# FormatMessageA is available on all Windows versions, even WinRT
 	$(APPLY) $(SRC)/live555/live555-formatmessage.patch
+        # Disable Multicast interface lookup option
+	$(APPLY) $(SRC)/live555/DISABLE_LOOPBACK_IP_ADDRESS_CHECK.patch
 ifdef HAVE_ANDROID
 	# Fix in_addr.s_addr field access
 	$(APPLY) $(SRC)/live555/in_addr-s_addr-field.patch



More information about the vlc-commits mailing list