Ticket #300: dont-ignore-records-with-link-local-addresss.patch

File dont-ignore-records-with-link-local-addresss.patch, 1.3 KB (added by tommaso.colombo, 2 years ago)
  • avahi-core/server.c

    From 43ea314b2c548da83cb8c5e3e1d8380bb7ef0e8d Mon Sep 17 00:00:00 2001
    From: Tommaso Colombo <colombo@icascan4.pv.infn.it>
    Date: Wed, 27 Jan 2010 02:43:11 +0100
    Subject: [PATCH] core: Don't ignore records with link-local addresss
    
    Fix a regression introduced by commit 2ea7e99ed0dcfd371fef5aeecd3de77da1dfcd4f that caused the mDNS response handler to completely ignore records with link-local addresses.
    ---
     avahi-core/server.c |    4 ++--
     1 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/avahi-core/server.c b/avahi-core/server.c
    index 8955af9..aa3c6b5 100644
    a b  
    666666            break; 
    667667        } 
    668668 
    669         if (!avahi_key_is_pattern(record->key) && !avahi_record_is_link_local_address(record)) { 
     669        if (!avahi_key_is_pattern(record->key)) { 
    670670 
    671671            if (handle_conflict(s, i, record, cache_flush)) { 
    672                 if (!from_local_iface) 
     672                if (!from_local_iface && !avahi_record_is_link_local_address(record))  
    673673                    reflect_response(s, i, record, cache_flush); 
    674674                avahi_cache_update(i->cache, record, cache_flush, a); 
    675675                avahi_response_scheduler_incoming(i->response_scheduler, record, cache_flush);