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 wrote: > On 21/03/2013

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 changes

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 * 01:52:41:53:20:10:0b:a9:a

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

2013-04-11 Thread Simon Kelley
On 11/04/13 12:56, Tsachi wrote: 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 poin

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

2013-04-11 Thread Peter Korsgaard
> "Simon" == Simon Kelley writes: Hi, >> Is there any reason why the vendor matching isn't done for bootp? Simon> As far as I remember, the reason was simply that I considered Simon> such options as DHCP options, and not part of the bootp Simon> spec. That's obviously wrong, just by loo

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 opt

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

2013-04-11 Thread Tsachi
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 * 01:52:41:53:20:10:0b:a9:ad:bc:58:00:00:01:00:00:00 605231 1

[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 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 w

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 itsel