<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">commit 2b6bccca5d9d8ab7f11219a639707b325910a0b1
Author: Philip Prindeville &lt;philipp@redfish-solutions.com&gt;
Date:   Thu Sep 17 00:27:55 2020 +0000

    Logic for p2p on tunnels incorrectly requires IFF_MULTICAST (#305)
    
    Signed-off-by: Philip Prindeville &lt;philipp@redfish-solutions.com&gt;

--- a/avahi-core/iface-linux.c
+++ b/avahi-core/iface-linux.c
@@ -105,8 +105,8 @@ static void netlink_callback(AvahiNetlin
             (ifinfomsg-&gt;ifi_flags &amp; IFF_UP) &amp;&amp;
             (!m-&gt;server-&gt;config.use_iff_running || (ifinfomsg-&gt;ifi_flags &amp; IFF_RUNNING)) &amp;&amp;
             ((ifinfomsg-&gt;ifi_flags &amp; IFF_LOOPBACK) ||
-             (ifinfomsg-&gt;ifi_flags &amp; IFF_MULTICAST)) &amp;&amp;
-            (m-&gt;server-&gt;config.allow_point_to_point || !(ifinfomsg-&gt;ifi_flags &amp; IFF_POINTOPOINT));
+             (ifinfomsg-&gt;ifi_flags &amp; IFF_MULTICAST) ||
+             ((ifinfomsg-&gt;ifi_flags &amp; IFF_POINTOPOINT) &amp;&amp; m-&gt;server-&gt;config.allow_point_to_point));
 
         /* Handle interface attributes */
         l = NLMSG_PAYLOAD(n, sizeof(struct ifinfomsg));
--- a/avahi-core/iface-pfroute.c
+++ b/avahi-core/iface-pfroute.c
@@ -81,8 +81,8 @@ static void rtm_info(struct rt_msghdr *r
     (ifm-&gt;ifm_flags &amp; IFF_UP) &amp;&amp;
     (!m-&gt;server-&gt;config.use_iff_running || (ifm-&gt;ifm_flags &amp; IFF_RUNNING)) &amp;&amp;
     ((ifm-&gt;ifm_flags &amp; IFF_LOOPBACK) ||
-     (ifm-&gt;ifm_flags &amp; IFF_MULTICAST)) &amp;&amp;
-    (m-&gt;server-&gt;config.allow_point_to_point || !(ifm-&gt;ifm_flags &amp; IFF_POINTOPOINT));
+     (ifm-&gt;ifm_flags &amp; IFF_MULTICAST) ||
+      ((ifm-&gt;ifm_flags &amp; IFF_POINTOPOINT) &amp;&amp; m-&gt;server-&gt;config.allow_point_to_point));
 
   avahi_free(hw-&gt;name);
   hw-&gt;name = avahi_strndup(sdl-&gt;sdl_data, sdl-&gt;sdl_nlen);
@@ -428,8 +428,8 @@ static void if_add_interface(struct lifr
             (flags &amp; IFF_UP) &amp;&amp;
             (!m-&gt;server-&gt;config.use_iff_running || (flags &amp; IFF_RUNNING)) &amp;&amp;
             ((flags &amp; IFF_LOOPBACK) ||
-            (flags &amp; IFF_MULTICAST)) &amp;&amp;
-            (m-&gt;server-&gt;config.allow_point_to_point || !(flags &amp; IFF_POINTOPOINT));
+             (flags &amp; IFF_MULTICAST) ||
+              ((flags &amp; IFF_POINTOPOINT) &amp;&amp; m-&gt;server-&gt;config.allow_point_to_point));
         hw-&gt;name = avahi_strdup(lifreq-&gt;lifr_name);
         hw-&gt;mtu = mtu;
         /* TODO get mac address */
</pre></body></html>