[Dnsmasq-discuss] [PATCH] Fix cmsg(3) API usage on OpenBSD

Jeremie Courreges-Anglas jca at wxcvbn.org
Fri Mar 22 10:36:31 GMT 2019


Hi,

an unpatched dnsmasq daemon fails on OpenBSD since 2016, since kernel
support was added for IP_SENDSRCADDR.  The problem has been worked
around and then fixed in our ports tree for some time now.  Please find
attached a patch to address this issue.

IIUC the existing code was inspired from an example in the cmsg(3) Linux
manpage.  Said manpage was fixed since, this bugreport contains a nice
discussion:

  https://bugzilla.kernel.org/show_bug.cgi?id=15952

The patch was only tested on OpenBSD but should hopefully be correct on
all affected systems.  Please let me know if you need additional
information.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-cmsg-3-API-usage-on-OpenBSD.patch
Type: text/x-patch
Size: 2340 bytes
Desc: not available
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20190322/2466b5d8/attachment.bin>
-------------- next part --------------
-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20190322/2466b5d8/attachment.sig>


More information about the Dnsmasq-discuss mailing list