freebsd-ports/net/isc-dhcp41-server/files/patch-server__bpf.c
Wesley Shields 66c8879878 Add a patch to support running on VLAN interfaces.
Bump server PORTREVISION to accomodate.

Submitted by:	matpockuh@gmail.com (via current@)
2010-10-24 13:56:35 +00:00

10 lines
416 B
C

--- 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);