Simon Kelley
591ed1e905
Fix bad behaviour with some DHCP option arrangements.
...
The check that there's enough space to store the DHCP agent-id
at the end of the packet could succeed when it should fail
if the END option is in either of the oprion-overload areas.
That could overwrite legit options in the request and cause
bad behaviour. It's highly unlikely that any sane DHCP client
would trigger this bug, and it's never been seen, but this
fixes the problem.
Also fix off-by-one in bounds checking of option processing.
Worst case scenario on that is a read one byte beyond the
end off a buffer with a crafted packet, and maybe therefore
a SIGV crash if the memory after the buffer is not mapped.
Thanks to Timothy Becker for spotting these.
2016-07-11 18:18:42 +01:00
Simon Kelley
0a4a04969d
Final PXE tweak, and release-note to reflect changes.
2016-05-15 20:13:45 +01:00
Simon Kelley
fe71bba356
Tweak UEFI workaround code.
2016-05-14 20:50:45 +01:00
Simon Kelley
cbc100fc81
Tweak CSAs affected by UEFI PXE workaround code.
2016-05-11 22:17:18 +01:00
Simon Kelley
8628cd603f
Workaround for UEFI PXE boot problems.
2016-05-10 17:31:48 +01:00
Simon Kelley
a93bd4b016
Fix broken DNSMASQ_USER<x> envvars in script with more than one class.
2016-03-01 18:58:01 +00:00
Simon Kelley
c49778df4a
Update copyright notices. Happy new year!
2016-01-06 18:52:33 +00:00
Simon Kelley
549b1a478c
Tweak immediately previous patch.
2015-05-20 20:20:24 +01:00
Simon Kelley
7f8565b94c
Select correct DHCP context when in PXE bootserver mode.
2015-05-19 23:01:27 +01:00
Simon Kelley
62018e1f72
Use correct DHCP context for PXE-proxy server-id.
2015-05-14 21:30:00 +01:00
Simon Kelley
7c0f2543a7
Tweak last commit.
2015-05-14 21:16:18 +01:00
Simon Kelley
ca85a28241
Allow T1 and T2 DHCPv4 options to be set.
2015-05-13 22:33:04 +01:00
Simon Kelley
aff3396280
Update copyrights for dawn of 2015.
2015-01-31 20:13:40 +00:00
Simon Kelley
cc1a29e250
Make --quiet-dhcp apply to DHCPDISCOVER when client ignored.
2014-03-20 15:47:18 +00:00
Simon Kelley
c47e3ba446
Update copyright for 2014.
2014-01-08 17:07:54 +00:00
Vladislav Grishenko
99e8891f85
Fix compiler warning.
2013-11-26 11:02:29 +00:00
Kevin Darbyshire-Bryant
227ddad9b5
Fix logic botch in quiet-dhcp option.
2013-10-24 17:47:00 +01:00
Kevin Darbyshire-Bryant
8c0b73d3a8
Add --quiet-* options.
2013-10-11 11:56:33 +01:00
Simon Kelley
a37cd7aaf5
Use tags from pxe-proxy dhcp-range statements.
2013-08-20 10:33:32 +01:00
Simon Kelley
0f371f9e1a
Remove dead code.
2013-07-27 15:15:38 +01:00
Simon Kelley
ff1b41dc57
Merge branch 'master' of ssh://thekelleys.org.uk/var/cache/git/dnsmasq
...
Conflicts:
CHANGELOG
2013-07-27 12:32:29 +01:00
Roy Marples
3f3adae6bc
DHCP FQDN option tweaks.
2013-07-25 16:22:46 +01:00
Simon Kelley
625ac28c61
Fix crash with empty DHCP string options.
2013-07-02 21:19:32 +01:00
Simon Kelley
115ac3e4d7
Generalise --interface-name to cope with IPv6 addresses.
2013-05-20 11:28:32 +01:00
Simon Kelley
86e92f9983
--dhcp-match et al now work with BOOTP as well as DHCP.
2013-04-23 11:31:39 +01:00
Simon Kelley
aa63a21ce0
Fix regression in dhcp_lease_time utility.
2013-04-22 15:01:52 +01:00
Simon Kelley
dd1721c799
DHCPv4 relay-agent options exposed to DHCP-script.
2013-02-18 21:04:04 +00:00
Simon Kelley
a21e27bc99
Support DHCP DNS server option if we're not doing DNS.
2013-02-17 16:41:35 +00:00
Simon Kelley
ffa3d7d6a2
Copy-and-paste error
2013-02-04 21:35:43 +00:00
Simon Kelley
61744359de
Change copyright messages to include 2013.
2013-01-31 14:34:40 +00:00
Simon Kelley
d1a5975f9b
No lease-time in DHCPINFORM replies.
2012-11-05 16:50:30 +00:00
Simon Kelley
4d0f5b4c44
Fix BOOTP option processing.
2012-09-05 23:29:30 +01:00
Simon Kelley
9fed0f71c2
Further tweaks to DHCP FQDN option.
2012-08-30 11:43:35 +01:00
Simon Kelley
2e34ac1403
Handle DHCP FQDN option with all flags zero and --dhcp-client-update
2012-08-29 14:15:25 +01:00
Simon Kelley
a9ab732e35
reconfirm SLAAC addresses when DHCPv4 leases go though INIT_REBOOT state.
2012-04-29 16:01:28 +01:00
Simon Kelley
dcffad2a86
Ensure that the DBus DhcpLeaseUpdated events are generated.
2012-04-24 15:25:18 +01:00
Simon Kelley
7d2b5c9583
Fix crash in DHCPINFORM without valid --dhcp-range.
2012-03-23 10:00:02 +00:00
Simon Kelley
353ae4d270
Check assumed SLAAC addresses by pinging them.
2012-03-19 20:07:51 +00:00
Simon Kelley
57f460de2f
tweak Lua script argument passing and add --dhcp-luascript sectino to manpage.
2012-02-16 20:00:32 +00:00
Simon Kelley
6caacacf6d
Putative fix to crash in IPv4 DHCP, introduced whilst
...
generalising the DHCP option filter code:
don't match options against context tag when
context->netid.net == NULL, since there's no tag then.
2012-02-15 21:58:33 +00:00
Simon Kelley
c6cc03ed0c
Merge branch 'dhcpv6'
2012-02-10 17:36:20 +00:00
Simon Kelley
751d6f4ae6
Allow the TFP server or boot server in --pxe-service, to
...
be a domain name instead of an IP address. This allows for
round-robin to multiple servers, in the same way as
--dhcp-boot.
2012-02-10 15:24:51 +00:00
Simon Kelley
ceae00dddf
lease script should work with IPv6 now.
2012-02-09 21:28:14 +00:00
Simon Kelley
3634c54e8d
dhcp-ignore and dhcp-match implemented for DHCPv6 now.
2012-02-08 14:22:37 +00:00
Simon Kelley
70c5e3e076
DHCPDECLINE handling, domain handling, more complete address selection.
2012-02-06 22:05:15 +00:00
Simon Kelley
4cb1b32009
Clean compile, basic DHCPv6 functionality is there.
...
TODO
hostname handling.
update DHCP6 configs from dns
parse domain=<domain>,<IPv6 range>
pretty-print counted string options.
DECLINE messages
lease-script fro DHCPv6
2012-02-06 14:30:41 +00:00
Simon Kelley
52b92f4db8
It compiles and it allocates a lease! No renewals yet.
2012-01-22 16:05:15 +00:00
Simon Kelley
39bec5ff32
Remove duplicate tags in data supplied to lease script.
2012-01-06 22:36:58 +00:00
Simon Kelley
5954608577
Updated copyright notices. Happy new year!
2012-01-06 20:02:04 +00:00
Simon Kelley
c72daea868
Accumulated 2.60 changes going into git
2012-01-05 21:33:27 +00:00