[Dnsmasq-discuss] [PATCH] DHCPv4 Rapid Commit support
Simon Kelley
simon at thekelleys.org.uk
Fri Mar 23 23:42:59 GMT 2018
Thanks for this.
I've done the following:
1) changed option to dhcp-rapid-commit, for consistency.
2) heavily re-formatted the code, to suit my tastes.
3) Added man page entry.
4) Added logging of the reason a rapid-commit DHCPDISCOVER is ignored.
and committed the changes.
Any new bugs are mine, but please check that I didn't break anything.
http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=734d53176f571d9c0023f0de8791d223b7766f6b
Cheers,
Simon.
On 22/03/18 20:29, Ashram Method wrote:
> RFC 4039 defines DHCPv4 Rapid Commit option, which allows for obtaining
> an IP address and configuration information using a 2-message exchange.
> This is particularly useful for mobile clients to quickly establish IP
> connectivity when changing network, e.g. from cellular to home WiFi.
>
> If the DHCP client indicates Rapid Commit support in DHCPDISCOVER, the
> server can respond directly with DHCPACK. Rapid Commit should only be
> enabled on the server if it is the only server for the subnet, or if
> multiple servers are present they each commit a binding for all clients.
>
> The patch below was tested against dhcpcd client with Rapid Commit enabled.
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20180323/07a6c903/attachment.sig>
More information about the Dnsmasq-discuss
mailing list