Sun Jul 21 07:59:26 2013 UTC ()
Support partial FQDN option


(roy)
diff -r1.22 -r1.23 pkgsrc/net/dnsmasq/Makefile
diff -r1.19 -r1.20 pkgsrc/net/dnsmasq/distinfo
diff -r0 -r1.1 pkgsrc/net/dnsmasq/patches/patch-src_rfc2131.c

cvs diff -r1.22 -r1.23 pkgsrc/net/dnsmasq/Makefile (expand / switch to unified diff)

--- pkgsrc/net/dnsmasq/Makefile 2013/05/28 09:32:00 1.22
+++ pkgsrc/net/dnsmasq/Makefile 2013/07/21 07:59:26 1.23
@@ -1,17 +1,18 @@ @@ -1,17 +1,18 @@
1# $NetBSD: Makefile,v 1.22 2013/05/28 09:32:00 fhajny Exp $ 1# $NetBSD: Makefile,v 1.23 2013/07/21 07:59:26 roy Exp $
2# 2#
3 3
4DISTNAME= dnsmasq-2.66 4DISTNAME= dnsmasq-2.66
 5PKGREVISION= 1
5CATEGORIES= net 6CATEGORIES= net
6MASTER_SITES= http://www.thekelleys.org.uk/dnsmasq/ 7MASTER_SITES= http://www.thekelleys.org.uk/dnsmasq/
7LICENSE= gnu-gpl-v3 8LICENSE= gnu-gpl-v3
8 9
9MAINTAINER= roy@NetBSD.org 10MAINTAINER= roy@NetBSD.org
10HOMEPAGE= http://www.thekelleys.org.uk/dnsmasq/doc.html 11HOMEPAGE= http://www.thekelleys.org.uk/dnsmasq/doc.html
11COMMENT= Lightweight, easy to configure DNS forwarder 12COMMENT= Lightweight, easy to configure DNS forwarder
12 13
13RCD_SCRIPTS= dnsmasq 14RCD_SCRIPTS= dnsmasq
14CONF_FILES= ${PREFIX}/share/examples/dnsmasq/dnsmasq.conf.example \ 15CONF_FILES= ${PREFIX}/share/examples/dnsmasq/dnsmasq.conf.example \
15 ${PKG_SYSCONFDIR}/dnsmasq.conf 16 ${PKG_SYSCONFDIR}/dnsmasq.conf
16 17
17PKG_OPTIONS_VAR= PKG_OPTIONS.dnsmasq 18PKG_OPTIONS_VAR= PKG_OPTIONS.dnsmasq

cvs diff -r1.19 -r1.20 pkgsrc/net/dnsmasq/distinfo (expand / switch to unified diff)

--- pkgsrc/net/dnsmasq/distinfo 2013/05/28 09:32:00 1.19
+++ pkgsrc/net/dnsmasq/distinfo 2013/07/21 07:59:26 1.20
@@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
1$NetBSD: distinfo,v 1.19 2013/05/28 09:32:00 fhajny Exp $ 1$NetBSD: distinfo,v 1.20 2013/07/21 07:59:26 roy Exp $
2 2
3SHA1 (dnsmasq-2.66.tar.gz) = fb6b1690de53014a8e6c8bfa6f1653062b965741 3SHA1 (dnsmasq-2.66.tar.gz) = fb6b1690de53014a8e6c8bfa6f1653062b965741
4RMD160 (dnsmasq-2.66.tar.gz) = fd5492852a933b54bb38f9e0c531c6c6e4325862 4RMD160 (dnsmasq-2.66.tar.gz) = fd5492852a933b54bb38f9e0c531c6c6e4325862
5Size (dnsmasq-2.66.tar.gz) = 574715 bytes 5Size (dnsmasq-2.66.tar.gz) = 574715 bytes
 6SHA1 (patch-src_rfc2131.c) = c136273e0026452ff9f1a929474663a4b56631de

File Added: pkgsrc/net/dnsmasq/patches/patch-src_rfc2131.c
$NetBSD: patch-src_rfc2131.c,v 1.1 2013/07/21 07:59:26 roy Exp $

Don't assume a trailing terminator.

--- src/rfc2131.c.orig	2013-04-17 12:52:49.000000000 +0000
+++ src/rfc2131.c
@@ -534,7 +534,7 @@ size_t dhcp_reply(struct dhcp_context *c
 	}
       
       if (fqdn_flags & 0x04)
-	while (*op != 0 && ((op + (*op) + 1) - pp) < len)
+	while (*op != 0 && ((op + (*op)) - pp) < len)
 	  {
 	    memcpy(pq, op+1, *op);
 	    pq += *op;