Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Oct 2005 21:25:28 GMT
From:      antonio <antonio@0xeb.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/87465: dhclient not properly configuring aliases
Message-ID:  <200510142125.j9ELPSIX060951@www.freebsd.org>
Resent-Message-ID: <200510142130.j9ELUFlE083944@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         87465
>Category:       misc
>Synopsis:       dhclient not properly configuring aliases
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 14 21:30:14 GMT 2005
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510142125.j9ELPSIX060951>