Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Oct 2010 06:48:39 GMT
From:      Dmitry Afanasiev <KOT@MATPOCKuH.Ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/151636: net/isc-dhcp31-server and net/isc-dhcp41-server does not work with VLAN interfaces
Message-ID:  <201010220648.o9M6mdYY085017@www.freebsd.org>
Resent-Message-ID: <201010220650.o9M6o9DY036130@freefall.freebsd.org>

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

>Number:         151636
>Category:       ports
>Synopsis:       net/isc-dhcp31-server and net/isc-dhcp41-server does not work with VLAN interfaces
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 22 06:50:09 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Afanasiev
>Release:        FreeBSD 9.0-CURRENT sparc64
>Organization:
>Environment:
FreeBSD tdcgate.elcom.spb.ru 9.0-CURRENT FreeBSD 9.0-CURRENT #17: Thu Oct 21 22:51:06 MSD 2010     root@tdcgate:/usr/obj/usr/src/sys/sunrise  sparc64
>Description:
ISC DHCPD 3.1 and 4.1 on fresh kernel does not recognize VLAN interfaces:
Internet Systems Consortium DHCP Server 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 64 leases to leases file.
Unsupported device type 135 for "bge1.48"
>How-To-Repeat:
1. Get latest kernel
2. Install net/isc-dhcpd31-server or net/isc-dhcpd41-server
3. Configure dhcpd to use VLAN interface
4. Start dhcpd
>Fix:
Please check a patch for net/isc-dhcpd41-server.
I think changes from this patch applicable for net/isc-dhcpd31-server.


Patch attached with submission follows:

diff -ruN net/isc-dhcp41-server.orig/files/patch-server__bpf.c net/isc-dhcp41-server/files/patch-server__bpf.c
--- net/isc-dhcp41-server.orig/files/patch-server__bpf.c	1970-01-01 03:00:00.000000000 +0300
+++ net/isc-dhcp41-server/files/patch-server__bpf.c	2010-10-22 10:39:22.887561512 +0400
@@ -0,0 +1,10 @@
+--- common/bpf.c.orig	2010-10-22 10:38:06.623559939 +0400
++++ common/bpf.c	2010-10-22 10:38:26.436563986 +0400
+@@ -577,6 +577,7 @@
+ 	 */
+         switch (sa->sdl_type) {
+                 case IFT_ETHER:
++                case IFT_L2VLAN:
+                         hw->hlen = sa->sdl_alen + 1;
+                         hw->hbuf[0] = HTYPE_ETHER;
+                         memcpy(&hw->hbuf[1], LLADDR(sa), sa->sdl_alen);


>Release-Note:
>Audit-Trail:
>Unformatted:



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