Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Oct 2010 11:48:19 +0400
From:      KOT MATPOCKuH <matpockuh@gmail.com>
To:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   ports/151636: net/isc-dhcp31-server and net/isc-dhcp41-server does not work with VLAN interfaces
Message-ID:  <AANLkTik8EtwFWW7aLWj=Kyr6yTh2K%2BW_OEk2KNuM8xLp@mail.gmail.com>

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

[-- Attachment #1 --]
Hi all!

I got another problem with latest kernel: net/isc-dhcp31-server not
started on VLAN interface with message:
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"

I tried to update dhcpd to net/isc-dhcp41-server, but without result.

I attached a patch for net/isc-dhcp41-server , but not sure is it correct.
I think a similar change should solve the problem for net/isc-dhcp31-server...

-- 
MATPOCKuH

[-- Attachment #2 --]
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);

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTik8EtwFWW7aLWj=Kyr6yTh2K%2BW_OEk2KNuM8xLp>