<HTML>
<P>thanks for the quick response <BR>
<BR>
i tried installing 2.39 from source as there is not a openbsd pkg for it <BR>
<BR>
and get <BR>
####<BR>
[/home/user/dnsmasq-2.39]<BR>
-&gt;sudo make install<BR>
make I18N=-DNO_GETTEXT -f ../bld/Makefile -C src dnsmasq<BR>
make: unknown option -- C<BR>
usage: make [-BeiknPqrSst] [-D variable] [-d flags] [-f makefile]<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [-I directory] [-j max_jobs] [-m directory] [-V variable]<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [NAME=value] [target ...]<BR>
*** Error code 2</P>
<P>Stop in /home/user/dnsmasq-2.39 (line 15 of Makefile).<BR>
####<BR>
<BR>
is it a problem to install using sudo?<BR>
<BR>
do i need to be a in a different directory?<BR>
<BR>
<BR>
<BR>
<B>On Tue May 8 23:17 , Simon Kelley <SIMON@THEKELLEYS.ORG.UK>sent:<BR>
<BR>
</P></B>
<BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #f5f5f5 2px solid; MARGIN-RIGHT: 0px">Wesley Connor wrote:<BR>
&gt; howdy folks<BR>
&gt; <BR>
&gt; i have what i believe is a common problem, but im damned if i can figure<BR>
&gt; out how to fix it<BR>
&gt; <BR>
&gt; i have a 2 day old install of openbsd 4.1 running the latest pkg version<BR>
&gt; of dnsmasq which is 2.31<BR>
&gt; <BR>
&gt; i have dnsmasq setup doing dns and dhcp on my server and the dns is<BR>
&gt; working fine<BR>
&gt; <BR>
&gt; but when clients request a dhcp lease, on the server i get<BR>
&gt; <BR>
&gt; dnsmasq[30314]: DHCPDISCOVER(fxp0) 192.168.101.15 00:0c:6e:66:##:##<BR>
&gt; dnsmasq[30314]: DHCPOFFER(fxp0) 192.168.101.15 00:0c:6e:66:##:##<BR>
&gt; dnsmasq[30314]: DHCPDISCOVER(fxp0) 192.168.101.15 00:0c:6e:66:##:##<BR>
&gt; dnsmasq[30314]: DHCPOFFER(fxp0) 192.168.101.15 00:0c:6e:66:##:##<BR>
&gt; dnsmasq[30314]: DHCPDISCOVER(fxp0) 192.168.101.15 00:0c:6e:66:##:##<BR>
&gt; dnsmasq[30314]: DHCPOFFER(fxp0) 192.168.101.15 00:0c:6e:66:##:##<BR>
&gt; <BR>
&gt; repeated about a dozen times<BR>
&gt; <BR>
&gt; but no DHCPDACK's and the client eventually times out<BR>
&gt; <BR>
&gt; now as i understand this is a broadcast/firewall filtering issue<BR>
&gt; <BR>
&gt; my pf is setup to allow all in and all out and ive tried it with pf<BR>
&gt; disabled<BR>
&gt; <BR>
&gt; the if im listening on is setup as<BR>
&gt; <BR>
&gt; inet 192.168.101.100 255.255.255.0 NONE<BR>
&gt; <BR>
&gt; which gives it an ifconfig response of<BR>
&gt; <BR>
&gt; fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500<BR>
&gt; lladdr 00:90:27:2e:##:##<BR>
&gt; groups: egress<BR>
&gt; media: Ethernet autoselect (100baseTX full-duplex)<BR>
&gt; status: active<BR>
&gt; inet6 fe80::290:27ff:fe2e:7fd6%fxp0 prefixlen 64 scopeid 0x1<BR>
&gt; inet 192.168.101.100 netmask 0xffffff00 broadcast 192.168.101.255<BR>
&gt; <BR>
&gt; <BR>
&gt; my dnsmasq.conf contains<BR>
&gt; ####<BR>
&gt; domain-needed<BR>
&gt; bogus-priv<BR>
&gt; <BR>
&gt; filterwin2k<BR>
&gt; <BR>
&gt; interface=fxp0<BR>
&gt; <BR>
&gt; expand-hosts<BR>
&gt; <BR>
&gt; domain=foo.org<BR>
&gt; <BR>
&gt; dhcp-range=192.168.101.2,192.168.101.200,12h<BR>
&gt; <BR>
&gt; dhcp-option=3,192.168.101.1 #mygateway<BR>
&gt; <BR>
&gt; dhcp-authoritative<BR>
&gt; <BR>
&gt; log-queries<BR>
&gt; ###<BR>
&gt; <BR>
&gt; am i missing something obvious?<BR>
<BR>
No, your config looks fine.<BR>
&gt; <BR>
&gt; as i said the dns is working fine<BR>
&gt; <BR>
&gt; and the dhcp requests seem to be getting in and dnsmasq is offering an ip<BR>
&gt; the leases just arent 'getting out' or being picked up<BR>
&gt; <BR>
&gt; and as in the other cases i have read, the standard dhcpd works fine but<BR>
&gt; i understand that it works differently<BR>
<BR>
That's probably no relevant: under Linux dnsmasq does DHCP differently<BR>
to dhcpd, but on *BSD, pretty much the same constraints apply, I think.<BR>
<BR>
There's a history of bugs on OpenBSD 4.x which might be relevant: 2.31<BR>
will not work at all under OpenBSD 4.0 because of a kernel bug: a<BR>
work-around went into versions 2.35 and up, but that should only be<BR>
active under 4.0. The kernel bug was fixed in a test kernel I have,<BR>
which was supposed to go into 4.1, but I've not verified that it did.<BR>
The symptoms of that bug were different to what you see (no logging at<BR>
all, all DHCP packets ignored.)<BR>
<BR>
Please could you try the latest release of dnsmasq, (2.39) and if that<BR>
doesn't work, try and grab the packets using tcpdump, and trace the<BR>
execution of the program using truss. Mail me the complete raw packet<BR>
dump file. (Mail me off list if you need more explicit instructions on<BR>
doing that.)<BR>
<BR>
<BR>
Cheers,<BR>
<BR>
Simon.<BR>
<BR>
<BR>
</BLOCKQUOTE></HTML>
<BR>