NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/53705: dhcpcd spams syslogd



The following reply was made to PR bin/53705; it has been noted by GNATS.

From: Roy Marples <roy%marples.name@localhost>
To: gnats-bugs%netbsd.org@localhost, roy%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
 netbsd-bugs%netbsd.org@localhost, kre%munnari.OZ.AU@localhost
Cc: 
Subject: Re: bin/53705: dhcpcd spams syslogd
Date: Tue, 9 Apr 2019 12:25:20 +0100

 This is a multi-part message in MIME format.
 --------------3F76325E9495F45A3CC31F97
 Content-Type: text/plain; charset=utf-8; format=flowed
 Content-Transfer-Encoding: 7bit
 
 On 09/04/2019 01:30, Robert Elz wrote:
 >   In any case, when an "error" like this occurs, and repeats, there's no
 >   point continually telling the world about it every time - after it has
 >   happened a couple of times, simply stop sending error reports until
 >   something changes (until an address does get assigned, or until the
 >   dhcpcd process restarts, or something).
 
 Try the attached patch.
 The only problem with it is that if dhcpcd is configured to request >1 
 IA and one of them gets an invalid status then dhcpcd will still be spammy.
 
 Let me know if it helps your situation at least.
 
 Roy
 
 --------------3F76325E9495F45A3CC31F97
 Content-Type: text/plain; charset=UTF-8;
  name="dhcpcd-dhcpv6-spam.diff"
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment;
  filename="dhcpcd-dhcpv6-spam.diff"
 
 ZGlmZiAtLWdpdCBhL3NyYy9kaGNwNi5jIGIvc3JjL2RoY3A2LmMKaW5kZXggY2MyMjY3ODcu
 Ljk5YTQ1MmJiIDEwMDY0NAotLS0gYS9zcmMvZGhjcDYuYworKysgYi9zcmMvZGhjcDYuYwpA
 QCAtMTkxMywxMyArMTkxMywxNiBAQCBzdGF0aWMgaW50CiBkaGNwNl9jaGVja3N0YXR1c29r
 KGNvbnN0IHN0cnVjdCBpbnRlcmZhY2UgKmlmcCwKICAgICBzdHJ1Y3QgZGhjcDZfbWVzc2Fn
 ZSAqbSwgdWludDhfdCAqcCwg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