Summary: | dns/dnsmasq: IPv4 TFTP broken on dnsmasq after FreeBSD 11.2 | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | gpw928 <phil.chadwick> | ||||
Component: | Individual Port(s) | Assignee: | Matthias Andree <mandree> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Some People | CC: | dave.mueller, mandree | ||||
Priority: | --- | Flags: | mandree:
maintainer-feedback+
|
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
gpw928
2019-10-05 00:04:51 UTC
I'll be forwarding this upstream. Not sure if this is really the right fix, but I think the "control" array (around line 79 of tftp.c) should be declared like this: #elif defined(IP_RECVDSTADDR) && defined(IP_RECVIF) char control[CMSG_SPACE(sizeof(struct in_addr)) + /* IP_RECVDSTADDR */ CMSG_SPACE(sizeof(struct sockaddr_dl))]; /* IP_RECVIF */ #endif Created attachment 208279 [details] upstream fix attempt to get TFTP working This patch is to apply against the ports tree in /usr/ports/dns/dnsmasq. Please apply and see if it fixes the problem. Reference: http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2019q4/013412.html A commit references this bug: Author: mandree Date: Sun Oct 13 15:25:56 UTC 2019 New revision: 514404 URL: https://svnweb.freebsd.org/changeset/ports/514404 Log: dns/dnsmasq: Fix TFTP regression on recent FreeBSD versions. Add a patch taken from upstream. Tested successfully on 11.3-RELEASE amd64. The upstream fix is an extended version of a fix proposed by Dave Mueller in the PR. See also: http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2019q4/013412.html PR: 241068 Reported by: Phil Chadwick Obtained from: Simon Kelley, http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=936bd82755e8f75fc09c1e9a67fb390175b157d4 MFH: 2019Q4 Changes: head/dns/dnsmasq/Makefile head/dns/dnsmasq/files/patch-src_tftp.c A commit references this bug: Author: mandree Date: Sun Oct 13 15:29:17 UTC 2019 New revision: 514405 URL: https://svnweb.freebsd.org/changeset/ports/514405 Log: MFH: r514404 (blanket reliability fix) dns/dnsmasq: Fix TFTP regression on recent FreeBSD versions. Add a patch taken from upstream. Tested successfully on 11.3-RELEASE amd64. The upstream fix is an extended version of a fix proposed by Dave Mueller in the PR. See also: http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2019q4/013412.html PR: 241068 Reported by: Phil Chadwick Obtained from: Simon Kelley, http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=936bd82755e8f75fc09c1e9a67fb390175b157d4 Approved by: ports-secteam (blanket) Changes: _U branches/2019Q4/ branches/2019Q4/dns/dnsmasq/Makefile branches/2019Q4/dns/dnsmasq/files/patch-src_tftp.c Committed and MFH'd. Dnsmasq 2.80_4 should fix things. If it does not, please reopen the PR. |