From nobody@FreeBSD.org  Wed Apr 24 16:56:42 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 076FE37B416
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Apr 2002 16:56:42 -0700 (PDT)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g3ONtD960491;
	Wed, 24 Apr 2002 16:55:13 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200204242355.g3ONtD960491@freefall.freebsd.org>
Date: Wed, 24 Apr 2002 16:55:13 -0700 (PDT)
From: Jon Spencer <jon@jackson-spencer.ca>
To: freebsd-gnats-submit@FreeBSD.org
Subject: dhclient generates pointless log messages
X-Send-Pr-Version: www-1.0

>Number:         37434
>Category:       bin
>Synopsis:       dhclient(1) generates pointless log messages
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    brooks
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 24 17:00:02 PDT 2002
>Closed-Date:    Thu Nov 03 00:59:46 GMT 2005
>Last-Modified:  Thu Nov 03 00:59:46 GMT 2005
>Originator:     Jon Spencer
>Release:        4.5-Stable
>Organization:
>Environment:
FreeBSD baldar.jackson-spencer.ca 4.5-STABLE FreeBSD 4.5-STABLE #0: Mon Apr 22 23:20:57 PDT 2002     root@baldar.jackson-spencer.ca:/usr/obj/usr/src/sys/BALDAR  i386
>Description:
dhclient causes messages to be sent to the system log every time the DHCP
lease is renewed, even if the nothing has changed.

The environement variables new_network_number and new_broadcast_address
are always set in the environment when the dhclient deamon envokes the
dhclient-script script. The dhclient-script generates log messages when
these environment variables are set. The log messages are of the form:
dhclient: New Network Number: XXX.XXX.XXX.XXX
dhclient: New Broadcast Address: XXX.XXX.XXX.XXX
>How-To-Repeat:
These messages are generated whenever a DHCP lease is renewed

>Fix:
Apply the following patch to /src/contrib/isc-dhcp/client/scripts/freebsd

41,44d40
< if [ x$new_network_number != x ]; then
<    $LOGGER New Network Number: $new_network_number
< fi
<
46d41
<  $LOGGER New Broadcast Address: $new_broadcast_address

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->mbr 
Responsible-Changed-By: mbr 
Responsible-Changed-When: Mon Feb 10 02:00:04 PST 2003 
Responsible-Changed-Why:  
Take this PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37434 
State-Changed-From-To: open->closed 
State-Changed-By: brooks 
State-Changed-When: Thu Nov 3 00:59:05 GMT 2005 
State-Changed-Why:  
This isn't an issue in the script in 6.x and it appears fixed in 5.x. 
Realisticly, we're not likely to fix this in 4.x at this late date given 
that it's mostly cosmetic. 

Thanks for the submittion though. 

-- Brooks 


Responsible-Changed-From-To: mbr->brooks 
Responsible-Changed-By: brooks 
Responsible-Changed-When: Thu Nov 3 00:59:05 GMT 2005 
Responsible-Changed-Why:  
I'm doing dhclient things these days. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37434 
>Unformatted:
