From nobody@FreeBSD.org  Fri Oct 14 21:25:34 2005
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 8959316A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Oct 2005 21:25:34 +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 E843143D5A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Oct 2005 21:25:28 +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 j9ELPSON060954
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Oct 2005 21:25:28 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j9ELPSIX060951;
	Fri, 14 Oct 2005 21:25:28 GMT
	(envelope-from nobody)
Message-Id: <200510142125.j9ELPSIX060951@www.freebsd.org>
Date: Fri, 14 Oct 2005 21:25:28 GMT
From: antonio <antonio@0xeb.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: dhclient not properly configuring aliases
X-Send-Pr-Version: www-2.3

>Number:         87465
>Category:       bin
>Synopsis:       [patch] dhclient(8) not properly configuring aliases
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    brooks
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 14 21:30:14 GMT 2005
>Closed-Date:    Tue Jan 24 06:00:14 GMT 2006
>Last-Modified:  Tue Jan 24 06:00:14 GMT 2006
>Originator:     antonio
>Release:        6.0RC1
>Organization:
>Environment:
FreeBSD notebook 6.0-RC1 FreeBSD 6.0-RC1 #0: Thu Oct 13 20:49:26 CEST 2005     root@notebook:/usr/src/sys/i386/compile/notebook  i386

>Description:
              the new dhclient doesn't allow do have aliases on dhcp configured interface.

if I try to add alias via 'ifconfig rl0 alias ...' dhclient exists, leaving only aliased ip on the interface. 
adding alias statement to /etc/dhclient.conf 
will result in the same way. 
>How-To-Repeat:
              configure some interface via dhclient,
then try to add alias via ifconfig, or try to add 
alias lines to /etc/dhclient.conf
>Fix:
              may be it should by handled other way, but this works.

--- dhclient.c.orig     Fri Oct 14 23:13:48 2005
+++ dhclient.c  Fri Oct 14 23:14:56 2005
@@ -221,10 +221,8 @@
                        if (addr_eq(a, l->address))
                                break;
 
-               if (l != NULL)  /* new addr is the one we set */
-                       break;
+               break;
 
-               goto die;
        case RTM_DELADDR:
                ifam = (struct ifa_msghdr *)rtm;
                if (ifam->ifam_index != ifi->index)

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: brooks 
State-Changed-When: Tue Jan 10 04:54:20 UTC 2006 
State-Changed-Why:  
Fixed in HEAD with a different solution. 


Responsible-Changed-From-To: freebsd-bugs->brooks 
Responsible-Changed-By: brooks 
Responsible-Changed-When: Tue Jan 10 04:54:20 UTC 2006 
Responsible-Changed-Why:  
Fixed in HEAD. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87465 
State-Changed-From-To: patched->closed 
State-Changed-By: brooks 
State-Changed-When: Tue Jan 24 05:59:30 UTC 2006 
State-Changed-Why:  
Solution MFCd to RELENG_6. 

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