From nobody@FreeBSD.org  Thu Jan 19 09:58:37 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5BA4016A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 19 Jan 2006 09:58:37 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2E41043D46
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 19 Jan 2006 09:58:37 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k0J9waKb067401
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 19 Jan 2006 09:58:36 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k0J9waco067397;
	Thu, 19 Jan 2006 09:58:36 GMT
	(envelope-from nobody)
Message-Id: <200601190958.k0J9waco067397@www.freebsd.org>
Date: Thu, 19 Jan 2006 09:58:36 GMT
From: Peter <pb@ludd.luth.se>
To: freebsd-gnats-submit@FreeBSD.org
Subject: dhclient option missing, script incompability
X-Send-Pr-Version: www-2.3

>Number:         91993
>Category:       bin
>Synopsis:       dhclient(8) option missing, script incompability
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 19 10:00:15 GMT 2006
>Closed-Date:    
>Last-Modified:  Sun Feb 24 22:59:36 UTC 2013
>Originator:     Peter
>Release:        FreeBSD 6.0/i386
>Organization:
>Environment:
FreeBSD gw 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005     root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
In FreeBSD 5.4/i386 (and older) dhclient have an option '-r' which is now missing.
No equalient is found.

From 5.4 dhclient manpage:
       The -r flag explicitly releases the current lease, and once  the  lease
       has been released, the client exits.

Also the script functionality in '/etc/dhclient-enter-hooks' is incompatible due
that old resolver config update function used the name make_resolv_conf(), while
the new one use add_new_resolv_conf(). End result being that old replacement
hooks won't work. I use a predefined resolver config.


>How-To-Repeat:
              
>Fix:
kill -9 <pid..> will partially do the same as the option '-r'.

Below /etc/dhclient-enter-hooks will workaround incompability bugs with resolver:
make_resolv_conf() {
  /bin/cp -pf /config/resolv.conf.luth /etc/resolv.conf
  }

add_new_resolv_conf() {
  make_resolv_conf
  }

Provided that admin is aware of it..


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sam 
Responsible-Changed-By: brooks 
Responsible-Changed-When: Sat May 13 03:58:19 UTC 2006 
Responsible-Changed-Why:  
This is mostly a request for dhclient -r which sam has a patch for (it 
has not been commited due panics). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=91993 
Responsible-Changed-From-To: sam->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Feb 24 22:58:48 UTC 2013 
Responsible-Changed-Why:  
Sam has not been active in some time. 

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