Hi,

I noticed following logmessage: dnsmasq[1076]: not giving name etc....
which I believe should go into the 'dnsmasq-dhcp' section of the log instead of the 'dnsmasq' scetion.

Please consider attached patch.


Thanks

Olaf



--- src/cache.c.orig    2010-08-18 12:44:11.000000000 +0200
+++ src/cache.c 2010-08-18 12:46:07.000000000 +0200
@@ -1049,13 +1049,13 @@ void cache_add_dhcp_entry(char *host_nam
          in_hosts = 1;
        
          if (crec->flags & F_CNAME)
-           my_syslog(LOG_WARNING,
+           my_syslog(MS_DHCP | LOG_WARNING,
                      _("%s is a CNAME, not giving it to the DHCP lease of %s"),
                      host_name, inet_ntoa(*host_address));
          else if (crec->addr.addr.addr.addr4.s_addr != host_address->s_addr)
            {
              strcpy(daemon->namebuff, inet_ntoa(crec->addr.addr.addr.addr4));
-             my_syslog(LOG_WARNING,
+             my_syslog(MS_DHCP | LOG_WARNING,
                        _("not giving name %s to the DHCP lease of %s because "
                          "the name exists in %s with address %s"),
                        host_name, inet_ntoa(*host_address),


Reply via email to