misc/87465: dhclient not properly configuring aliases

antonio antonio at 0xeb.net
Fri Oct 14 14:30:16 PDT 2005


>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 at 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:


More information about the freebsd-bugs mailing list