Hey all,

I ran into an issue using dnsmasq within a docker/lxc container.
Newer versions of docker drop the NET_ADMIN capability[1] which
prevents ioctl(SIOCSARP) call from succeeding for unicast DHCPOFFERs.

I've thrown together a quick patch (hack? due to lack of familiarity
perhaps) and it's available on Github[2] as well as attached for
completeness.

I'm not sure if this is the best way to fix this or not.  I'm not that
familiar with DHCP + dnsmasq to know any better.  I've also tried a
docker container with ISC dhcpd and it worked without any
modifications. I didn't look any closer to see how isc dhcpd operated.

[1] https://github.com/dotcloud/docker/pull/4059
[2] https://github.com/kmanna/dnsmasq/compare/master...docker_arp_fail

Attachment: 0001-dhcp-Broadcast-if-ARP-ioctl-fails-during-DHCPOFFER.patch
Description: Binary data

_______________________________________________
Dnsmasq-discuss mailing list
[email protected]
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

Reply via email to