Sfoglia il codice sorgente

Merge pull request #1478 from zerotier/fix-linux-multicast

Fix multicast flag on linux interfaces.
Grant Limberg 3 anni fa
parent
commit
c46309ea8a
2 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 2 0
      RELEASE-NOTES.md
  2. 1 0
      osdep/LinuxEthernetTap.cpp

+ 2 - 0
RELEASE-NOTES.md

@@ -1,5 +1,7 @@
 ZeroTier Release Notes
 ======
+# 2021-11-00 -- Version 1.8.2
+ * Fix multicast on linux.
 
 # 2021-10-28 -- Version 1.8.1
 

+ 1 - 0
osdep/LinuxEthernetTap.cpp

@@ -213,6 +213,7 @@ LinuxEthernetTap::LinuxEthernetTap(
 			return;
 		}
 
+		ifr.ifr_flags |= IFF_MULTICAST;
 		ifr.ifr_flags |= IFF_UP;
 		if (ioctl(sock,SIOCSIFFLAGS,(void *)&ifr) < 0) {
 			::close(sock);