dhcpc: Use client IP address as source address for DHCP renew/rebind messages
authorHans Dedecker <dedeckeh@gmail.com>
Thu, 18 Feb 2016 11:27:07 +0000 (12:27 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 3 Mar 2016 01:05:53 +0000 (02:05 +0100)
commitabe8f7515aded80889d78c2c1c8947997918cf90
treec3d52bc87c0cae0725796e73bee0d83038d6a0c0
parentea2b71be66b7500cc3ddaa0f617491610ff07dc4
dhcpc: Use client IP address as source address for DHCP renew/rebind messages

RFC2131 paragraph 4.1 states DHCP messages broadcast by a client prior to
that client obtaining its IP address must have the source IP address
field in the header set to 0.
Request messages transmitted in renewing and rebinding state need to use
the obtained IP address as source IP address in the header; this behavior
lines up with other implementations like ISC dhcp client.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/udhcp/dhcpc.c