Hi, this is a patch from upstream to fix MAC address retrieval. DHCPv6 is broken without this patch:
Cannot create DHCPv6 server DUID: Undefined error: 0 while here also remove EXTRACT_SUFX, so that the dependency on xz goes away. ok? Christopher Index: Makefile =================================================================== RCS file: /cvs/ports/net/dnsmasq/Makefile,v retrieving revision 1.32 diff -u -p -r1.32 Makefile --- Makefile 7 Aug 2013 15:37:11 -0000 1.32 +++ Makefile 20 Oct 2013 20:08:47 -0000 @@ -3,9 +3,9 @@ COMMENT= lightweight caching DNS forwarder, DHCP and TFTP server DISTNAME= dnsmasq-2.66 +REVISION= 0 CATEGORIES= net MASTER_SITES= http://www.thekelleys.org.uk/dnsmasq/ -EXTRACT_SUFX= .tar.xz HOMEPAGE= http://www.thekelleys.org.uk/dnsmasq/doc.html Index: distinfo =================================================================== RCS file: /cvs/ports/net/dnsmasq/distinfo,v retrieving revision 1.22 diff -u -p -r1.22 distinfo --- distinfo 20 Apr 2013 02:38:33 -0000 1.22 +++ distinfo 20 Oct 2013 20:08:47 -0000 @@ -1,2 +1,2 @@ -SHA256 (dnsmasq-2.66.tar.xz) = XhQ5R1J7zcRqMPSxu9+/qWMz3Zi87NrDtbHWys/gbHU= -SIZE (dnsmasq-2.66.tar.xz) = 401056 +SHA256 (dnsmasq-2.66.tar.gz) = NiMvoj0ajvxvhKKdpf+CnCqkDfhXuRFqkyDqN7ZRqYI= +SIZE (dnsmasq-2.66.tar.gz) = 574715 Index: patches/patch-src_bpf_c =================================================================== RCS file: patches/patch-src_bpf_c diff -N patches/patch-src_bpf_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-src_bpf_c 20 Oct 2013 20:08:47 -0000 @@ -0,0 +1,13 @@ +$OpenBSD$ +--- src/bpf.c.orig Sun Oct 20 21:54:38 2013 ++++ src/bpf.c Sun Oct 20 21:55:26 2013 +@@ -111,7 +111,8 @@ int iface_enumerate(int family, void *parm, int (*call + { + int iface_index = if_nametoindex(addrs->ifa_name); + +- if (iface_index == 0 || !addrs->ifa_addr || !addrs->ifa_netmask) ++ if (iface_index == 0 || !addrs->ifa_addr || ++ (!addrs->ifa_netmask && family != AF_LINK)) + continue; + + if (family == AF_INET) -- http://gmerlin.de OpenPGP: http://gmerlin.de/christopher.pub 1917 680A 723C BF3D 2CA3 0E44 7E24 D19F 34B8 2A2A
pgptgDHSEpnEB.pgp
Description: PGP signature