Re: [Dnsmasq-discuss] DHCPv6

2013-04-11 Thread Christof Meerwald
On Wed, 10 Apr 2013 11:20:46 +0100, Simon Kelley wrote: ... and the lesson here, is don't write an unsigned integer to a text file and then parse is back in using atoi(). D'oh! 2.66rc5 should fix things, I believe. Excellent, that seems to work for my test-case now. Thanks a lot for the

Re: [Dnsmasq-discuss] DHCPv6

2013-04-11 Thread Matthias Andree
Am 10.04.2013 12:20, schrieb Simon Kelley: ... and the lesson here, is don't write an unsigned integer to a text file and then parse is back in using atoi(). D'oh! atoi does not do error checking (and is documented that way), unlike strto(u)l, so arguably every use of atoi() is a bug in

[Dnsmasq-discuss] dhcp-vendorclass with bootp

2013-04-11 Thread Peter Korsgaard
Hi, I would like to use dnsmasq to bringup a TI arm SoC which can bootstrap itself from bootp/tftp. The bootstrap happens in several steps, so dnsmasq needs to send the correct bootfile depending on the step, which can be detected by the vendor-class option. Unfortunately this doesn't currently

[Dnsmasq-discuss] Segfault when dhcp-lease-max reached

2013-04-11 Thread Tsachi
Hey, I am working with dnsmasq 2.61 and came across a potential issue: Connecting with a 3rd client when dhcp-lease-max is set to 2 (for example), causes dnsmasq to exit with segfault. Looking at the code, it seems that the lease_allocate might return a NULL pointer which then can be referenced

Re: [Dnsmasq-discuss] dhcp-vendorclass with bootp

2013-04-11 Thread Simon Kelley
On 11/04/13 12:35, Peter Korsgaard wrote: Hi, I would like to use dnsmasq to bringup a TI arm SoC which can bootstrap itself from bootp/tftp. The bootstrap happens in several steps, so dnsmasq needs to send the correct bootfile depending on the step, which can be detected by the vendor-class

Re: [Dnsmasq-discuss] Different IP address for a single MAC address

2013-04-11 Thread Simon Kelley
On 11/04/13 13:16, Tsachi wrote: Hey, I am working with ver 2.61 I came across a dnsmasq.leases file which consists of the following 3 lines: 605245 10:0b:a9:ad:bc:58 10.0.0.13 pc 01:52:41:53:20:10:0b:a9:ad:bc:58:00:00:00:00:00:00 605245 10:0b:a9:ad:bc:58 10.0.0.12 *

Re: [Dnsmasq-discuss] addn-hosts and ttl

2013-04-11 Thread Simon Kelley
On 10/04/13 22:09, fbcadmin wrote: Hello First thank you for dnsmasq. we've used it for a long time. We have a local hosts file, which may change a few times per day at the most. I've tried using this in /etc/dnsmasq.conf: addn-hosts=/fbc/dns/hosts-ona Which works. Except when hosts-ona

Re: [Dnsmasq-discuss] Enable HAVE_IPSET by default

2013-04-11 Thread richardvo...@gmail.com
All of this suggests that to minimize the number of combinations but not bloat the binary, there ought to be a `MINIMAL` or `TEENY_TINY` macro that unsets HAVE_IPSET and a bunch of other similar non-critical features. On Thu, Mar 21, 2013 at 6:23 AM, Kevin Darbyshire-Bryant