gdhcp: DHCP server IP address is stored in host order
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 11 Feb 2013 07:26:35 +0000 (09:26 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 11 Feb 2013 11:42:47 +0000 (13:42 +0200)
commitb475cc29272254b2ab71540b2bf0fac57d0b0816
tree23d9608dc527b83bbb7f5a633751cf9fa28acd6b
parentdcf9406d4338c58c627b0c54e508a65e624bde38
gdhcp: DHCP server IP address is stored in host order

This change affects unicasted DHCP renew and release messages.
A DHCP server receiving packets via a raw socket will get all
packets destined to port 67. If the DHCP server checks the
intended server IP address, the request will fail. If the server
does not care about the IP address being used, it will send a
reply. The reply is not recognized by ConnMan since it is coming
from another IP address than what it was sent to. ConnMan will
retry quite a few times, but eventually settle down and use the
address even without a proper response from the server.
gdhcp/common.c